diff --git a/tests/e2e/testfiles/minimal-testfiles/scenarios.yaml b/tests/e2e/testfiles/minimal-testfiles/scenarios.yaml index dfa015692..67b94122d 100644 --- a/tests/e2e/testfiles/minimal-testfiles/scenarios.yaml +++ b/tests/e2e/testfiles/minimal-testfiles/scenarios.yaml @@ -575,3 +575,28 @@ name: Cert CSI run: - cert-csi test vio --sc op-e2e-isilon --chainNumber 2 --chainLength 2 + +- scenario: "Install Powerflex Driver(With Replication)" + paths: + - "testfiles/minimal-testfiles/storage_csm_powerflex_replica.yaml" + tags: + - "powerflex" + - "replication" + - "sanity" + steps: + - "Given an environment with k8s or openshift, and CSM operator installed" + - "Create storageclass with name [op-e2e-vxflexos] and template [testfiles/powerflex-templates/powerflex-storageclass-template.yaml] for [pflex]" + - "Set up secret with template [testfiles/powerflex-templates/powerflex-secret-template.yaml] name [test-vxflexos-config] in namespace [test-vxflexos] for [pflex]" + - "Apply custom resource [1]" + - "Validate [powerflex] driver from CR [1] is installed" + - "Validate [replication] module from CR [1] is installed" + - "Run custom test" + # cleanup + - "Enable forceRemoveDriver on CR [1]" + - "Delete custom resource [1]" + - "Restore template [testfiles/powerflex-templates/powerflex-secret-template.yaml] for [pflex]" + - "Restore template [testfiles/powerflex-templates/powerflex-storageclass-template.yaml] for [pflex]" + customTest: + name: HelloWorld + run: + - echo "no current test implemented for replication" diff --git a/tests/e2e/testfiles/minimal-testfiles/storage_csm_powerflex_replica.yaml b/tests/e2e/testfiles/minimal-testfiles/storage_csm_powerflex_replica.yaml new file mode 100644 index 000000000..5f9034a97 --- /dev/null +++ b/tests/e2e/testfiles/minimal-testfiles/storage_csm_powerflex_replica.yaml @@ -0,0 +1,26 @@ +apiVersion: storage.dell.com/v1 +kind: ContainerStorageModule +metadata: + name: test-vxflexos + namespace: test-vxflexos +spec: + driver: + csiDriverType: "powerflex" + configVersion: v2.12.0 + common: + image: "dellemc/csi-vxflexos:nightly" + forceRemoveDriver: true + modules: + - name: replication + enabled: true + configVersion: v1.10.0 + components: + - name: dell-csi-replicator + image: dellemc/dell-csi-replicator:nightly + - name: dell-replication-controller-manager + image: dellemc/dell-replication-controller:nightly + envs: + - name: "TARGET_CLUSTERS_IDS" + value: "self" + - name: dell-replication-controller-init + image: dellemc/dell-replication-init:v1.0.0