-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrate OIDC client Tests * update tests to get client_creds * fix client_creds test * update conftest.py marker code * fix centralized_auth tests * Update shared_integration_tests.yaml * changes for OIDC * Update shared_integration_tests.yaml * Changes for jenkins-client-tester * Changes for removing client info files * Update gen3_admin_tasks.py --------- Co-authored-by: Krishna Agarwal <[email protected]> Co-authored-by: Krishna Agarwal <[email protected]>
- Loading branch information
1 parent
d2e5168
commit eb550c5
Showing
35 changed files
with
578 additions
and
125 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
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
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 |
---|---|---|
|
@@ -59,10 +59,17 @@ def pytest_collection_finish(session): | |
for marker_name, marker in markers.items(): | ||
if marker_name == "requires_fence_client": | ||
setup.get_fence_client_info() | ||
setup.get_fence_rotated_client_info() | ||
requires_fence_client_marker_present = True | ||
return | ||
|
||
|
||
@pytest.fixture(scope="session", autouse=True) | ||
def get_fence_clients(): | ||
setup.get_client_id_secret() | ||
setup.get_rotated_client_id_secret() | ||
|
||
|
||
def pytest_configure(config): | ||
# Compute hostname and namespace | ||
hostname = os.getenv("HOSTNAME") | ||
|
@@ -83,6 +90,7 @@ def pytest_configure(config): | |
|
||
# Clients used for testing | ||
pytest.clients = {} | ||
pytest.rotated_clients = {} | ||
# Accounts used for testing | ||
pytest.users = {} | ||
pytest.users["main_account"] = "[email protected]" # default user | ||
|
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
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
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
Oops, something went wrong.