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 af10656 commit 0ad9379
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/tests/cronjob_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ tests:
rbac.serviceAccount.enabled: false
asserts:
- isNullOrEmpty:
path: spec.template.spec.serviceAccountName
path: spec.jobTemplate.spec.template.spec.serviceAccountName

- it: uses service account name override when present
set:
Expand All @@ -103,7 +103,7 @@ tests:
rbac.serviceAccount.name: example-sa
asserts:
- equal:
path: spec.template.spec.serviceAccountName
path: spec.jobTemplate.spec.template.spec.serviceAccountName
value: example-sa

- it: uses a generated service account name when not given
Expand All @@ -119,5 +119,5 @@ tests:
rbac.serviceAccount.name: ""
asserts:
- equal:
path: spec.template.spec.serviceAccountName
path: spec.jobTemplate.spec.template.spec.serviceAccountName
value: example-app

0 comments on commit 0ad9379

Please sign in to comment.