mirror of
https://github.com/truenas/charts.git
synced 2026-04-27 20:13:21 +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
35 lines
844 B
YAML
35 lines
844 B
YAML
suite: pvc name test
|
|
templates:
|
|
- common.yaml
|
|
tests:
|
|
- it: should generate correct name
|
|
set:
|
|
persistence:
|
|
my-volume1:
|
|
enabled: true
|
|
type: pvc
|
|
my-volume2:
|
|
enabled: true
|
|
type: pvc
|
|
asserts:
|
|
- documentIndex: &pvcDoc 0
|
|
isKind:
|
|
of: PersistentVolumeClaim
|
|
- documentIndex: *pvcDoc
|
|
isAPIVersion:
|
|
of: v1
|
|
- documentIndex: *pvcDoc
|
|
equal:
|
|
path: metadata.name
|
|
value: release-name-common-test-my-volume1
|
|
- documentIndex: &otherPvcDoc 1
|
|
isKind:
|
|
of: PersistentVolumeClaim
|
|
- documentIndex: *otherPvcDoc
|
|
isAPIVersion:
|
|
of: v1
|
|
- documentIndex: *otherPvcDoc
|
|
equal:
|
|
path: metadata.name
|
|
value: release-name-common-test-my-volume2
|