packer-cn/command/test-fixtures
Adrien Delorme 2af40c762b
HCL2: pass on builder type and name (#8956)
* sets `packer_build_name` and `packer_builder_type` variables for builder provisioners and post-processors in HCL2
* allows to use the new `${source.type}` and `${source.name}` variables in HCL2
* fixes #8932 

Note that the common.PackerConfig is used everywhere and was not set for HCL2, this had some implications: 

For #8923 you can see the issue here:

dde74232f2/builder/lxd/config.go (L61-L63)

More random examples of where this could cause an issue :

0785c2f6fc/provisioner/ansible-local/provisioner.go (L380-L381)

b4efd13a4d/builder/amazon/ebs/builder.go (L232-L236)



* [All references to PackerConfig.PackerBuildName](https://sourcegraph.com/github.com/hashicorp/packer@ff6a039d5bb45e34ff761d9c52e8b98972288447/-/blob/common/packer_config.go#L7:2&tab=references)

* [All references to PackerConfig.PackerBuilderType](https://sourcegraph.com/github.com/hashicorp/packer@ff6a039d5bb45e34ff761d9c52e8b98972288447/-/blob/common/packer_config.go#L8:2&tab=references)
2020-04-09 11:14:37 +02:00
..
build-name-and-type HCL2: pass on builder type and name (#8956) 2020-04-09 11:14:37 +02:00
build-only Simplify testing template 2019-12-10 18:59:56 +01:00
build-variable-sharing Render variables one time on prepare method (#8727) 2020-02-13 17:35:23 +01:00
cleanup-script rename option to error-cleanup-privisoner, which I think is clearer 2019-09-25 13:43:29 -07:00
fix command/fix: validate resulting template [GH-2075] 2015-06-13 13:56:09 -04:00
fix-invalid command/fix: validate resulting template [GH-2075] 2015-06-13 13:56:09 -04:00
parallel add tests for cancellation while building 2019-05-06 15:07:57 +02:00
timeout test provisionning timeout 2019-04-08 20:09:21 +02:00
validate Updated test to verify expected behavior 2015-07-13 19:32:28 -07:00
var-arg make sure locals are evaluated only once variables are + test this (#8918) 2020-03-19 15:30:34 +01:00