From 2d7f523bd3994fb7ad0ea2c0607a28c2dabd0b61 Mon Sep 17 00:00:00 2001 From: Lucas Bajolet Date: Fri, 3 May 2024 11:28:25 -0400 Subject: [PATCH] test/templates: add loading test templates The loading_test had been added to the repository at first, but were not versioned at that time, making those tests impossible to run on CI. --- test/templates/pin_1.0.9.pkr.hcl | 14 ++++++++++++++ test/templates/simple.json | 6 ++++++ 2 files changed, 20 insertions(+) create mode 100644 test/templates/pin_1.0.9.pkr.hcl create mode 100644 test/templates/simple.json diff --git a/test/templates/pin_1.0.9.pkr.hcl b/test/templates/pin_1.0.9.pkr.hcl new file mode 100644 index 000000000..5a1365277 --- /dev/null +++ b/test/templates/pin_1.0.9.pkr.hcl @@ -0,0 +1,14 @@ +packer { + required_plugins { + tester = { + source = "github.com/hashicorp/tester" + version = "= 1.0.9" + } + } +} + +source "tester-dynamic" "test" {} + +build { + sources = ["tester-dynamic.test"] +} diff --git a/test/templates/simple.json b/test/templates/simple.json new file mode 100644 index 000000000..f1239e9b3 --- /dev/null +++ b/test/templates/simple.json @@ -0,0 +1,6 @@ +{ + "builders": [{ + "type": "tester-dynamic", + "name": "test" + }] +}