Skip to content

Commit

Permalink
Add a couple of tests for shared storage mounts/volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
jforest committed Nov 21, 2024
1 parent 8f9c684 commit d7442ff
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions ci/rstudio-workbench/tests/deployment_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,29 @@ tests:
- equal:
path: 'spec.template.spec.containers[0].env[?(@.name=="RSW_LOAD_BALANCING")].value'
value: "true"
- it: should specify a volumeMount and a volume for sharedStorage if sharedStorage.create is true
template: deployment.yaml
set:
sharedStorage:
create: true
path: "/mnt/shared"
asserts:
- equal:
path: 'spec.template.spec.containers[0].volumeMounts[?(@.name=="rstudio-shared-storage")].mountPath'
value: "/mnt/shared"
- equal:
path: 'spec.template.spec.volumes[?(@.name=="rstudio-shared-storage")].persistentVolumeClaim.claimName'
value: "RELEASE-NAME-rstudio-workbench-shared-storage"
- it: should specify a volumeMount and a volume for sharedStorage if sharedStorage.mount is true
template: deployment.yaml
set:
sharedStorage:
mount: true
path: "/mnt/shared"
asserts:
- equal:
path: 'spec.template.spec.containers[0].volumeMounts[?(@.name=="rstudio-shared-storage")].mountPath'
value: "/mnt/shared"
- equal:
path: 'spec.template.spec.volumes[?(@.name=="rstudio-shared-storage")].persistentVolumeClaim.claimName'
value: "RELEASE-NAME-rstudio-workbench-shared-storage"

0 comments on commit d7442ff

Please sign in to comment.