Skip to content

Commit bfcd6f1

Browse files
committed
Added test for subPath addition
1 parent cfd72b4 commit bfcd6f1

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

charts/docker-mailserver/tests/pvc_test.yaml

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

3030
- it: manifest should match snapshot
3131
asserts:
32-
- matchSnapshot: { }
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

0 commit comments

Comments
 (0)