Skip to content

Commit

Permalink
Add env overrides for integration test polling sleep times. (#2153)
Browse files Browse the repository at this point in the history
* Add env overrides for integration test polling sleep times.

No-Issue

Signed-off-by: James Tanner <[email protected]>

* Typo.

No-Issue

Signed-off-by: James Tanner <[email protected]>

* Use string.

No-Issue

Signed-off-by: James Tanner <[email protected]>

* I need more sleep.

No-Issue

Signed-off-by: James Tanner <[email protected]>

---------

Signed-off-by: James Tanner <[email protected]>
  • Loading branch information
jctanner authored Jun 3, 2024
1 parent d7a26e3 commit 0e55420
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("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'},
Expand Down

0 comments on commit 0e55420

Please sign in to comment.