Skip to content

Commit

Permalink
Update job_test.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
aslafy-z authored Nov 15, 2024
1 parent 79e73c2 commit 41719f9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions application/tests/job_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,28 @@ tests:
value:
helm.sh/hook: "pre-install,pre-upgrade"

- it: yields empty service account name when disabled
set:
rbac.serviceAccount.enabled: false
asserts:
- isNullOrEmpty:
path: spec.template.spec.serviceAccountName

- it: uses service account name override when present
set:
rbac.serviceAccount.enabled: true
rbac.serviceAccount.name: example-sa
asserts:
- equal:
path: spec.template.spec.serviceAccountName
value: example-sa

- it: uses a generated service account name when not given
set:
applicationName: example-app
rbac.serviceAccount.enabled: true
rbac.serviceAccount.name: ""
asserts:
- equal:
path: spec.template.spec.serviceAccountName
value: example-app

0 comments on commit 41719f9

Please sign in to comment.