packer/packer_test/plugin_tests/templates/test_both_plugins.pkr.hcl
Lucas Bajolet 56400f27cb packer_test: add gob/pb test suite
With the draft to support both gob and protobuf as serialisation formats
for Packer, along with the SDK changes that propel them, we add a series
of tests that make sure the logic that picks which protocol is solid and
functional.

These tests rely on building several versions of the tester plugin, with
and without protobuf support, to then install them in the tests as
needed to test the logic of Packer using packer build with them, and
templates that require multiple plugins.
2025-01-21 16:44:03 -05:00

22 lines
383 B
HCL

packer {
required_plugins {
tester = {
source = "github.com/hashicorp/tester",
version = ">= 1.0.0"
}
pbtester = {
source = "github.com/hashicorp/pbtester",
version = ">= 1.0.0"
}
}
}
source "tester-dynamic" "test" {}
source "pbtester-dynamic" "test" {}
build {
sources = [
"tester-dynamic.test",
"pbtester-dynamic.test"
]
}