Skip to content

Commit

Permalink
fix bad tests from OIDC settings update
Browse files Browse the repository at this point in the history
  • Loading branch information
guruofgentoo committed Apr 16, 2020
1 parent 39beae0 commit dde1b63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions keg_auth/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@ def oidc_client():
'OIDC_CALLBACK_ROUTE': '/oidc/callback',
'OIDC_SCOPES': ('openid', 'email', 'profile'),
'OIDC_REDIRECT_BASE': 'http://localhost:5000',
'OIDC_LOGOUT': '/oauth2/default/v1/logout',
'OIDC_LOGOUT': '/oauth2/v1/logout',
'OIDC_PROVIDER_URL': 'https://the.provider',
'OIDC_CLIENT_ID': 'theproviderclientid',
'OIDC_CLIENT_SECRET': 'supersecretrandomgeneratedstring',
Expand Down Expand Up @@ -1329,7 +1329,7 @@ def test_not_exists(self, oidc_auth_client):

def test_unauthenticated(self, oidc_client):
resp = oidc_client.get('/login', status=302)
assert 'oauth2/default/v1/authorize?' in resp.location
assert 'oauth2/v1/authorize?' in resp.location


class TestOidcLogout:
Expand All @@ -1351,7 +1351,7 @@ def test_success(self, oidc_auth_client, auth_user):
lambda _: BlankObject(token_response={'id_token': 'foo'})
):
resp = oidc_auth_client.get('/logout', status=302)
assert '/oauth2/default/v1/logout?id_token_hint=foo&post_logout_redirect_uri' \
assert '/oauth2/v1/logout?id_token_hint=foo&post_logout_redirect_uri' \
in resp.location

def test_success_redirect(self, oidc_auth_client, auth_user):
Expand Down

0 comments on commit dde1b63

Please sign in to comment.