Skip to content

Commit

Permalink
update: backwards compatibility test [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
mugdha-adhav committed Aug 15, 2024
1 parent 0dd5fd4 commit 3e4cf18
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/integration/backward-compatability.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ kubectlwait default compatible-ephemeral-volume
kubectl apply -f "${TestBase}/compatible-manifests/pre-provisioned-pv.yaml"
kubectlwait default compatible-pre-provisioned-pv

kubectl delete -f "${TestBase}/compatible-manifests/ephemeral-volume.yaml"
kubectl delete --ignore-not-found -f "${TestBase}/compatible-manifests/pre-provisioned-pv.yaml"

#Ignore deletion of older CSI driver for now to test if dual installation of the driver works.

export VALUE_FILE=$(dirname "${BASH_SOURCE[0]}")/../../charts/warm-metal-csi-driver/values.yaml
Expand All @@ -35,6 +38,13 @@ lib::run_test_job "${TestBase}/manifests/ephemeral-volume.yaml"
lib::run_test_job "${TestBase}/manifests/readonly-ephemeral-volume.yaml"
lib::run_test_job "${TestBase}/manifests/pre-provisioned-pv.yaml"

#Reapply compatible-manifests which uses older CSI driver
kubectl apply -f "${TestBase}/compatible-manifests/ephemeral-volume.yaml"
kubectlwait default compatible-ephemeral-volume

kubectl apply -f "${TestBase}/compatible-manifests/pre-provisioned-pv.yaml"
kubectlwait default compatible-pre-provisioned-pv

kubectl delete -f "${TestBase}/compatible-manifests/ephemeral-volume.yaml"
kubectl delete --ignore-not-found -f "${TestBase}/compatible-manifests/pre-provisioned-pv.yaml"

Expand Down

0 comments on commit 3e4cf18

Please sign in to comment.