Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong credentials param test_auth_credentials.py #263

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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