# README
Behavior Driven Development(BDD)
Maya makes use of ginkgo & gomega libraries to implement its integration tests.
To run the BDD test:
- Copy kubeconfig file into path ~/.kube/config or set the KUBECONFIG env.
- Change the current directory path to test related directory
Example:
To trigger the statefulesets test
Step1: Change the pwd to test directory.
cd github.com/openebs/maya/tests/sts/
Step2: Execute the commandginkgo -v -- -kubeconfig=/path/to/kubeconfig
Output: Sample example output
Running Suite: StatefulSet
==========================
Random Seed: 1555919486
Will run 1 of 2 specs
StatefulSet test statefulset application on cstor
should distribute the cstor volume replicas across pools
/home/sai/gocode/src/github.com/openebs/maya/tests/sts/sts_test.go:227
---------------------------------------------------------
Ran 1 of 1 Specs in 767.022 seconds
FAIL! -- 1 Passed | 0 Failed | 0 Pending | 0 Skipped
Ginkgo ran 1 suite in 12m49.573774959s
Test Suite Failed
Note: Above is the sample output how it looks when you ran ginkgo -v -- -kubeconfig=/path/to/kubeconfig
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
NewOperations returns a new instance of kubeclient meant for cstor volume replica operations.
NewOptions returns the new instance of Options.
WithKubeConfigPath sets the kubeConfig path against operations instance.
# Structs
CVRConfig provides config to create CStorVolumeReplica.
Operations provides clients amd methods to perform operations.
Options holds the args used for exec'ing into the pod.
PVCConfig provides config to create PersistentVolumeClaim.
SCConfig provides config to create storage class.
ServiceConfig provides config to create Service.
SPCConfig provides config to create cstor pools.
# Type aliases
OperationsOptions abstracts creating an instance of operations.