-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #612 from rstudio/move-helm-unittest-files-outside…
…-chart-dirs Place the helm unittests in the same directory structure as lint and install tests
- Loading branch information
Showing
6 changed files
with
79 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
suite: Workbench Service Accounts | ||
templates: | ||
- configmap-general.yaml | ||
- configmap-prestart.yaml | ||
- configmap-secret.yaml | ||
- configmap-session.yaml | ||
- deployment.yaml | ||
tests: | ||
- it: should set the Workbench pod service account when the launcher is enabled | ||
template: deployment.yaml | ||
set: | ||
launcher: | ||
enabled: true | ||
rbac: | ||
serviceAccount: | ||
name: "workbench-service-account" | ||
asserts: | ||
- equal: | ||
path: "spec.template.spec.serviceAccountName" | ||
value: "workbench-service-account" | ||
- it: should set the Workbench pod service account when the launcher is not enabled | ||
template: deployment.yaml | ||
set: | ||
launcher: | ||
enabled: false | ||
rbac: | ||
serviceAccount: | ||
name: "workbench-service-account" | ||
asserts: | ||
- equal: | ||
path: "spec.template.spec.serviceAccountName" | ||
value: "workbench-service-account" | ||
- it: should use the default serviceAccount name when not set | ||
template: deployment.yaml | ||
asserts: | ||
- equal: | ||
path: "spec.template.spec.serviceAccountName" | ||
value: "RELEASE-NAME-rstudio-workbench" | ||
- it: should use the nameOverride as part of the serviceAccount name when nameOverride is set | ||
template: deployment.yaml | ||
set: | ||
nameOverride: "posit-workbench" | ||
asserts: | ||
- equal: | ||
path: "spec.template.spec.serviceAccountName" | ||
value: "RELEASE-NAME-posit-workbench" | ||
- it: should use the fullnameOverride as the serviceAccount name when fullnameOverride is set | ||
template: deployment.yaml | ||
set: | ||
fullnameOverride: "posit-workbench" | ||
asserts: | ||
- equal: | ||
path: "spec.template.spec.serviceAccountName" | ||
value: "posit-workbench" | ||
- it: should use the fullnameOverride as the serviceAccount name when fullnameOverride is set even if nameOverride is set | ||
template: deployment.yaml | ||
set: | ||
fullnameOverride: "posit-workbench" | ||
nameOverride: "old-workbench" | ||
asserts: | ||
- equal: | ||
path: "spec.template.spec.serviceAccountName" | ||
value: "posit-workbench" |