Skip to content

Commit

Permalink
Added logLevel debug for authorino
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmolar committed Oct 21, 2022
1 parent a97f6f6 commit 98d4563
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ default:
password: "testPassword"
authorino:
deploy: true
log_level: "debug"
envoy:
image: "docker.io/envoyproxy/envoy:v1.23-latest"
4 changes: 3 additions & 1 deletion testsuite/openshift/objects/authorino.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -25,6 +26,7 @@ def create_instance(cls, openshift: OpenShiftClient, name, image=None,
},
"spec": {
"clusterWide": cluster_wide,
"logLevel": log_level,
"listener": {
"tls": {
"enabled": False
Expand Down
1 change: 1 addition & 0 deletions testsuite/tests/kuadrant/authorino/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 98d4563

Please sign in to comment.