diff --git a/galaxy_ng/tests/integration/constants.py b/galaxy_ng/tests/integration/constants.py index b15f17d504..f6064d6941 100755 --- a/galaxy_ng/tests/integration/constants.py +++ b/galaxy_ng/tests/integration/constants.py @@ -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("GALAXY_SLEEP_SECONDS_POLLING", "1")) # time.sleep() seconds for checks that wait once -SLEEP_SECONDS_ONETIME = 3 +SLEEP_SECONDS_ONETIME = float(os.environ.get("GALAXY_SLEEP_SECONDS_ONETIME", "3")) + +# how many times to sleep when polling +POLLING_MAX_ATTEMPTS = int(os.environ.get("GALAXY_POLLING_MAX_ATTEMPTS", "10")) DEFAULT_DISTROS = { 'community': {'basepath': 'community'},