Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2E tests for powerflex driver in the minimal manifest file #739

Merged
merged 5 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading