From 01ef23a962d402f7e5c314208e437d9c7ad2e858 Mon Sep 17 00:00:00 2001 From: Vladislav Sukhin Date: Wed, 4 Oct 2023 20:20:34 +0300 Subject: [PATCH] fix: unit test --- pkg/crd/crd_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/crd/crd_test.go b/pkg/crd/crd_test.go index 4b9ef6812c0..176d03c1271 100644 --- a/pkg/crd/crd_test.go +++ b/pkg/crd/crd_test.go @@ -112,7 +112,7 @@ func TestGenerateYAML(t *testing.T) { }) t.Run("generate test CRD yaml", func(t *testing.T) { // given - expected := "apiVersion: tests.testkube.io/v3\nkind: Test\nmetadata:\n name: name1\n namespace: namespace1\n labels:\n key1: value1\nspec:\n executionRequest:\n name: execution-name\n args:\n - -v\n - test\n image: docker.io/curlimages/curl:latest\n command:\n - curl\n imagePullSecrets:\n - name: secret-name\n negativeTest: true\n activeDeadlineSeconds: 10\n" + expected := "apiVersion: tests.testkube.io/v3\nkind: Test\nmetadata:\n name: name1\n namespace: namespace1\n labels:\n key1: value1\nspec:\n executionRequest:\n name: execution-name\n args:\n - -v\n - test\n image: docker.io/curlimages/curl:latest\n command:\n - curl\n imagePullSecrets:\n - name: secret-name\n negativeTest: true\n activeDeadlineSeconds: 10\n executePostRunScriptBeforeScraping: false\n" tests := []testkube.TestUpsertRequest{ { Name: "name1",