diff --git a/tests/conftest.py b/tests/conftest.py index 43c06936be..16b22a27ae 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -433,14 +433,16 @@ def dex_login(username, password, should_fail, control_plane_ingress_ep): auth_form = auth_page.text # The form action looks like: - #
+ # next_path_match = re.search(r'action=[\'"](?P/oidc/\S+)[\'"]', auth_form) assert ( next_path_match is not None ), "Could not find an anchor with `action='/oidc/...'` in Dex response:\n{}".format( auth_form ) - next_path = next_path_match.group("next_path") + # NOTE: recent versions of Go HTTP lib do not allow semicolons in URLs, so + # we manually replace the URL-encoded "&" with a plain ampersand + next_path = next_path_match.group("next_path").replace("&", "&") try: auth_response = session.post(