mirror of
https://github.com/truenas/charts.git
synced 2026-05-16 14:12:59 +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
38 lines
979 B
YAML
38 lines
979 B
YAML
suite: ix-zfs-pvc data name test
|
|
templates:
|
|
- common.yaml
|
|
tests:
|
|
- it: should create ix-zfs-pvc
|
|
set:
|
|
global:
|
|
ixChartContext:
|
|
storageClassName: ix-storage-class-releasename
|
|
persistence:
|
|
my-volume1:
|
|
enabled: true
|
|
type: ix-zfs-pvc
|
|
asserts:
|
|
- documentIndex: &pvcDoc 0
|
|
isKind:
|
|
of: PersistentVolumeClaim
|
|
- documentIndex: *pvcDoc
|
|
equal:
|
|
path: spec.storageClassName
|
|
value: ix-storage-class-releasename
|
|
|
|
- it: should ignore storageClass defined on the object on type ix-zfs-pvc
|
|
set:
|
|
global:
|
|
ixChartContext:
|
|
storageClassName: ix-storage-class-releasename
|
|
persistence:
|
|
my-volume1:
|
|
enabled: true
|
|
type: ix-zfs-pvc
|
|
storageClass: some-storage-class
|
|
asserts:
|
|
- documentIndex: *pvcDoc
|
|
equal:
|
|
path: spec.storageClassName
|
|
value: ix-storage-class-releasename
|