Skip to content

Commit

Permalink
tear down the mesh with apps at the end of the test
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Lobkov <[email protected]>
  • Loading branch information
lobkovilya committed Jan 23, 2025
1 parent d73ba7a commit 858ad4d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/e2e_env/universal/timeout/envoyconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ func EnvoyConfigTest() {
}).Should(Succeed())
})

AfterEachFailure(func() {
DebugUniversal(universal.Cluster, meshName)
})

E2EAfterAll(func() {
Expect(universal.Cluster.DeleteMeshApps(meshName)).To(Succeed())
Expect(universal.Cluster.DeleteMesh(meshName)).To(Succeed())
})

E2EAfterEach(func() {
// delete all meshtimeout policies
out, err := universal.Cluster.GetKumactlOptions().RunKumactlAndGetOutput("get", "meshtimeouts", "--mesh", meshName, "-o", "json")
Expand Down

0 comments on commit 858ad4d

Please sign in to comment.