packer-cn/command/test-fixtures/validate
Adrien Delorme 44616d3bff
refactor initialization out from packer configs + tests (#9627)
The initialization of packer core in JSON also validates that `null` variables were set, except in the case of `packer validate --syntax-only` , but after the refactor to allow to have all commands work with HCL2 and JSON this subtlety was lost.

This refactors the initialisation of the core in order to allow to have `packer validate --syntax-only` not error in case a variable is not set. Since these calls are refactored this works for HCL2 too.

fix #9478
2020-07-24 10:58:03 +02:00
..
build.json command/validate: Add support for HCL2 configuration files 2020-06-05 14:24:39 -04:00
build.pkr.hcl command/validate: Add support for HCL2 configuration files 2020-06-05 14:24:39 -04:00
build_with_vars.pkr.hcl command/validate: Add support for HCL2 configuration files 2020-06-05 14:24:39 -04:00
null_var.json refactor initialization out from packer configs + tests (#9627) 2020-07-24 10:58:03 +02:00
template.json Updated test to verify expected behavior 2015-07-13 19:32:28 -07:00
validate_except.json Skip consecutives post-processors 2020-06-09 17:35:53 +02:00
validate_except.pkr.hcl Skip consecutives post-processors 2020-06-09 17:35:53 +02:00
var_foo_with_no_default.pkr.hcl refactor initialization out from packer configs + tests (#9627) 2020-07-24 10:58:03 +02:00