Skip to content

Commit

Permalink
Add test for #18
Browse files Browse the repository at this point in the history
  • Loading branch information
simaotwx committed Aug 14, 2024
1 parent a3e484e commit 714c306
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ resource "packer_image" "image2" {
}
}

resource "packer_image" "plugins_test" {
file = "tests/plugins.pkr.hcl"
force = true
}

output "packer_version" {
value = data.packer_version.version.version
}
Expand Down
17 changes: 17 additions & 0 deletions examples/tests/plugins.pkr.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
packer {
required_plugins {
azure = {
source = "github.com/hashicorp/azure"
version = "~> 1"
}
}
}

source "file" "example" {
content = ""
target = "/dev/null"
}

build {
sources = ["sources.file.example"]
}

0 comments on commit 714c306

Please sign in to comment.