Skip to content

Commit

Permalink
update accept test
Browse files Browse the repository at this point in the history
  • Loading branch information
mschuchard committed Aug 14, 2024
1 parent b40d340 commit 2aa6b3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions provisioner/fixtures/test.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ packer {
source = "github.com/hashicorp/docker"
version = "~> 1.0.0"
}
virtualbox = {
/*virtualbox = {
version = "~> 1.0.0"
source = "github.com/hashicorp/virtualbox"
}
}*/
}
}

Expand All @@ -33,12 +33,12 @@ build {

provisioner "testinfra" {
pytest_path = "/usr/local/bin/py.test"
test_files = ["${path.cwd}/fixtures/test.py", "${path.cwd}/fixtures/test.py"]
test_files = ["${path.root}/fixtures/test.py", "${path.root}/fixtures/test.py"]
}
}

# use ubuntu/jammy64 vagrant box with vbox provider
source "virtualbox-vm" "ubuntu" {
/*source "virtualbox-vm" "ubuntu" {
guest_additions_mode = "disable"
skip_export = true
ssh_host = "127.0.0.1"
Expand All @@ -49,7 +49,7 @@ source "virtualbox-vm" "ubuntu" {
# test local execution
# TODO: https://github.com/hashicorp/packer-plugin-virtualbox/issues/77
/*build {
build {
sources = ["source.virtualbox-vm.ubuntu"]
provisioner "testinfra" {
Expand Down
2 changes: 1 addition & 1 deletion provisioner/testinfra_acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestProvisioner(test *testing.T) {
// initialize acceptance test config struct
testCase := &acctest.PluginTestCase{
Name: "testinfra_provisioner_test",
Init: true,
Init: false,
Setup: func() error { return nil },
Template: testTemplate,
Type: "provisioner",
Expand Down

0 comments on commit 2aa6b3b

Please sign in to comment.