Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
vsukhin committed Oct 5, 2023
1 parent 54370db commit 01ef23a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/crd/crd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 01ef23a

Please sign in to comment.