add another inspect test
This commit is contained in:
parent
f98576b19e
commit
dabcc866e5
|
@ -37,6 +37,18 @@ local.fruit: "banana"
|
||||||
|
|
||||||
<no post-processor>
|
<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:
|
||||||
|
|
||||||
`},
|
`},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
|
||||||
|
variable "fruit" {
|
||||||
|
type = string
|
||||||
|
default = "banana"
|
||||||
|
}
|
Loading…
Reference in New Issue