Skip to content

Commit

Permalink
Merge pull request #351 from ficap/reconc-base-domain-fix
Browse files Browse the repository at this point in the history
Add unique prefix for base_domain also in reconciliation tests to prevent dns collisions
  • Loading branch information
pehala authored Feb 26, 2024
2 parents c17bb62 + 2e6657a commit 7010db0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from testsuite.gateway import CustomReference
from testsuite.policy.tls_policy import TLSPolicy
from testsuite.utils import generate_tail

pytestmark = [pytest.mark.mgc]

Expand All @@ -13,7 +14,7 @@
def base_domain(hub_openshift):
"""Returns preconfigured base domain"""
zone = selector("managedzone/aws-mz", static_context=hub_openshift.context).object()
return zone.model["spec"]["domainName"]
return f"{generate_tail()}.{zone.model['spec']['domainName']}"


def test_wrong_issuer_type(request, hub_gateway, hub_openshift, blame, module_label):
Expand Down
3 changes: 2 additions & 1 deletion testsuite/tests/mgc/reconciliation/test_same_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from testsuite.policy.tls_policy import TLSPolicy
from testsuite.tests.mgc.reconciliation import dns_policy
from testsuite.utils import generate_tail

pytestmark = [pytest.mark.mgc]

Expand All @@ -13,7 +14,7 @@
def base_domain(hub_openshift):
"""Returns preconfigured base domain"""
zone = selector("managedzone/aws-mz", static_context=hub_openshift.context).object()
return zone.model["spec"]["domainName"]
return f"{generate_tail()}.{zone.model['spec']['domainName']}"


@pytest.mark.parametrize(
Expand Down

0 comments on commit 7010db0

Please sign in to comment.