Skip to content

Commit

Permalink
Add env overrides for integration test polling sleep times.
Browse files Browse the repository at this point in the history
No-Issue

Signed-off-by: James Tanner <tanner.jc@gmail.com>
  • Loading branch information
jctanner committed Jun 3, 2024
1 parent bbc3be7 commit b4dde91
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions galaxy_ng/tests/integration/constants.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
"""Constants usable by multiple test modules."""

import os


USERNAME_ADMIN = "ansible-insights"
USERNAME_CONSUMER = "autohubtest3"
USERNAME_PUBLISHER = "autohubtest2"

# time.sleep() seconds for checks that poll in a loop
SLEEP_SECONDS_POLLING = 1
SLEEP_SECONDS_POLLING = float(os.environ.get(os.environ.get("GALAXY_SLEEP_SECONDS_POLLING", 1)))

# time.sleep() seconds for checks that wait once
SLEEP_SECONDS_ONETIME = 3
SLEEP_SECONDS_ONETIME = float(os.environ.get(os.environ.get("GALAXY_SLEEP_SECONDS_ONETIME", 3)))

# how many times to sleep when polling
POLLING_MAX_ATTEMPTS = init(os.environ.get(os.environ.get("GALAXY_POLLING_MAX_ATTEMPTS", 10)))

DEFAULT_DISTROS = {
'community': {'basepath': 'community'},
Expand Down

0 comments on commit b4dde91

Please sign in to comment.