Skip to content

Commit

Permalink
Blame email for RHSSO users
Browse files Browse the repository at this point in the history
  • Loading branch information
pehala committed Nov 8, 2023
1 parent 65eccb6 commit ef5d80d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions testsuite/tests/kuadrant/authorino/metadata/test_user_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@


@pytest.fixture(scope="module")
def user2(rhsso):
def user2(rhsso, blame):
"""Second User which has incorrect email"""
return rhsso.realm.create_user("user2", "password", email="[email protected]")
return rhsso.realm.create_user("user2", "password", email=f"{blame('test')}@test.com")


@pytest.fixture(scope="module")
Expand Down
4 changes: 2 additions & 2 deletions testsuite/tests/kuadrant/test_rate_limit_authz.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ def auth(oidc_provider):


@pytest.fixture(scope="module")
def auth2(rhsso):
def auth2(rhsso, blame):
"""Creates new RHSSO user and returns its authentication object for HTTPX"""
name = rhsso.user.username + "-test2"
user = rhsso.realm.create_user(name, "password", email="[email protected]")
user = rhsso.realm.create_user(name, "password", email=f"{blame('test')}@test.com")
return HttpxOidcClientAuth.from_user(rhsso.get_token, user=user)


Expand Down

0 comments on commit ef5d80d

Please sign in to comment.