Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 5a942b1

Browse files
committed
Test client object provisioning
1 parent a474784 commit 5a942b1

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

dex.values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ config:
2222
hash: "$2a$10$2b2cU8CPhOTaGrs1HRQuAueS7JTT5ZHsHSzYiFPm1leZck7Mc8T4W" # password
2323
username: "test-client-oidc"
2424
userID: "73bca0b9-9be6-4e73-a8fb-347c2ac23255"
25+
- email: "test-client-oidc-provisioning@example.com"
26+
hash: "$2a$10$2b2cU8CPhOTaGrs1HRQuAueS7JTT5ZHsHSzYiFPm1leZck7Mc8T4W" # password
27+
username: "test-client-oidc-provisioning"
28+
userID: "464d9494-5cc3-44e1-a380-c0403bd31fcb"
2529
- email: "test-exporter-oidc@example.com"
2630
hash: "$2a$10$2b2cU8CPhOTaGrs1HRQuAueS7JTT5ZHsHSzYiFPm1leZck7Mc8T4W" # password
2731
username: "test-exporter-oidc"

tests.bats

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ wait_for_exporter() {
4242
--issuer https://dex.dex.svc.cluster.local:5556 \
4343
--username test-client-oidc@example.com --password password --unsafe
4444

45+
jmp login --client test-client-oidc-provisioning \
46+
--endpoint "$ENDPOINT" --namespace default --name "" \
47+
--issuer https://dex.dex.svc.cluster.local:5556 \
48+
--username test-client-oidc-provisioning@example.com --password password --unsafe
49+
4550
jmp login --client test-client-sa \
4651
--endpoint "$ENDPOINT" --namespace default --name test-client-sa \
4752
--issuer https://dex.dex.svc.cluster.local:5556 \
@@ -120,6 +125,9 @@ EOF
120125
jmp shell --client test-client-oidc --selector example.com/board=oidc j power on
121126
jmp shell --client test-client-sa --selector example.com/board=sa j power on
122127
jmp shell --client test-client-legacy --selector example.com/board=legacy j power on
128+
129+
wait_for_exporter
130+
jmp shell --client test-client-oidc-provisioning --selector example.com/board=oidc j power on
123131
}
124132

125133
@test "can get crds with admin cli" {

values.kind.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ jumpstarter-controller:
77
grpc:
88
mode: "ingress"
99
config:
10+
provisioning:
11+
enabled: true
1012
authentication:
1113
jwt:
1214
- issuer:

0 commit comments

Comments
 (0)