Skip to content

Commit

Permalink
Fix wrong credentials param rhsso/test_auth_credentials.py
Browse files Browse the repository at this point in the history
  • Loading branch information
azgabur committed Nov 6, 2023
1 parent 37a26c4 commit 28d5ef9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 28d5ef9

Please sign in to comment.