Skip to content

Commit

Permalink
Remove components and application from test namespace (#228)
Browse files Browse the repository at this point in the history
Signed-off-by: Flavius Lacatusu <[email protected]>
  • Loading branch information
flacatus authored Oct 13, 2023
1 parent b0d8788 commit 8768775
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/rhtap/rhtap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
})
Expand Down

0 comments on commit 8768775

Please sign in to comment.