blob: cd4007960bc95a437b911d7f385472a021af061e [file] [log] [blame]
---
suite: test pv behavior
templates:
- pv.yaml
tests:
- it: 'should render "" (global case))'
values:
- ./values/persistence.yaml
set:
global.persistence.storageClass: "-"
asserts:
- isEmpty:
- it: 'should "" (override case)'
values:
- ./values/persistence.yaml
set:
global.persistence.storageClass: "global"
persistence.storageClassOverride: "-"
asserts:
- isEmpty:
- it: 'should "" (local case)'
values:
- ./values/persistence.yaml
set:
persistence.storageClass: "-"
asserts:
- isEmpty:
- it: 'should render "RELEASE-NAME-mariadb-galera-data" as storageClassname'
asserts:
- equal:
path: spec.storageClassName
value: "RELEASE-NAME-mariadb-galera-data"