Skip to content

Commit

Permalink
fix oidc test
Browse files Browse the repository at this point in the history
  • Loading branch information
labrenbe committed Aug 5, 2024
1 parent ec83a52 commit 1ac981b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
7 changes: 7 additions & 0 deletions tests/templates/kuttl/oidc/01_keycloak.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ data:
{
"realm": "$REALM",
"enabled": true,
"attributes": {
"frontendUrl": "keycloak.$NAMESPACE.svc.cluster.local"
},
"users": [
{
"enabled": true,
Expand Down Expand Up @@ -151,7 +154,11 @@ spec:
provider:
oidc:
hostname: $INSTANCE_NAME.$NAMESPACE.svc.cluster.local
{% if test_scenario['values']['oidc-use-tls'] == 'true' %}
port: 8443
{% else %}
port: 8080
{% endif %}
rootPath: /realms/$REALM
scopes:
- email
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,4 @@ spec:
env:
- name: OIDC_USE_TLS
value: "{{ test_scenario['values']['oidc-use-tls'] }}"
- name: NIFI_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: test-nifi-oidc-admin-password
key: admin

terminationGracePeriodSeconds: 1
1 change: 0 additions & 1 deletion tests/templates/kuttl/oidc/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
welcome_page = session.post(
authenticate_url, data={"username": "jane.doe", "password": "T8mn72D9"}, verify=False
)
print(welcome_page.url)
assert welcome_page.ok, "Login failed"
assert (
welcome_page.url == f"https://{nifi}:8443/nifi/"
Expand Down
2 changes: 1 addition & 1 deletion tests/test-definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ dimensions:
- name: oidc-use-tls
values:
- "false"
# - "true"
- "true"
- name: openshift
values:
- "false"
Expand Down

0 comments on commit 1ac981b

Please sign in to comment.