From eb00993fec54247640b3609ad841ad9f68be0bc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20=C4=8C=C3=A1p?= Date: Mon, 30 Oct 2023 14:31:03 +0100 Subject: [PATCH] Add GCP DNS provider test --- testsuite/tests/mgc/conftest.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/testsuite/tests/mgc/conftest.py b/testsuite/tests/mgc/conftest.py index 6a380b0f..3ba82ba5 100644 --- a/testsuite/tests/mgc/conftest.py +++ b/testsuite/tests/mgc/conftest.py @@ -102,11 +102,13 @@ def gateway(upstream_gateway, spokes, hub_policies_commit): return gw -@pytest.fixture(scope="module") -def base_domain(openshift): +@pytest.fixture(scope="module", params=["aws-mz", "gcp-mz"]) +def base_domain(request, openshift): """Returns preconfigured base domain""" + mz_name = request.param + with openshift.context: - zone = selector("managedzone/mgc-dev-mz").object() + zone = selector(f"managedzone/{mz_name}").object() return zone.model["spec"]["domainName"]