Skip to content

Commit

Permalink
E2E for CSI-Unity driver with minimal CR (#713)
Browse files Browse the repository at this point in the history
* E2E for CSI-Unity driver with minimal CR

* Linter fixes

---------

Co-authored-by: Harish P <harishp8889@gmail.com>
  • Loading branch information
ChristianAtDell and harishp8889 committed Oct 15, 2024
1 parent a0a5cf0 commit d5037dc
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/e2e/testfiles/minimal-testfiles/scenarios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,26 @@
- "Delete custom resource [1]"
- "Restore template [testfiles/powerstore-templates/powerstore-secret-template.yaml] for [pstore]"
- "Restore template [testfiles/powerstore-templates/powerstore-storageclass-template.yaml] for [pstore]"

- scenario: "Install Unity Driver(Standalone)"
paths:
- "testfiles/minimal-testfiles/storage_csm_unity.yaml"
tags:
- "unity"
steps:
- "Given an environment with k8s or openshift, and CSM operator installed"
- "Create storageclass with name [op-e2e-unity] and template [testfiles/unity-templates/unity-storageclass-template.yaml] for [unity]"
- "Set up secret with template [testfiles/unity-templates/unity-secret-template.yaml] name [unity-creds] in namespace [unity] for [unity]"
- "Apply custom resource [1]"
- "Validate custom resource [1]"
- "Validate [unity] driver from CR [1] is installed"
- "Run custom test"
# cleanup
- "Enable forceRemoveDriver on CR [1]"
- "Delete custom resource [1]"
- "Restore template [testfiles/unity-templates/unity-secret-template.yaml] for [unity]"
- "Restore template [testfiles/unity-templates/unity-storageclass-template.yaml] for [unity]"
customTest:
name: Cert CSI
run:
- cert-csi test vio --sc op-e2e-unity --chainNumber 2 --chainLength 2
12 changes: 12 additions & 0 deletions tests/e2e/testfiles/minimal-testfiles/storage_csm_unity.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: storage.dell.com/v1
kind: ContainerStorageModule
metadata:
name: unity
namespace: unity
spec:
driver:
csiDriverType: "unity"
configVersion: v2.12.0
common:
image: "dellemc/csi-unity:nightly"
forceRemoveDriver: true

0 comments on commit d5037dc

Please sign in to comment.