Files
chart/library/common-test/tests/pod/volume_pvc_test.yaml
Stavros Kois 1e5e1b8ef8 NAS-123350 / 24.04 / Add support in common for nfs/smb pvc (#1422)
* Empty-Commit

* temp commit

* make sure that we use the pv

* typo

* add validation

* typo

* cleanup validation and add secret for smb

* revert

* add some tets

* add more tests

* add more tests

* more tests

* rename to share

* rename

* moar tests

* clean

* add some docs

* fix name uniqueness and tests

* make mountOptions validation a bit better

* update docs
2023-08-24 17:40:31 +03:00

53 lines
1.3 KiB
YAML

suite: pod pvc volume test
templates:
- common.yaml
tests:
- it: should pass with pvc volume
set:
workload:
workload-name1:
enabled: true
primary: true
type: Deployment
podSpec: {}
persistence:
pvc-vol:
enabled: true
type: pvc
asserts:
- documentIndex: &deploymentDoc 1
isKind:
of: Deployment
- documentIndex: *deploymentDoc
contains:
path: spec.template.spec.volumes
content:
name: pvc-vol
persistentVolumeClaim:
claimName: release-name-common-test-pvc-vol
- it: should pass with pvc volume with existing claim
set:
workload:
workload-name1:
enabled: true
primary: true
type: Deployment
podSpec: {}
persistence:
pvc-vol:
enabled: true
type: pvc
existingClaim: some-existing-claim
asserts:
- documentIndex: &deploymentDoc 0
isKind:
of: Deployment
- documentIndex: *deploymentDoc
contains:
path: spec.template.spec.volumes
content:
name: pvc-vol
persistentVolumeClaim:
claimName: some-existing-claim