template/parse_test.go: name the post-processors to their type as it's now the default

This commit is contained in:
Adrien Delorme 2019-02-20 12:49:21 +01:00
parent b6b3cc901c
commit c12e9eea3a
1 changed files with 10 additions and 0 deletions

View File

@ -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",
},
},