Files
chart/library/common-test/tests/persistence/ix-zfs-pvc_data_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

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