Skip to content

Commit

Permalink
Add another test for #18
Browse files Browse the repository at this point in the history
  • Loading branch information
simaotwx committed Aug 14, 2024
1 parent 714c306 commit 8d5f824
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ resource "packer_image" "plugins_test" {
force = true
}

data "packer_files" "plugins" {
directory = "tests/plugins"
}

resource "packer_image" "plugins_dir_test" {
directory = "tests/plugins"
force = true
}

output "packer_version" {
value = data.packer_version.version.version
}
Expand Down
17 changes: 17 additions & 0 deletions examples/tests/plugins/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 8d5f824

Please sign in to comment.