From 28d5ef9618b40d77835da5aadbf856566b45ff06 Mon Sep 17 00:00:00 2001 From: Alex Zgabur Date: Fri, 3 Nov 2023 14:41:33 +0100 Subject: [PATCH] Fix wrong credentials param rhsso/test_auth_credentials.py --- .../authorino/identity/rhsso/test_auth_credentials.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testsuite/tests/kuadrant/authorino/identity/rhsso/test_auth_credentials.py b/testsuite/tests/kuadrant/authorino/identity/rhsso/test_auth_credentials.py index 48683a4d..11de3dd1 100644 --- a/testsuite/tests/kuadrant/authorino/identity/rhsso/test_auth_credentials.py +++ b/testsuite/tests/kuadrant/authorino/identity/rhsso/test_auth_credentials.py @@ -21,7 +21,7 @@ def authorization(authorization, rhsso, credentials): def test_custom_selector(client, auth, credentials): """Test if auth credentials are stored in right place""" response = client.get("/get", headers={"authorization": "Token " + auth.token.access_token}) - if credentials == "authorization_header": + if credentials == "authorizationHeader": assert response.status_code == 200 else: assert response.status_code == 401 @@ -30,7 +30,7 @@ def test_custom_selector(client, auth, credentials): def test_custom_header(client, auth, credentials): """Test if auth credentials are stored in right place""" response = client.get("/get", headers={"Token": auth.token.access_token}) - if credentials == "custom_header": + if credentials == "customHeader": assert response.status_code == 200 else: assert response.status_code == 401 @@ -39,7 +39,7 @@ def test_custom_header(client, auth, credentials): def test_query(client, auth, credentials): """Test if auth credentials are stored in right place""" response = client.get("/get", params={"Token": auth.token.access_token}) - if credentials == "query": + if credentials == "queryString": assert response.status_code == 200 else: assert response.status_code == 401