From fd439ed8900bfbf124e7a496301d160daaeff3d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20St=C3=A4bler?= Date: Thu, 7 Dec 2023 16:28:55 +0100 Subject: [PATCH] Cleanup created resources in channel conformance tests --- test/rekt/features/channel/control_plane.go | 2 ++ test/rekt/features/channel/data_plane.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/rekt/features/channel/control_plane.go b/test/rekt/features/channel/control_plane.go index c7b6b1346c4..e8e93452afd 100644 --- a/test/rekt/features/channel/control_plane.go +++ b/test/rekt/features/channel/control_plane.go @@ -128,6 +128,8 @@ func ControlPlaneChannel(channelName string) *feature.Feature { Should("Set the Channel status.deadLetterSinkURI if there is a valid spec.delivery.deadLetterSink defined", readyChannelWithDLSHaveStatusUpdated(cName)) + f.Teardown("cleanup created resources", f.DeleteResources) + return f } diff --git a/test/rekt/features/channel/data_plane.go b/test/rekt/features/channel/data_plane.go index d8077037712..53faca760fd 100644 --- a/test/rekt/features/channel/data_plane.go +++ b/test/rekt/features/channel/data_plane.go @@ -102,6 +102,8 @@ func DataPlaneChannel(channelName string) *feature.Feature { // messaging.protocol: the name of the underlying transport protocol // messaging.message_id: the event ID + f.Teardown("cleanup created resources", f.DeleteResources) + return f }