From c12e9eea3a6edc669e5820784a4217e48ff2de8c Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Wed, 20 Feb 2019 12:49:21 +0100 Subject: [PATCH] template/parse_test.go: name the post-processors to their type as it's now the default --- template/parse_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/template/parse_test.go b/template/parse_test.go index 510a67122..85609d629 100644 --- a/template/parse_test.go +++ b/template/parse_test.go @@ -152,6 +152,7 @@ func TestParse(t *testing.T) { PostProcessors: [][]*PostProcessor{ { { + Name: "foo", Type: "foo", Config: map[string]interface{}{ "foo": "bar", @@ -169,6 +170,7 @@ func TestParse(t *testing.T) { PostProcessors: [][]*PostProcessor{ { { + Name: "foo", Type: "foo", KeepInputArtifact: true, }, @@ -184,6 +186,7 @@ func TestParse(t *testing.T) { PostProcessors: [][]*PostProcessor{ { { + Name: "foo", Type: "foo", OnlyExcept: OnlyExcept{ Only: []string{"bar"}, @@ -201,6 +204,7 @@ func TestParse(t *testing.T) { PostProcessors: [][]*PostProcessor{ { { + Name: "foo", Type: "foo", OnlyExcept: OnlyExcept{ Except: []string{"bar"}, @@ -218,6 +222,7 @@ func TestParse(t *testing.T) { PostProcessors: [][]*PostProcessor{ { { + Name: "foo", Type: "foo", }, }, @@ -232,6 +237,7 @@ func TestParse(t *testing.T) { PostProcessors: [][]*PostProcessor{ { { + Name: "foo", Type: "foo", }, }, @@ -246,11 +252,13 @@ func TestParse(t *testing.T) { PostProcessors: [][]*PostProcessor{ { { + Name: "foo", Type: "foo", }, }, { { + Name: "bar", Type: "bar", }, }, @@ -265,9 +273,11 @@ func TestParse(t *testing.T) { PostProcessors: [][]*PostProcessor{ { { + Name: "foo", Type: "foo", }, { + Name: "bar", Type: "bar", }, },