-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #270 from pehala/blame_email
Blame email for RHSSO users
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
|
||
|
||
|