Sylvain Desbureaux | 524c878 | 2019-11-08 17:36:02 +0100 | [diff] [blame] | 1 | --- |
| 2 | suite: test pv behavior |
| 3 | templates: |
| 4 | - pv.yaml |
| 5 | tests: |
| 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" |