Skip to content

Commit

Permalink
Merge pull request #54 from UWIT-IAM/GH-53
Browse files Browse the repository at this point in the history
[GH-53] look for the right cookies in prod
  • Loading branch information
goulter authored Aug 13, 2024
2 parents 7ec13fc + 590de3c commit b1eb8f6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/test_2fa_duo.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,7 @@ def test_remember_me_cookie(

cookie_names = {cookie['name'] for cookie in fresh_browser.get_cookies()}
# prod and eval are different for about a week til the new shib is released to prod.
if test_env == 'eval':
assert '__Host-shib_idp_session' in cookie_names
else:
assert 'shib_idp_session' in cookie_names
assert '__Host-shib_idp_session' in cookie_names
assert 'shib_idp_session_ss' in cookie_names

fresh_browser.get(f'{sp_url(sp)}/Shibboleth.sso/Logout?return={idp_url}/profile/Logout')
Expand All @@ -220,10 +217,7 @@ def test_remember_me_cookie(

cookie_names = {cookie['name'] for cookie in fresh_browser.get_cookies()}
# prod and eval are different for about a week til the new shib is released to prod.
if test_env == 'eval':
assert '__Host-shib_idp_session' not in cookie_names
else:
assert 'shib_idp_session' not in cookie_names
assert '__Host-shib_idp_session' not in cookie_names
assert 'shib_idp_session_ss' not in cookie_names

sp = ServiceProviderInstance.diafine12
Expand Down

0 comments on commit b1eb8f6

Please sign in to comment.