Skip to content

Commit

Permalink
Allow to disable signing tests for containerized AAP
Browse files Browse the repository at this point in the history
  • Loading branch information
obaranov committed Aug 17, 2023
1 parent e8cd56f commit 58bfc69
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions galaxy_ng/tests/integration/utils/iqe_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,10 @@ def is_beta_galaxy_stage():

def is_ocp_env():
# this check will not be necessary when content signing is enabled in operator
return "ocp4.testing.ansible.com" in os.getenv(
"HUB_API_ROOT", "http://localhost:5001/api/automation-hub/"
)
# we also have containerized aap, in that case check proper env var as well
return ("ocp4.testing.ansible.com" in os.getenv(
"HUB_API_ROOT", "http://localhost:5001/api/automation-hub/")
or os.getenv("HUB_CONTENT_SIGNING_ENABLED", 'true') not in ['1', 'True', 'true'])


def is_stage_environment():
Expand Down

0 comments on commit 58bfc69

Please sign in to comment.