Skip to content

Commit

Permalink
fix test expectations, add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
chilledornaments committed Dec 15, 2022
1 parent cdc0dc4 commit c308bf7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/terraform/format_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ func TestFormatSetVarsAfterVarFilesFormatsCorrectly(t *testing.T) {
{[]string{"plan"}, map[string]interface{}{"foo": "bar"}, []string{"test.tfvars"}, true, []string{"plan", "-var-file", "test.tfvars", "-var", "foo=bar", "-lock=false"}},
{[]string{"plan"}, map[string]interface{}{"foo": "bar", "hello": "world"}, []string{"test.tfvars"}, true, []string{"plan", "-var-file", "test.tfvars", "-var", "foo=bar", "-var", "hello=world", "-lock=false"}},
{[]string{"plan"}, map[string]interface{}{"foo": "bar", "hello": "world"}, []string{"test.tfvars"}, false, []string{"plan", "-var", "foo=bar", "-var", "hello=world", "-var-file", "test.tfvars", "-lock=false"}},
{[]string{"plan"}, map[string]interface{}{"foo": "bar"}, []string{"test.tfvars"}, false, []string{"plan", "-var", "foo=bar", "-var-file", "test.tfvars", "-lock=false"}},
}

for _, testCase := range testCases {
Expand Down

0 comments on commit c308bf7

Please sign in to comment.