packer-cn/helper/builder/testing
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
..
testing.go refactor initialization out from packer configs + tests (#9627) 2020-07-24 10:58:03 +02:00
testing_test.go helper/builder/testing: prune unused functions (#8852) 2020-03-09 10:46:32 +01:00