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 for CSI-Unity driver with minimal CR #713

Merged
merged 3 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
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
Loading