Compare commits

...

1 Commits

Author SHA1 Message Date
Wilken Rivera
ad7c2593ab Initial work 2020-08-05 13:44:21 -04:00
2 changed files with 22 additions and 2 deletions

View File

@ -94,6 +94,26 @@ Use it at will.
manifest manifest
shell-local shell-local
`},
{[]string{"inspect", "-var=fruit=peach", filepath.Join(testFixture("var-arg"), "fruit_builder.json")}, nil, `Packer Inspect: JSON mode
Required variables:
fruit
Optional variables and their defaults:
Builders:
null
Provisioners:
<No provisioners>
Note: If your build names contain user variables or template
functions such as 'timestamp', these are processed at build time,
and therefore only show in their raw form here.
`}, `},
} }
@ -107,7 +127,7 @@ Use it at will.
} }
actual := string(bs) actual := string(bs)
if diff := cmp.Diff(tc.expected, actual); diff != "" { if diff := cmp.Diff(tc.expected, actual); diff != "" {
t.Fatalf("unexpected ouput %s", diff) t.Fatalf("unexpected output %s", diff)
} }
}) })
} }

View File

@ -1,6 +1,6 @@
{ {
"variables": { "variables": {
"fruit": "" "fruit": null
}, },
"builders": [ "builders": [
{ {