From 5957e84517ae93a1ddd2fcb6de822ce3b891bd03 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 18 Nov 2024 15:24:48 +1000 Subject: [PATCH] more debug nessus --- e2e-tests/conftest.py | 3 ++- e2e-tests/test_nessus.py | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/e2e-tests/conftest.py b/e2e-tests/conftest.py index f226b2b..7fbdf24 100644 --- a/e2e-tests/conftest.py +++ b/e2e-tests/conftest.py @@ -161,4 +161,5 @@ def teardown_class(cls): def create_from_yaml(self, path: str): # delete resources in teardown method later self._teardowns.append(partial(os.system, f"kubectl delete -f {path} -n {NAMESPACE}")) - utils.create_from_yaml(self.kclient, path, namespace=NAMESPACE, verbose=True) + o = utils.create_from_yaml(self.kclient, path, namespace=NAMESPACE, verbose=True) + logging.debug(o) diff --git a/e2e-tests/test_nessus.py b/e2e-tests/test_nessus.py index f0f623e..9cfe117 100644 --- a/e2e-tests/test_nessus.py +++ b/e2e-tests/test_nessus.py @@ -9,6 +9,10 @@ class TestNessus(TestBase): def test_nessus(self): """Test rapidast find expected number of findings in VAPI""" self.create_from_yaml(f"{self.tempdir}/nessus-deployment.yaml") + os.system("oc get deploy") + os.system("oc get deploy -o yaml") + os.system("oc get pods") + os.system("oc get pods -o yaml") self.create_from_yaml(f"{self.tempdir}/nessus-service.yaml") wait_until_ready(label_selector="app=nessus", timeout=300) # nessus is slow to pull and start