From 52430e98aaa31f3db4fda2014446ecc383feb76b Mon Sep 17 00:00:00 2001 From: phala Date: Thu, 30 May 2024 12:01:16 +0200 Subject: [PATCH 1/2] Improve webhook delete --- .../tests/kuadrant/authorino/operator/tls/test_webhook.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testsuite/tests/kuadrant/authorino/operator/tls/test_webhook.py b/testsuite/tests/kuadrant/authorino/operator/tls/test_webhook.py index cdcfdb57..c354fa31 100644 --- a/testsuite/tests/kuadrant/authorino/operator/tls/test_webhook.py +++ b/testsuite/tests/kuadrant/authorino/operator/tls/test_webhook.py @@ -153,7 +153,8 @@ def validating_webhook(openshift, authorino_domain, certificates, blame): with openshift.context: webhook = oc.create(model) yield webhook - webhook.delete() + with openshift.context: + webhook.delete() # pylint: disable=unused-argument From bf403bd8d4e960bd708625ff139987c6fdeed7f9 Mon Sep 17 00:00:00 2001 From: phala Date: Thu, 30 May 2024 12:03:30 +0200 Subject: [PATCH 2/2] Add ValidatingWebhookConfiguration to make clean --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index fe999826..7c02d1a0 100644 --- a/Makefile +++ b/Makefile @@ -113,6 +113,7 @@ RateLimitPolicy,$\ DNSPolicy,$\ TLSPolicy,$\ Authorino,$\ +ValidatingWebhookConfiguration,$\ WasmPlugin" clean: ## Clean all objects in Openshift created by running this testsuite