We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c572947 commit 97e5bdcCopy full SHA for 97e5bdc
templates/tests/st2tests-pod.yaml
@@ -48,6 +48,8 @@ spec:
48
key: password
49
- name: ST2_VERSION
50
value: "{{ .Chart.AppVersion }}"
51
+ - name: ST2_RBAC_ENABLED
52
+ value: "{{ .Values.st2.rbac.enabled }}"
53
volumeMounts:
54
- name: tools
55
mountPath: /tools
tests/st2tests.sh
@@ -74,3 +74,14 @@ load "${BATS_HELPERS_DIR}/bats-file/load.bash"
74
assert_line --partial '"foo" is not found'
75
assert_failure
76
}
77
+
78
+@test 'RBAC is loaded and enabled' {
79
+ if [ $ST2_RBAC_ENABLED != "true" ]; then
80
+ skip "disabled in Helm values"
81
+ fi
82
83
+ run st2 whoami
84
+ assert_success
85
+ assert_output --regexp 'RBAC:\s+ - Enabled: True'
86
+ assert_line --partial 'Roles: system_admin'
87
+}
0 commit comments