Skip to content

Commit

Permalink
ignore_cache
Browse files Browse the repository at this point in the history
No-Issue
  • Loading branch information
chr-stian committed Mar 8, 2024
1 parent 6663220 commit 4cbba91
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions galaxy_ng/tests/integration/api/rbac_actions/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
CLIENT_CONFIG = ansible_config("admin")
ADMIN_CLIENT = get_client(CLIENT_CONFIG)

ansible_config = get_ansible_config()
galaxy_client = get_galaxy_client(ansible_config)
if is_ephemeral_env():
gc_admin = galaxy_client("admin", basic_token=True)
else:
gc_admin = galaxy_client("admin", basic_token=False, ignore_cache=True)

API_ROOT = CLIENT_CONFIG["url"]
PULP_API_ROOT = f"{API_ROOT}pulp/api/v3/"
SERVER = API_ROOT.split("/api/")[0]
Expand Down Expand Up @@ -534,13 +541,6 @@ def _reset(self):
# 2. get roles in namespace
# 3. remove roles and groups (clean container namespace)

ansible_config = get_ansible_config()
galaxy_client = get_galaxy_client(ansible_config)
if is_ephemeral_env():
gc_admin = galaxy_client("admin", basic_token=True)
else:
gc_admin = galaxy_client("admin", ignore_cache=True)

self._container = get_container(gc_admin, self._name)
ns_r = gc_admin.get(f"pulp/api/v3/pulp_container/namespaces/?name={self._ns_name}")
pulp_namespace_path = ns_r["results"][0]["pulp_href"]
Expand Down

0 comments on commit 4cbba91

Please sign in to comment.