From 98d456312509f8d401dbd2bcebb6936fb8590c1e Mon Sep 17 00:00:00 2001 From: jsmolar Date: Tue, 18 Oct 2022 12:23:05 +0200 Subject: [PATCH] Added logLevel debug for authorino --- config/settings.yaml | 1 + testsuite/openshift/objects/authorino.py | 4 +++- testsuite/tests/kuadrant/authorino/conftest.py | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/settings.yaml b/config/settings.yaml index 24f68e45..d562b04c 100644 --- a/config/settings.yaml +++ b/config/settings.yaml @@ -11,5 +11,6 @@ default: password: "testPassword" authorino: deploy: true + log_level: "debug" envoy: image: "docker.io/envoyproxy/envoy:v1.23-latest" \ No newline at end of file diff --git a/testsuite/openshift/objects/authorino.py b/testsuite/openshift/objects/authorino.py index 7ca3a115..5570f3d7 100644 --- a/testsuite/openshift/objects/authorino.py +++ b/testsuite/openshift/objects/authorino.py @@ -14,7 +14,8 @@ class AuthorinoCR(OpenShiftObject, Authorino): @classmethod def create_instance(cls, openshift: OpenShiftClient, name, image=None, - cluster_wide=False, label_selectors: List[str] = None, listener_certificate_secret=None): + cluster_wide=False, label_selectors: List[str] = None, listener_certificate_secret=None, + log_level=None): """Creates base instance""" model: Dict[str, Any] = { "apiVersion": "operator.authorino.kuadrant.io/v1beta1", @@ -25,6 +26,7 @@ def create_instance(cls, openshift: OpenShiftClient, name, image=None, }, "spec": { "clusterWide": cluster_wide, + "logLevel": log_level, "listener": { "tls": { "enabled": False diff --git a/testsuite/tests/kuadrant/authorino/conftest.py b/testsuite/tests/kuadrant/authorino/conftest.py index 95bd6b8b..1b553d9d 100644 --- a/testsuite/tests/kuadrant/authorino/conftest.py +++ b/testsuite/tests/kuadrant/authorino/conftest.py @@ -33,6 +33,7 @@ def authorino(authorino, openshift, blame, request, testconfig, module_label, au authorino = AuthorinoCR.create_instance(openshift, blame("authorino"), image=weakget(testconfig)["authorino"]["image"] % None, + log_level=weakget(testconfig)["authorino"]["log_level"] % None, **authorino_parameters) request.addfinalizer(lambda: authorino.delete(ignore_not_found=True)) authorino.commit()