Skip to content

Commit

Permalink
Merge pull request Kuadrant#349 from ficap/dns-fix
Browse files Browse the repository at this point in the history
Add unique prefix for base_domain to prevent dns collisions
  • Loading branch information
pehala authored Feb 20, 2024
2 parents 6a94d1f + 6831ac6 commit c498080
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testsuite/tests/mgc/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit c498080

Please sign in to comment.