From e781996d58d00954963e54deb0356d036100d4b8 Mon Sep 17 00:00:00 2001 From: Charlie McBride <33269602+charliedmcb@users.noreply.github.com> Date: Thu, 18 Jan 2024 11:08:38 -0800 Subject: [PATCH] test(e2e): add in grouping for e2e logs (#69) * add in grouping for e2e logs * fix grouping * improve message --------- Co-authored-by: Charlie McBride --- test/pkg/environment/azure/setup.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/pkg/environment/azure/setup.go b/test/pkg/environment/azure/setup.go index 6161bd962..72940d0ad 100644 --- a/test/pkg/environment/azure/setup.go +++ b/test/pkg/environment/azure/setup.go @@ -18,6 +18,8 @@ package azure import ( //nolint:revive,stylecheck + "fmt" + v1 "k8s.io/api/core/v1" "sigs.k8s.io/controller-runtime/pkg/client" @@ -45,6 +47,8 @@ func (env *Environment) Cleanup() { } func (env *Environment) AfterEach() { + fmt.Println("##[group]AfterEach (CONTROLLER LOGS)") + defer fmt.Println("##[endgroup]") env.Environment.AfterEach() // Ensure we reset settings after collecting the controller logs env.ExpectSettingsReplaced(persistedSettings...)