Skip to content

Commit

Permalink
look for the right cookies in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
goulter committed Aug 13, 2024
1 parent 7ec13fc commit 590de3c
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 590de3c

Please sign in to comment.