Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
VladStarr committed Jul 25, 2024
1 parent 8bd508f commit 1609bd1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 7 additions & 3 deletions dysnix/app/tests/persistence_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,12 @@ tests:
-
template: statefulset.yaml
contains:
path: spec.volumeClaimTemplates[0]
path: spec.volumeClaimTemplates
any: true
content:
name: data
emptyDir: {}
metadata:
name: data
spec:
resources:
requests:
storage: 10Gi
4 changes: 4 additions & 0 deletions dysnix/app/tests/statefulset-common_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ tests:
it: selector matchLabels
values:
- ./values/common.yaml
set:
app.workload.type: statefulset
asserts:
- isSubset:
path: spec.selector.matchLabels
Expand All @@ -62,6 +64,8 @@ tests:
it: statefulset labels
values:
- ./values/common.yaml
set:
app.workload.type: statefulset
asserts:
- isSubset:
path: metadata.labels
Expand Down

0 comments on commit 1609bd1

Please sign in to comment.