Skip to content

Commit

Permalink
Merge pull request #270 from pehala/blame_email
Browse files Browse the repository at this point in the history
Blame email for RHSSO users
  • Loading branch information
pehala authored Nov 13, 2023
2 parents fba5d9c + ef5d80d commit 87bb76c
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 87bb76c

Please sign in to comment.