From e581b753e68dc8f1be7aa26271043a91a8bd2b3f Mon Sep 17 00:00:00 2001 From: Daniel Andrade Date: Wed, 30 Oct 2024 19:32:50 -0300 Subject: [PATCH] disable custom log output in test --- .../im_cloudbuild_workspace_github_test.go | 2 +- .../im_cloudbuild_workspace_gitlab_test.go | 2 +- .../tf_cloudbuild_builder_simple_github_test.go | 2 +- .../tf_cloudbuild_builder_simple_gitlab_test.go | 2 +- .../tf_cloudbuild_workspace_simple_github_test.go | 2 +- .../tf_cloudbuild_workspace_simple_gitlab_test.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/integration/im_cloudbuild_workspace_github/im_cloudbuild_workspace_github_test.go b/test/integration/im_cloudbuild_workspace_github/im_cloudbuild_workspace_github_test.go index 35325d9f..761e7180 100644 --- a/test/integration/im_cloudbuild_workspace_github/im_cloudbuild_workspace_github_test.go +++ b/test/integration/im_cloudbuild_workspace_github/im_cloudbuild_workspace_github_test.go @@ -255,7 +255,7 @@ func TestIMCloudBuildWorkspaceGitHub(t *testing.T) { } if latestWorkflowRunStatus == "TIMEOUT" || latestWorkflowRunStatus == "FAILURE" { t.Logf("%v", build[0]) - utils.PrintLog(t, "TestIMCloudBuildWorkspaceGitHub", projectID) + // utils.PrintLog(t, "TestIMCloudBuildWorkspaceGitHub", projectID) t.Fatalf("workflow %s failed with failureInfo %s", build[0].Get("id"), build[0].Get("failureInfo")) } return true, nil diff --git a/test/integration/im_cloudbuild_workspace_gitlab/im_cloudbuild_workspace_gitlab_test.go b/test/integration/im_cloudbuild_workspace_gitlab/im_cloudbuild_workspace_gitlab_test.go index d8fa2f0c..27af3ac0 100644 --- a/test/integration/im_cloudbuild_workspace_gitlab/im_cloudbuild_workspace_gitlab_test.go +++ b/test/integration/im_cloudbuild_workspace_gitlab/im_cloudbuild_workspace_gitlab_test.go @@ -272,7 +272,7 @@ func TestIMCloudBuildWorkspaceGitLab(t *testing.T) { } if latestWorkflowRunStatus == "TIMEOUT" || latestWorkflowRunStatus == "FAILURE" { t.Logf("%v", build[0]) - utils.PrintLog(t, "TestIMCloudBuildWorkspaceGitLab", projectID) + // utils.PrintLog(t, "TestIMCloudBuildWorkspaceGitLab", projectID) t.Fatalf("workflow %s failed with status %s", build[0].Get("id"), latestWorkflowRunStatus) return false, nil } diff --git a/test/integration/tf_cloudbuild_builder_simple_github/tf_cloudbuild_builder_simple_github_test.go b/test/integration/tf_cloudbuild_builder_simple_github/tf_cloudbuild_builder_simple_github_test.go index 8e45588c..ac517c8c 100644 --- a/test/integration/tf_cloudbuild_builder_simple_github/tf_cloudbuild_builder_simple_github_test.go +++ b/test/integration/tf_cloudbuild_builder_simple_github/tf_cloudbuild_builder_simple_github_test.go @@ -193,7 +193,7 @@ func TestTFCloudBuildBuilderGitHub(t *testing.T) { } if latestWorkflowRunStatus == "TIMEOUT" || latestWorkflowRunStatus == "FAILURE" { t.Logf("%v", build[0]) - utils.PrintLog(t, "TestTFCloudBuildBuilderGitHub", projectID) + // utils.PrintLog(t, "TestTFCloudBuildBuilderGitHub", projectID) t.Fatalf("workflow %s failed with failureInfo %s", build[0].Get("id"), build[0].Get("failureInfo")) } return true, nil diff --git a/test/integration/tf_cloudbuild_builder_simple_gitlab/tf_cloudbuild_builder_simple_gitlab_test.go b/test/integration/tf_cloudbuild_builder_simple_gitlab/tf_cloudbuild_builder_simple_gitlab_test.go index c1eea56f..74067b68 100644 --- a/test/integration/tf_cloudbuild_builder_simple_gitlab/tf_cloudbuild_builder_simple_gitlab_test.go +++ b/test/integration/tf_cloudbuild_builder_simple_gitlab/tf_cloudbuild_builder_simple_gitlab_test.go @@ -202,7 +202,7 @@ func TestTFCloudBuildBuilderGitLab(t *testing.T) { } if latestWorkflowRunStatus == "TIMEOUT" || latestWorkflowRunStatus == "FAILURE" { t.Logf("%v", build[0]) - utils.PrintLog(t, "TestTFCloudBuildBuilderGitLab", projectID) + // utils.PrintLog(t, "TestTFCloudBuildBuilderGitLab", projectID) t.Fatalf("workflow %s failed with failureInfo %s", build[0].Get("id"), build[0].Get("failureInfo")) } return true, nil diff --git a/test/integration/tf_cloudbuild_workspace_simple_github/tf_cloudbuild_workspace_simple_github_test.go b/test/integration/tf_cloudbuild_workspace_simple_github/tf_cloudbuild_workspace_simple_github_test.go index a22eb5e6..a2621dc3 100644 --- a/test/integration/tf_cloudbuild_workspace_simple_github/tf_cloudbuild_workspace_simple_github_test.go +++ b/test/integration/tf_cloudbuild_workspace_simple_github/tf_cloudbuild_workspace_simple_github_test.go @@ -188,7 +188,7 @@ func TestCloudBuildWorkspaceSimpleGitHub(t *testing.T) { } if latestWorkflowRunStatus == "TIMEOUT" || latestWorkflowRunStatus == "FAILURE" { t.Logf("%v", build[0]) - utils.PrintLog(t, "TestCloudBuildWorkspaceSimpleGitHub", projectID) + // utils.PrintLog(t, "TestCloudBuildWorkspaceSimpleGitHub", projectID) t.Fatalf("workflow %s failed with failureInfo %s", build[0].Get("id"), build[0].Get("failureInfo")) } return true, nil diff --git a/test/integration/tf_cloudbuild_workspace_simple_gitlab/tf_cloudbuild_workspace_simple_gitlab_test.go b/test/integration/tf_cloudbuild_workspace_simple_gitlab/tf_cloudbuild_workspace_simple_gitlab_test.go index e38a4a2c..0087bc9b 100644 --- a/test/integration/tf_cloudbuild_workspace_simple_gitlab/tf_cloudbuild_workspace_simple_gitlab_test.go +++ b/test/integration/tf_cloudbuild_workspace_simple_gitlab/tf_cloudbuild_workspace_simple_gitlab_test.go @@ -207,7 +207,7 @@ func TestCloudBuildWorkspaceSimpleGitLab(t *testing.T) { } if latestWorkflowRunStatus == "TIMEOUT" || latestWorkflowRunStatus == "FAILURE" { t.Logf("%v", build[0]) - utils.PrintLog(t, "TestCloudBuildWorkspaceSimpleGitLab", projectID) + // utils.PrintLog(t, "TestCloudBuildWorkspaceSimpleGitLab", projectID) t.Fatalf("workflow %s failed with status %s", build[0].Get("id"), latestWorkflowRunStatus) return false, nil }