Compare commits
1 Commits
master
...
f-inspect-
Author | SHA1 | Date | |
---|---|---|---|
|
ad7c2593ab |
@ -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)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"variables": {
|
"variables": {
|
||||||
"fruit": ""
|
"fruit": null
|
||||||
},
|
},
|
||||||
"builders": [
|
"builders": [
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user