From 73bb4d38a2f0dc913fad67f50d4d88d677c6b3fa Mon Sep 17 00:00:00 2001 From: Filipe C Menezes Date: Fri, 24 Nov 2023 15:00:10 +0000 Subject: [PATCH] CLOUDP-211696 Add more logs for cleanup --- test/e2e/atlas/helper_test.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/e2e/atlas/helper_test.go b/test/e2e/atlas/helper_test.go index 8c20863f93..5ee422c32b 100644 --- a/test/e2e/atlas/helper_test.go +++ b/test/e2e/atlas/helper_test.go @@ -194,7 +194,10 @@ func watchServerlessInstanceForProject(projectID, clusterName string) error { } watchCmd := exec.Command(cliPath, watchArgs...) watchCmd.Env = os.Environ() - return watchCmd.Run() + if resp, err := watchCmd.CombinedOutput(); err != nil { + return fmt.Errorf("error watching serverless instance %w: %s", err, string(resp)) + } + return nil } func deleteServerlessInstanceForProject(t *testing.T, cliPath, projectID, clusterName string) { @@ -317,7 +320,10 @@ func watchCluster(projectID, clusterName string) error { } watchCmd := exec.Command(cliPath, watchArgs...) watchCmd.Env = os.Environ() - return watchCmd.Run() + if resp, err := watchCmd.CombinedOutput(); err != nil { + return fmt.Errorf("error waiting for cluster %w: %s", err, string(resp)) + } + return nil } func removeTerminationProtectionFromCluster(projectID, clusterName string) error {