Skip to content

Commit

Permalink
HUB_API_ROOT needs to be localhost in sync tests
Browse files Browse the repository at this point in the history
No-Issue
  • Loading branch information
chr-stian committed Jun 25, 2024
1 parent 9c8bea9 commit e8f671f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion galaxy_ng/tests/integration/utils/iqe_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,10 @@ def get_hub_version(ansible_config):
gc = GalaxyKitClient(ansible_config).gen_authorized_client(role)
except GalaxyError:
# FIXME: versions prior to 4.7 have different credentials. This needs to be fixed.
api_root = os.environ.get("HUB_API_ROOT", "http://localhost:5001/api/automation-hub/")
if is_sync_testing():
api_root = "http://localhost:5001/api/automation-hub/"
else:
api_root = os.environ.get("HUB_API_ROOT", "http://localhost:5001/api/automation-hub/")
api_root = api_root.rstrip("/") + "/"
gc = GalaxyClient(galaxy_root=api_root,
auth={"username": "admin", "password": "admin"})
Expand Down

0 comments on commit e8f671f

Please sign in to comment.