diff --git a/testsuite/tests/kuadrant/authorino/operator/tls/conftest.py b/testsuite/tests/kuadrant/authorino/operator/tls/conftest.py index 944c26b5e..df4f2b90a 100644 --- a/testsuite/tests/kuadrant/authorino/operator/tls/conftest.py +++ b/testsuite/tests/kuadrant/authorino/operator/tls/conftest.py @@ -34,7 +34,7 @@ def cert_attributes_other(cert_attributes) -> Dict[str, str]: } -@pytest.fixture(scope="session") +@pytest.fixture(scope="module") def certificates(cfssl, authorino_domain, wildcard_domain, cert_attributes, cert_attributes_other): """ Certificate hierarchy used for the tests diff --git a/testsuite/tests/kuadrant/authorino/operator/tls/test_webhook.py b/testsuite/tests/kuadrant/authorino/operator/tls/test_webhook.py index af546fe44..23910ab83 100644 --- a/testsuite/tests/kuadrant/authorino/operator/tls/test_webhook.py +++ b/testsuite/tests/kuadrant/authorino/operator/tls/test_webhook.py @@ -31,7 +31,7 @@ def specific_authorino_name(blame): return blame("authorino") -@pytest.fixture(scope="session") +@pytest.fixture(scope="module") def authorino_domain(openshift, specific_authorino_name): """ Hostname of the upstream certificate sent to be validated by APIcast @@ -40,7 +40,7 @@ def authorino_domain(openshift, specific_authorino_name): return f"{specific_authorino_name}-authorino-authorization.{openshift.project}.svc" -@pytest.fixture(scope="session") +@pytest.fixture(scope="module") def certificates(cfssl, authorino_domain, wildcard_domain): """Certificate hierarchy used for the tests. Authorino certificate has *hosts* set to *authorino_domain* value.