diff --git a/testsuite/tests/singlecluster/authorino/operator/sharding/conftest.py b/testsuite/tests/singlecluster/authorino/operator/sharding/conftest.py index 5209e298..cbea9f40 100644 --- a/testsuite/tests/singlecluster/authorino/operator/sharding/conftest.py +++ b/testsuite/tests/singlecluster/authorino/operator/sharding/conftest.py @@ -45,7 +45,7 @@ def _route(hostname, gateway): @pytest.fixture(scope="module") -def setup_authorization(request, blame, cluster, label): # pylint: disable=unused-argument +def setup_authorization(request, blame, cluster, module_label): # pylint: disable=unused-argument """Factory method for creating AuthConfigs in the test run""" def _authorization(route, sharding_label=None): @@ -53,7 +53,7 @@ def _authorization(route, sharding_label=None): cluster, blame("ac"), route, - labels={"testRun": label, "sharding": sharding_label}, + labels={"testRun": module_label, "sharding": sharding_label}, ) auth.responses.add_success_header("header", JsonResponse({"anything": Value(sharding_label)})) request.addfinalizer(auth.delete) diff --git a/testsuite/tests/singlecluster/authorino/operator/sharding/test_preexisting_auth.py b/testsuite/tests/singlecluster/authorino/operator/sharding/test_preexisting_auth.py index 66f4e553..ddeb31a8 100644 --- a/testsuite/tests/singlecluster/authorino/operator/sharding/test_preexisting_auth.py +++ b/testsuite/tests/singlecluster/authorino/operator/sharding/test_preexisting_auth.py @@ -9,15 +9,15 @@ @pytest.fixture(scope="module") -def setup_authorino(cluster, blame, testconfig, label, request): +def setup_authorino(cluster, blame, testconfig, module_label, request): """Authorino instance""" def _authorino(sharding_label): authorino = AuthorinoCR.create_instance( cluster, - blame("authorino"), + blame("fart"), image=weakget(testconfig)["authorino"]["image"] % None, - label_selectors=[f"sharding={sharding_label}", f"testRun={label}"], + label_selectors=[f"sharding={sharding_label}", f"testRun={module_label}"], ) request.addfinalizer(authorino.delete) authorino.commit() @@ -59,7 +59,9 @@ def test_preexisting_auth( route2 = setup_route(hostname.hostname, gw2) auth = setup_authorization(route2, "B") auth.wait_for_ready() - auth.refresh() + + if auth.model.status.summary.hostsReady == []: + print("a") assert ( hostname.hostname in auth.model.status.summary.hostsReady