Skip to content

Commit

Permalink
Fix test and moved into the right file
Browse files Browse the repository at this point in the history
  • Loading branch information
marcopaggioro committed Feb 4, 2025
1 parent 7bb34ec commit 5681a14
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
10 changes: 10 additions & 0 deletions charts/docker-mailserver/tests/deployment_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ tests:
path: spec.template.spec.containers[0].image
value: bananas:in-pajamas

- it: should use subPath for volumes if defined
set:
persistence:
mail-data:
subPath: another-folder
asserts:
- equal:
path: spec.template.spec.containers[0].volumeMounts[?(@.name=="mail-data")].subPath
value: another-folder

- it: manifest should match snapshot
asserts:
- matchSnapshot: { }
13 changes: 1 addition & 12 deletions charts/docker-mailserver/tests/pvc_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,4 @@ tests:

- it: manifest should match snapshot
asserts:
- matchSnapshot: { }

- it: should use subPath for volumes if defined
set:
persistence:
mail-data:
subPath: another-folder
documentIndex: 1
asserts:
- equal:
path: spec.template.spec.containers[0].volumeMounts[?(@.name=="mail-data")].subPath
value: another-folder
- matchSnapshot: { }

0 comments on commit 5681a14

Please sign in to comment.