From b7eeee14f87a60d702a8d9837fb9275b52b28597 Mon Sep 17 00:00:00 2001 From: smiron Date: Sun, 7 Jan 2024 16:20:32 +0200 Subject: [PATCH] add the option to destroy import idp resources --- tests/e2e/idps_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/e2e/idps_test.go b/tests/e2e/idps_test.go index ad6b35e0..2d72d41c 100644 --- a/tests/e2e/idps_test.go +++ b/tests/e2e/idps_test.go @@ -780,11 +780,13 @@ var _ = Describe("TF Test", func() { }) AfterEach(func() { - err := idpService.google.Destroy() - Expect(err).ToNot(HaveOccurred()) + By("Clean resources after test") err = idpService.gitlab.Destroy() Expect(err).ToNot(HaveOccurred()) + + _, importErr := importService.Destroy() + Expect(importErr).ToNot(HaveOccurred()) }) Context("Author:smiron-Medium-OCP-65981 @OCP-65981 @smiron", func() {