Skip to content

Commit

Permalink
more debug nessus
Browse files Browse the repository at this point in the history
  • Loading branch information
sfowl committed Nov 18, 2024
1 parent eab7fd8 commit 5957e84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e-tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
4 changes: 4 additions & 0 deletions e2e-tests/test_nessus.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5957e84

Please sign in to comment.