From 6831ac6172b8430c16d08f13d57400c4b3755956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20=C4=8C=C3=A1p?= Date: Tue, 20 Feb 2024 14:53:38 +0100 Subject: [PATCH] Add unique prefix for base_domain to prevent dns collisions --- testsuite/tests/mgc/conftest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testsuite/tests/mgc/conftest.py b/testsuite/tests/mgc/conftest.py index ea92c500..d8cc0d73 100644 --- a/testsuite/tests/mgc/conftest.py +++ b/testsuite/tests/mgc/conftest.py @@ -10,6 +10,7 @@ from testsuite.gateway.gateway_api.hostname import DNSPolicyExposer from testsuite.gateway.gateway_api.route import HTTPRoute from testsuite.policy.tls_policy import TLSPolicy +from testsuite.utils import generate_tail @pytest.fixture(scope="session") @@ -100,7 +101,7 @@ def base_domain(request, hub_openshift): mz_name = request.param zone = selector(f"managedzone/{mz_name}", static_context=hub_openshift.context).object() - return zone.model["spec"]["domainName"] + return f"{generate_tail()}.{zone.model['spec']['domainName']}" @pytest.fixture(scope="module")