blob: cd4007960bc95a437b911d7f385472a021af061e [file] [log] [blame]
Sylvain Desbureaux524c8782019-11-08 17:36:02 +01001---
2suite: test pv behavior
3templates:
4 - pv.yaml
5tests:
6 - it: 'should render "" (global case))'
7 values:
8 - ./values/persistence.yaml
9 set:
10 global.persistence.storageClass: "-"
11 asserts:
12 - isEmpty:
13
14 - it: 'should "" (override case)'
15 values:
16 - ./values/persistence.yaml
17 set:
18 global.persistence.storageClass: "global"
19 persistence.storageClassOverride: "-"
20 asserts:
21 - isEmpty:
22
23 - it: 'should "" (local case)'
24 values:
25 - ./values/persistence.yaml
26 set:
27 persistence.storageClass: "-"
28 asserts:
29 - isEmpty:
30
31 - it: 'should render "RELEASE-NAME-mariadb-galera-data" as storageClassname'
32 asserts:
33 - equal:
34 path: spec.storageClassName
35 value: "RELEASE-NAME-mariadb-galera-data"