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:
parent
cf1cfccf06
commit
286fea571f
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue