Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add env overrides for integration test polling sleep times. #2153

Merged
merged 4 commits into from
Jun 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading