Skip to content

Commit

Permalink
skip if keycloak
Browse files Browse the repository at this point in the history
No-Issue
  • Loading branch information
chr-stian committed Mar 7, 2024
1 parent 9ca00c6 commit 33ed41c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions galaxy_ng/tests/integration/api/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def test_auth_exception(ansible_config, published):


@pytest.mark.deployment_standalone
@pytest.mark.this
def test_ui_login_csrftoken(galaxy_client):
if is_keycloak():
pytest.skip("This test is not valid for keycloak")
Expand Down
4 changes: 2 additions & 2 deletions galaxy_ng/tests/integration/utils/iqe_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ def is_galaxy_stage():


def is_keycloak():
keycloak_url = os.getenv("HUB_AUTH_URL")
return bool(keycloak_url)
auth_backend = os.getenv("HUB_TEST_AUTHENTICATION_BACKEND", "")
return "keycloak" in auth_backend


def is_ocp_env():
Expand Down

0 comments on commit 33ed41c

Please sign in to comment.