Skip to content

Commit 5681a14

Browse files
committed
Fix test and moved into the right file
1 parent 7bb34ec commit 5681a14

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

charts/docker-mailserver/tests/deployment_test.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ tests:
2121
path: spec.template.spec.containers[0].image
2222
value: bananas:in-pajamas
2323

24+
- it: should use subPath for volumes if defined
25+
set:
26+
persistence:
27+
mail-data:
28+
subPath: another-folder
29+
asserts:
30+
- equal:
31+
path: spec.template.spec.containers[0].volumeMounts[?(@.name=="mail-data")].subPath
32+
value: another-folder
33+
2434
- it: manifest should match snapshot
2535
asserts:
2636
- matchSnapshot: { }

charts/docker-mailserver/tests/pvc_test.yaml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,4 @@ tests:
2929

3030
- it: manifest should match snapshot
3131
asserts:
32-
- matchSnapshot: { }
33-
34-
- it: should use subPath for volumes if defined
35-
set:
36-
persistence:
37-
mail-data:
38-
subPath: another-folder
39-
documentIndex: 1
40-
asserts:
41-
- equal:
42-
path: spec.template.spec.containers[0].volumeMounts[?(@.name=="mail-data")].subPath
43-
value: another-folder
32+
- matchSnapshot: { }

0 commit comments

Comments
 (0)