This repository contains Portworx Data Service(PDS) automation script for data service CRUD and backtup operation.
Supported data service(i.e cassandra , kafka etc) will be deployed on a specified PDS control plane url.
Target cluster will be accessed using the kubeconfig file for PDS installation in order to accomodate data service deployment.
Create the `Storage Option template` and `resource, appconfig` template manually for all the data services
strictly having name as QaDefault in order to run the test.
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
https://kubernetes.io/docs/tasks/tools/
export CONTROL_PLANE_URL="<Control plane URL> i.e https://staging.pds-dev.io"
export TARGET_KUBECONFIG=<Path to target cluster kubeconfig>
export PDS_SECRET_KEY=<Path to PDS secret KEY in vault>
export PDS_USER_CREDENTIAL=<Path to PDS Users credentials in vault>
export VAULT_HOST=<Vault URL>
export VAULT_TOKEN=<Vault token>
export CLUSTER_TYPE=<onprem or aks or eks>
go test ./test -timeout 9999999s -v
- Register the target cluster to control plane.
- Create and delete deployments for supported data services.
After each run the results will populated on the terminal as well as in the tests/logs directory
having filename as log-<timestamp>.log (locally)