Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix test failure due to bad merge
Browse files Browse the repository at this point in the history
0dd2649 (#9112) changed the signature of `auth_via_oidc`. Meanwhile,
26d1033 (#9091) introduced a new test which relied on the old signature of
`auth_via_oidc`. The two branches were never tested together until they landed
in develop.
  • Loading branch information
richvdh committed Jan 15, 2021
1 parent 350d992 commit b5dea87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/rest/client/v2_alpha/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,9 @@ def test_ui_auth_fails_for_incorrect_sso_user(self):
session_id = channel.json_body["session"]

# do the OIDC auth, but auth as the wrong user
channel = self.helper.auth_via_oidc("wrong_user", ui_auth_session_id=session_id)
channel = self.helper.auth_via_oidc(
{"sub": "wrong_user"}, ui_auth_session_id=session_id
)

# that should return a failure message
self.assertSubstring("We were unable to validate", channel.text_body)
Expand Down

0 comments on commit b5dea87

Please sign in to comment.