Skip to content

Commit

Permalink
chore: add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjohnburton committed Aug 21, 2023
1 parent 07fa6d0 commit d3a5d8f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
23 changes: 23 additions & 0 deletions charts/node/tests/is_archive_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
suite: tests for if role is archive
templates:
- node-statefulset.yaml
- engine-statefulset.yaml
values:
- values/happy.values.yaml
- values/archive.values.yaml
tests:
- it: should template the node statefulset
template: node-statefulset.yaml
asserts:
- isKind:
of: StatefulSet
- equal:
path: spec.template.spec.containers[0].image
value: chainfliplabs/chainflip-node:perseverance
- notExists:
path: spec.template.spec.containers[0].volumeMounts[1]
- it: should not create the engine template
asserts:
- hasDocuments:
count: 0
template: engine-statefulset.yaml
2 changes: 2 additions & 0 deletions charts/node/tests/values/archive.values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
common:
role: "archive"

0 comments on commit d3a5d8f

Please sign in to comment.