add another inspect test

This commit is contained in:
Adrien Delorme 2020-06-23 15:17:49 +02:00
parent f98576b19e
commit dabcc866e5
2 changed files with 17 additions and 0 deletions

View File

@ -37,6 +37,18 @@ local.fruit: "banana"
<no post-processor>
`},
{[]string{"inspect", "-var=fruit=peach", filepath.Join(testFixture("hcl"), "vars", "fruit_string.pkr.hcl")}, nil, `Packer Inspect: HCL2 mode
> input-variables:
var.fruit: "peach" [debug: {Type:cty.String,CmdValue:peach,VarfileValue:null,EnvValue:null,DefaultValue:banana}]
> local-variables:
> builds:
`},
}

View File

@ -0,0 +1,5 @@
variable "fruit" {
type = string
default = "banana"
}