Skip to content

Commit

Permalink
Add unit test for service account annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Dueck <[email protected]>
  • Loading branch information
crdueck committed Nov 2, 2023
1 parent 86d9308 commit ad42703
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/unit/sa_annotations_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
suite: test serviceaccount annotations
templates:
- serviceaccount.yaml
tests:
- it: should omit serviceaccount annotations by default
asserts:
- notExists:
path: metadata.annotations
- it: should render serviceaccount annotations when provided
set:
serviceAccount:
annotations:
foo: bar
asserts:
- exists:
path: metadata.annotations
- equal:
path: metadata.annotations.foo
value: bar

0 comments on commit ad42703

Please sign in to comment.