Skip to content

Commit 9939203

Browse files
committed
expand ad-user-info test
1 parent 044e948 commit 9939203

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

tests/templates/kuttl/ad-user-info/10-install-opa.yaml.j2

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,16 @@ commands:
5757
logging:
5858
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
5959
roleGroups:
60-
default: {}
60+
default:
61+
podOverrides:
62+
spec:
63+
containers:
64+
- name: bundle-builder
65+
imagePullPolicy: IfNotPresent
66+
- name: user-info-fetcher
67+
imagePullPolicy: IfNotPresent
68+
env:
69+
- name: CONSOLE_LOG
70+
value: DEBUG
71+
- name: CONSOLE_LOG_LEVEL
72+
value: DEBUG

tests/templates/kuttl/ad-user-info/test-regorule.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
#!/usr/bin/env python
2-
import requests
32
import argparse
43
import json
54

5+
import requests
6+
67
# todo: make the test more comprehensive to check customAttributes
78
users_and_groups = {
89
"alice@sble.test": [
910
"CN=Superset Admins,CN=Users,DC=sble,DC=test",
1011
"CN=Domain Users,CN=Users,DC=sble,DC=test",
1112
"CN=Users,CN=Builtin,DC=sble,DC=test",
1213
],
14+
"sam-alice": [
15+
"CN=Superset Admins,CN=Users,DC=sble,DC=test",
16+
"CN=Domain Users,CN=Users,DC=sble,DC=test",
17+
"CN=Users,CN=Builtin,DC=sble,DC=test",
18+
],
1319
"bob@sble.test": [
1420
"CN=Domain Users,CN=Users,DC=sble,DC=test",
1521
"CN=Users,CN=Builtin,DC=sble,DC=test",

0 commit comments

Comments
 (0)