Skip to content

Commit

Permalink
add debug timer
Browse files Browse the repository at this point in the history
No-Issue
  • Loading branch information
jerabekjiri committed Sep 3, 2024
1 parent 6a4039a commit 9e98e86
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions galaxy_ng/tests/integration/api/rbac_actions/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
wait_for_all_tasks as wait_for_all_tasks_fixtures,
AnsibleDistroAndRepo
)
import logging

from ansible.galaxy.api import GalaxyError

Expand All @@ -33,6 +34,8 @@
gc_admin = galaxy_client("admin", basic_token=False, ignore_cache=True)
'''

log = logging.getLogger(__name__)

API_ROOT = CLIENT_CONFIG["url"]
PULP_API_ROOT = f"{API_ROOT}pulp/api/v3/"
SERVER = API_ROOT.split("/api/")[0]
Expand Down Expand Up @@ -153,6 +156,8 @@ def podman_push(username, password, container, tag="latest"):
print('-------------------PODMAN PUSH-----------------------')
start = time.time()
print("test started ", start)
log.debug("debug test started: %s", start)
log.info("info test started: %s", start)

_ansible_config = get_ansible_config()
_galaxy_client = get_galaxy_client(_ansible_config)
Expand All @@ -164,6 +169,8 @@ def podman_push(username, password, container, tag="latest"):

end = time.time()
print('elapsed time ', end - start)
log.debug("debug elapsed time: %s", start)
log.info("info elapsed time: %s", start)
return 0


Expand Down

0 comments on commit 9e98e86

Please sign in to comment.