From 8768775c8551ffe8812e8047e850abb8766418d4 Mon Sep 17 00:00:00 2001 From: Flavius Lacatusu Date: Fri, 13 Oct 2023 12:56:41 +0200 Subject: [PATCH] Remove components and application from test namespace (#228) Signed-off-by: Flavius Lacatusu --- tests/rhtap/rhtap_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/rhtap/rhtap_test.go b/tests/rhtap/rhtap_test.go index 632c7fd8..37deee96 100644 --- a/tests/rhtap/rhtap_test.go +++ b/tests/rhtap/rhtap_test.go @@ -59,6 +59,12 @@ var _ = Describe("RHTAP sample checks", Ordered, Label("nightly"), func() { AfterAll(func() { if !CurrentSpecReport().Failed() { + if err := fw.HasController.DeleteAllComponentsInASpecificNamespace(testNamespace, 60*time.Second); err != nil { + GinkgoWriter.Printf("error deleting all componentns in namespace:\n%s", err) + } + if err := fw.HasController.DeleteAllApplicationsInASpecificNamespace(testNamespace, 60*time.Second); err != nil { + GinkgoWriter.Printf("error deleting all componentns in namespace:\n%s", err) + } Expect(fw.CommonController.DeleteNamespace(testNamespace)).NotTo(HaveOccurred()) } })