Skip to content

Commit

Permalink
E2E tests for powerflex driver in the minimal manifest file (#739)
Browse files Browse the repository at this point in the history
* E2E tests for powerflex driver in the minimal manifest file

Signed-off-by: meghana_gm <[email protected]>

* E2E tests for powerflex driver in the minimal manifest file

Signed-off-by: meghana_gm <[email protected]>

* E2E tests for powerflex driver in the minimal manifest file

Signed-off-by: meghana_gm <[email protected]>

* E2E tests for powerflex driver in the minimal manifest file

Signed-off-by: meghana_gm <[email protected]>

---------

Signed-off-by: meghana_gm <[email protected]>
  • Loading branch information
meggm authored Oct 15, 2024
1 parent b633b3e commit 47bc874
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/e2e/testfiles/minimal-testfiles/scenarios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 47bc874

Please sign in to comment.