Skip to content
Closed
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions tests/storage/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
SECURITY_CONTEXT,
TIMEOUT_1MIN,
TIMEOUT_5SEC,
TIMEOUT_30MIN,
U1_SMALL,
Images,
)
Expand Down Expand Up @@ -586,3 +587,8 @@ def rhel10_data_source_scope_module(golden_images_namespace):
@pytest.fixture(scope="class")
def unique_suffix():
return shortuuid.ShortUUID().random(length=4).lower()


@pytest.fixture(scope="class")
def dv_wait_timeout(request):
return request.param.get("dv_wait_timeout") if hasattr(request, "param") else TIMEOUT_30MIN
12 changes: 12 additions & 0 deletions tests/storage/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,15 @@
HTTPS = "https"

QUAY_FEDORA_CONTAINER_IMAGE = f"docker://{Images.Fedora.FEDORA_CONTAINER_IMAGE}"

STORAGE_CLASS_A = "storage_class_a"
STORAGE_CLASS_B = "storage_class_b"

NO_STORAGE_CLASS_FAILURE_MESSAGE = (
f"Test failed: {'{storage_class}'} storage class is not deployed. "
f"Available storage classes: {'{cluster_storage_classes_names}'}. "
"Ensure the correct storage_class is set in the global_config, "
"or override it with the pytest params: "
f"--tc={STORAGE_CLASS_A}:<storage_class_name> "
f"--tc={STORAGE_CLASS_B}:<storage_class_name>"
)
Loading
Loading