From a47898023f77d5bf691eca0919d71ace0843573f Mon Sep 17 00:00:00 2001 From: Camila Macedo <7708031+camilamacedo86@users.noreply.github.com> Date: Thu, 28 Aug 2025 15:34:32 +0100 Subject: [PATCH] UPSTREAM: : enhance: add cleanup for webhook-operator-catalog Add AfterAll hook to cleanup leftover ClusterCatalog resource using EnsureCleanupClusterCatalog helper function. Assisted-by: Cursor --- openshift/tests-extension/test/webhooks.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openshift/tests-extension/test/webhooks.go b/openshift/tests-extension/test/webhooks.go index f6733a083..9e0c0636c 100644 --- a/openshift/tests-extension/test/webhooks.go +++ b/openshift/tests-extension/test/webhooks.go @@ -95,6 +95,10 @@ var _ = Describe("[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServi } }) + AfterAll(func(ctx SpecContext) { + helpers.EnsureCleanupClusterCatalog(ctx, webhookCatalogName) + }) + It("should have a working validating webhook", func(ctx SpecContext) { By("creating a webhook test resource that will be rejected by the validating webhook") Eventually(func() error {