Skip to content
Snippets Groups Projects
Verified Commit acf199d6 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

swh.auth.pytest_plugin: Make decoded_token consistent with user_info

Tester will want to craft carefully the keycloak mock so it returns
consistent data.

Currently the decoded_token and user_info are hard-coded to consistent values. So using
the default keycloak mock is ok. As soon as other testers will want another user_info,
the decoded token will diverge and not return the correct user_info subpart of the
decoded token.

This commits fixes such behavior and allows the decoded token to stay consistent with
the user_info.

Related to T2858
parent 68e9d921
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment