From 7edd55544f93729b8fbba6b759dca88c219a704a Mon Sep 17 00:00:00 2001 From: bunkerity Date: Fri, 15 Jul 2022 13:54:48 +0200 Subject: [PATCH] fix k8s example for authelia and ignore error code when doing debug_fail for k8s tests --- examples/authelia/kubernetes.yml | 2 +- tests/KubernetesTest.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/authelia/kubernetes.yml b/examples/authelia/kubernetes.yml index 3f89d27ad..aaec7e3d8 100644 --- a/examples/authelia/kubernetes.yml +++ b/examples/authelia/kubernetes.yml @@ -48,7 +48,7 @@ spec: pathType: Prefix backend: service: - name: svc-athelia + name: svc-authelia port: number: 9091 --- diff --git a/tests/KubernetesTest.py b/tests/KubernetesTest.py index 51860c6f0..1c981cc2f 100644 --- a/tests/KubernetesTest.py +++ b/tests/KubernetesTest.py @@ -120,6 +120,5 @@ class KubernetesTest(Test) : def _debug_fail(self) : proc = run('sudo kubectl get pods --no-headers -o custom-columns=":metadata.name"', shell=True, capture_output=True) - if proc.returncode != 0 : - for pod in proc.stdout.decode().splitlines() : - run("sudo kubectl logs " + pod, shell=True) \ No newline at end of file + for pod in proc.stdout.decode().splitlines() : + run("sudo kubectl logs " + pod, shell=True) \ No newline at end of file