Fix push test to use something that is HCL

Fix the tfvars push test which was mistakingly using a single number to
trigger the HCL behavior.
This commit is contained in:
James Bardin 2016-10-06 16:37:28 -04:00
parent cf1cfccf06
commit 286fea571f
1 changed files with 2 additions and 2 deletions

View File

@ -559,7 +559,7 @@ func TestPush_tfvars(t *testing.T) {
"-var-file", path + "/terraform.tfvars", "-var-file", path + "/terraform.tfvars",
"-vcs=false", "-vcs=false",
"-var", "-var",
"bar=1", "bar=[1,2]",
path, path,
} }
if code := c.Run(args); code != 0 { if code := c.Run(args); code != 0 {
@ -586,7 +586,7 @@ func TestPush_tfvars(t *testing.T) {
// update bar to match cli value // update bar to match cli value
for i, v := range tfvars { for i, v := range tfvars {
if v.Key == "bar" { if v.Key == "bar" {
tfvars[i].Value = "1" tfvars[i].Value = "[1, 2]"
tfvars[i].IsHCL = true tfvars[i].IsHCL = true
} }
} }