mirror of
https://github.com/truenas/charts.git
synced 2026-05-11 19:16:17 +08:00
* 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
53 lines
1.3 KiB
YAML
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
|