packer/packer_test
Lucas Bajolet d722d3c634 hcl2template: err on malformed local/data dep
When introducing the DAG for locals and datasources, we forgot to handle
one limit case: if a dependency for a local or data is malformed, we
didn't check that a vertex was associated to it, leading to the final
DAG being malformed, and the DAG library would crash in this case.

This commit fixes this problem by checking that the dependency does
exist before attempting to add it to the graph as an edge for a vertex,
so that it is reported accurately, and do that Packer doesn't crash.
2025-03-26 16:57:17 -04:00
..
common packer_test: add gob/pb test suite 2025-01-21 16:44:03 -05:00
core_tests packer_test: make PluginTestDir a structure 2024-09-12 13:36:14 -04:00
dag_tests hcl2template: err on malformed local/data dep 2025-03-26 16:57:17 -04:00
plugin_tests packer_test: add gob/pb test suite 2025-01-21 16:44:03 -05:00
provisioner_tests packer_test: build acc test for shell provisioner in linux only 2025-03-20 16:22:32 -04:00