From ef5d80db5013902e25658ba360062d7c62bc6909 Mon Sep 17 00:00:00 2001 From: phala Date: Wed, 8 Nov 2023 12:54:51 +0100 Subject: [PATCH] Blame email for RHSSO users --- testsuite/tests/kuadrant/authorino/metadata/test_user_info.py | 4 ++-- testsuite/tests/kuadrant/test_rate_limit_authz.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/testsuite/tests/kuadrant/authorino/metadata/test_user_info.py b/testsuite/tests/kuadrant/authorino/metadata/test_user_info.py index e3d6a04b..7a5a3c29 100644 --- a/testsuite/tests/kuadrant/authorino/metadata/test_user_info.py +++ b/testsuite/tests/kuadrant/authorino/metadata/test_user_info.py @@ -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="test@test.com") + return rhsso.realm.create_user("user2", "password", email=f"{blame('test')}@test.com") @pytest.fixture(scope="module") diff --git a/testsuite/tests/kuadrant/test_rate_limit_authz.py b/testsuite/tests/kuadrant/test_rate_limit_authz.py index 6f90a181..cf10fa50 100644 --- a/testsuite/tests/kuadrant/test_rate_limit_authz.py +++ b/testsuite/tests/kuadrant/test_rate_limit_authz.py @@ -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="test@test.com") + user = rhsso.realm.create_user(name, "password", email=f"{blame('test')}@test.com") return HttpxOidcClientAuth.from_user(rhsso.get_token, user=user)