Dynamic NFS Provisioner BDD tests are developed using ginkgo & gomega libraries.
-
Install Ginkgo and Gomega on your development machine.
$ go get github.com/onsi/ginkgo/ginkgo $ go get github.com/onsi/gomega/...
-
Get your Kubernetes Cluster ready and make sure you can run kubectl from your development machine. Note down the path to the
kubeconfig
file used by kubectl to access your cluster. Example: /home//.kube/config -
(Optional) Set the KUBECONFIG environment variable on your development machine to point to the kubeconfig file. Example: KUBECONFIG=/home//.kube/config
If you do not set this ENV, you will have to pass the file to the ginkgo CLI
-
Install required OpenEBS components. Example:
kubectl apply -f openebs-operator.yaml
-
Run the tests by being in the localpv tests folder.
$ cd $GOPATH/src/github.com/openebs/dynamic-nfs-provisioner/tests/
$ ginkgo -v --
In case the KUBECONFIG env is not configured, you can run:
$ ginkgo -v -- -kubeconfig=/path/to/kubeconfig