From b2fd87086a449ee4c98aa3198e693bea31438bd3 Mon Sep 17 00:00:00 2001 From: phala Date: Wed, 8 Nov 2023 12:51:52 +0100 Subject: [PATCH] Refactor settings structure - Better reflects currect structure of the project and components --- testsuite/tests/kuadrant/authorino/operator/tls/conftest.py | 2 +- .../tests/kuadrant/authorino/operator/tls/test_webhook.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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.