Skip to content

Commit

Permalink
Update cronjob_test.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
aslafy-z authored Nov 15, 2024
1 parent bac9bca commit af10656
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions application/tests/cronjob_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,25 @@ tests:

- it: yields empty service account name when disabled
set:
cronJob:
enabled: true
jobs:
example:
image:
repository: example-image
rbac.serviceAccount.enabled: false
asserts:
- isNullOrEmpty:
path: spec.template.spec.serviceAccountName

- it: uses service account name override when present
set:
cronJob:
enabled: true
jobs:
example:
image:
repository: example-image
rbac.serviceAccount.enabled: true
rbac.serviceAccount.name: example-sa
asserts:
Expand All @@ -96,6 +108,12 @@ tests:

- it: uses a generated service account name when not given
set:
cronJob:
enabled: true
jobs:
example:
image:
repository: example-image
applicationName: example-app
rbac.serviceAccount.enabled: true
rbac.serviceAccount.name: ""
Expand Down

0 comments on commit af10656

Please sign in to comment.