Skip to content

Commit

Permalink
#179 Support multiple var-files - formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
richard.kettelerij committed May 25, 2018
1 parent dbdedbf commit fd25d09
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions template/render_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
)

const (
testJobName = "levantExample"
testJobNameOverwrite = "levantExampleOverwrite"
testJobNameOverwrite2 = "levantExampleOverwrite2"
testDCName = "dc13"
testJobName = "levantExample"
testJobNameOverwrite = "levantExampleOverwrite"
testJobNameOverwrite2 = "levantExampleOverwrite2"
testDCName = "dc13"
)

func TestTemplater_RenderTemplate(t *testing.T) {
Expand Down Expand Up @@ -41,7 +41,7 @@ func TestTemplater_RenderTemplate(t *testing.T) {
}

// Test multiple var-files
job, err = RenderJob("test-fixtures/single_templated.nomad", []string{"test-fixtures/test.yaml","test-fixtures/test-overwrite.yaml"}, "", &fVars)
job, err = RenderJob("test-fixtures/single_templated.nomad", []string{"test-fixtures/test.yaml", "test-fixtures/test-overwrite.yaml"}, "", &fVars)
if err != nil {
t.Fatal(err)
}
Expand All @@ -50,7 +50,7 @@ func TestTemplater_RenderTemplate(t *testing.T) {
}

// Test multiple var-files of different types
job, err = RenderJob("test-fixtures/single_templated.nomad", []string{"test-fixtures/test.tf","test-fixtures/test-overwrite.yaml"}, "", &fVars)
job, err = RenderJob("test-fixtures/single_templated.nomad", []string{"test-fixtures/test.tf", "test-fixtures/test-overwrite.yaml"}, "", &fVars)
if err != nil {
t.Fatal(err)
}
Expand All @@ -60,7 +60,7 @@ func TestTemplater_RenderTemplate(t *testing.T) {

// Test multiple var-files with var-args
fVars["job_name"] = testJobNameOverwrite2
job, err = RenderJob("test-fixtures/single_templated.nomad", []string{"test-fixtures/test.tf","test-fixtures/test-overwrite.yaml"}, "", &fVars)
job, err = RenderJob("test-fixtures/single_templated.nomad", []string{"test-fixtures/test.tf", "test-fixtures/test-overwrite.yaml"}, "", &fVars)
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit fd25d09

Please sign in to comment.