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

Fix pmaxCreds not set correctly in e2e #706

Merged
merged 2 commits into from
Sep 26, 2024
Merged
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
16 changes: 10 additions & 6 deletions tests/e2e/testfiles/scenarios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1555,13 +1555,16 @@
steps:
- "Given an environment with k8s or openshift, and CSM operator installed"
- "Create storageclass with name [powermax] and template [testfiles/powermax-templates/powermax-storageclass-template.yaml] for [pmax]"
- "Set up creds with template [testfiles/powermax-templates/powermax-secret-template.yaml] name [powermax-creds] in namespace [powermax] for [pmaxCreds]"
- "Apply custom resource [1]"
- "Validate custom resource [1]"
- "Validate [powermax] driver from CR [1] is installed"
- "Run custom test"
# Last two steps perform Clean Up
- "Enable forceRemoveDriver on CR [1]"
- "Delete custom resource [1]"
- "Restore template [testfiles/powermax-templates/powermax-storageclass-template.yaml] for [pmax]"
- "Restore template [testfiles/powermax-templates/powermax-secret-template.yaml] for [pmaxCreds]"
customTest:
name: Cert CSI
run:
Expand All @@ -1575,16 +1578,16 @@
steps:
- "Given an environment with k8s or openshift, and CSM operator installed"
- "Create storageclass with name [powermax] and template [testfiles/powermax-templates/powermax-storageclass-template.yaml] for [pmax]"
- "Set up secret with template [testfiles/powermax-templates/powermax-secret-template.yaml] name [powermax-creds] in namespace [powermax] for [pmax]"
- "Set up creds with template [testfiles/powermax-templates/powermax-secret-template.yaml] name [powermax-creds] in namespace [powermax] for [pmaxCreds]"
- "Apply custom resource [1]"
- "Validate custom resource [1]"
- "Validate [powermax] driver from CR [1] is installed"
- "Run custom test"
# Last two steps perform Clean Up
- "Enable forceRemoveDriver on CR [1]"
- "Delete custom resource [1]"
- "Restore template [testfiles/powermax-templates/powermax-secret-template.yaml] for [pmax]"
- "Restore template [testfiles/powermax-templates/powermax-secret-template.yaml] for [pmax]"
- "Restore template [testfiles/powermax-templates/powermax-storageclass-template.yaml] for [pmax]"
- "Restore template [testfiles/powermax-templates/powermax-secret-template.yaml] for [pmaxCreds]"
customTest:
name: Cert CSI
run:
Expand All @@ -1599,16 +1602,16 @@
steps:
- "Given an environment with k8s or openshift, and CSM operator installed"
- "Create storageclass with name [op-e2e-pmax] and template [testfiles/powermax-templates/powermax-storageclass-template.yaml] for [pmax]"
- "Set up secret with template [testfiles/powermax-templates/powermax-secret-template.yaml] name [powermax-creds] in namespace [powermax] for [pmax]"
- "Set up creds with template [testfiles/powermax-templates/powermax-secret-template.yaml] name [powermax-creds] in namespace [powermax] for [pmaxCreds]"
- "Apply custom resource [1]"
- "Validate custom resource [1]"
- "Validate [powermax] driver from CR [1] is installed"
- "Validate [observability] module from CR [1] is installed"
# cleanup
- "Enable forceRemoveDriver on CR [1]"
- "Delete custom resource [1]"
- "Restore template [testfiles/powermax-templates/powermax-secret-template.yaml] for [pmax]"
- "Restore template [testfiles/powermax-templates/powermax-secret-template.yaml] for [pmax]"
- "Restore template [testfiles/powermax-templates/powermax-storageclass-template.yaml] for [pmax]"
- "Restore template [testfiles/powermax-templates/powermax-secret-template.yaml] for [pmaxCreds]"

- scenario: "Install PowerMax Driver (With Auth module)"
paths:
Expand Down Expand Up @@ -1637,6 +1640,7 @@
- "Enable forceRemoveDriver on CR [2]"
- "Delete custom resource [2]"
- "Delete custom resource [1]"
- "Restore template [testfiles/powermax-templates/powermax-storageclass-template.yaml] for [pmax]"
- "Restore template [testfiles/powermax-templates/csm-authorization-config.json] for [pmaxAuthSidecar]"
- "Restore template [testfiles/powermax-templates/powermax-secret-template.yaml] for [pmaxCreds]"
- "Restore template [testfiles/powermax-templates/powermax_reverse_proxy_config.yaml] for [pmaxReverseProxy]"
Expand Down
Loading