Skip to content

Go test framework for PDS functional test automation.

Notifications You must be signed in to change notification settings

Madanagopal19/pds-functional-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDS Functional test(In progress)

This repository contains Portworx Data Service(PDS) automation script for data service CRUD and backtup operation.

Overview

Control Plane

Supported data service(i.e cassandra , kafka etc) will be deployed on a specified PDS control plane url.

Target cluster

Target cluster will be accessed using the kubeconfig file for PDS installation in order to accomodate data service deployment.

Prerequisites

Templates (To be created using Control plane UI) [ToDo- Remove the hardcoded template requirement.]

  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.

Install helm

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

Install kubectl

https://kubernetes.io/docs/tasks/tools/

Manually triggering the test run

Setting up the environment variable

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>

Test execution (ToDo: Run using container/pod)

go test ./test  -timeout 9999999s -v

Sample test run

- Register the target cluster to control plane.
- Create and delete deployments for supported data services.

Result

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)

About

Go test framework for PDS functional test automation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages