feat(bdd): adding snapshot and clone releated test cases

added snapshot and clone related test cases. Also restructure
the BDD framework to loop through the supported fstypes and perfrom all
the test cases we have.

Signed-off-by: Pawan <pawan@mayadata.io>
This commit is contained in:
Pawan 2020-07-02 18:32:44 +05:30 committed by Kiran Mova
parent 8bbf3d7d2f
commit 21045a5b1f
9 changed files with 197 additions and 71 deletions

View file

@ -20,11 +20,15 @@ export OPENEBS_NAMESPACE="openebs"
export NodeID=$HOSTNAME
ZFS_OPERATOR=deploy/zfs-operator.yaml
SNAP_CLASS=deploy/sample/zfssnapclass.yaml
TEST_DIR="tests"
# Prepare env for runnging BDD tests
# Minikube is already running
kubectl apply -f $ZFS_OPERATOR
kubectl apply -f $SNAP_CLASS
dumpAgentLogs() {
NR=$1
@ -110,12 +114,18 @@ kubectl get pods -owide --all-namespaces
echo "get pvc and pv details"
kubectl get pvc,pv -oyaml --all-namespaces
echo "get snapshot details"
kubectl get volumesnapshot.snapshot -oyaml --all-namespaces
echo "get sc details"
kubectl get sc --all-namespaces -oyaml
echo "get zfs volume details"
kubectl get zfsvolumes.zfs.openebs.io -n openebs -oyaml
echo "get zfs snapshot details"
kubectl get zfssnapshots.zfs.openebs.io -n openebs -oyaml
exit 1
fi