From a3a4e7494c7f535e46921c1db4ac3c6d371c56bb Mon Sep 17 00:00:00 2001 From: Eoin McAfee Date: Tue, 1 Jun 2021 16:29:14 +0100 Subject: [PATCH] Fix broken test caused by adding a new line to test file. --- plugin/converter/template_test.go | 5 +++-- plugin/converter/testdata/starlark.input.star.golden | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/plugin/converter/template_test.go b/plugin/converter/template_test.go index 733dc27e..53c88823 100644 --- a/plugin/converter/template_test.go +++ b/plugin/converter/template_test.go @@ -57,8 +57,9 @@ func TestTemplatePluginConvert(t *testing.T) { } template := &core.Template{ - Name: "plugin.starlark", - Data: string(beforeInput), + Name: "plugin.starlark", + Data: string(beforeInput), + Namespace: "octocat", } controller := gomock.NewController(t) diff --git a/plugin/converter/testdata/starlark.input.star.golden b/plugin/converter/testdata/starlark.input.star.golden index 2d8ec259..28a4bbb1 100644 --- a/plugin/converter/testdata/starlark.input.star.golden +++ b/plugin/converter/testdata/starlark.input.star.golden @@ -1 +1 @@ -{"kind": "pipeline", "name": "build", "steps": [{"name": "my_step", "image": "my_image", "commands": ["my_command"]}]} +{"kind": "pipeline", "name": "build", "steps": [{"name": "my_step", "image": "my_image", "commands": ["my_command"]}]} \ No newline at end of file