mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-28 04:35:38 -04:00
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.
This commit is contained in:
parent
6a8e888b0d
commit
2d7f523bd3
2 changed files with 20 additions and 0 deletions
14
test/templates/pin_1.0.9.pkr.hcl
Normal file
14
test/templates/pin_1.0.9.pkr.hcl
Normal file
|
|
@ -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"]
|
||||
}
|
||||
6
test/templates/simple.json
Normal file
6
test/templates/simple.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"builders": [{
|
||||
"type": "tester-dynamic",
|
||||
"name": "test"
|
||||
}]
|
||||
}
|
||||
Loading…
Reference in a new issue