Skip to content

Commit a478980

Browse files
UPSTREAM: <carry>: enhance: add cleanup for webhook-operator-catalog
Add AfterAll hook to cleanup leftover ClusterCatalog resource using EnsureCleanupClusterCatalog helper function. Assisted-by: Cursor
1 parent 9319f22 commit a478980

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

openshift/tests-extension/test/webhooks.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ var _ = Describe("[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServi
9595
}
9696
})
9797

98+
AfterAll(func(ctx SpecContext) {
99+
helpers.EnsureCleanupClusterCatalog(ctx, webhookCatalogName)
100+
})
101+
98102
It("should have a working validating webhook", func(ctx SpecContext) {
99103
By("creating a webhook test resource that will be rejected by the validating webhook")
100104
Eventually(func() error {

0 commit comments

Comments
 (0)