diff --git a/packer-plugin-sdk/acctest/provisioneracc/builders.go b/packer-plugin-sdk/acctest/provisioneracc/builders.go index 5540a97ae..32ebe1f75 100644 --- a/packer-plugin-sdk/acctest/provisioneracc/builders.go +++ b/packer-plugin-sdk/acctest/provisioneracc/builders.go @@ -1,9 +1,7 @@ /* The provisioneracc package creates a framework for provisioner acceptance -testing. - -Variables stored in this file represent implementations of the BuilderFixture -struct inside of provisioners.go +testing. For builder acceptance testing, use the top level tooling in the +acctest package. */ package provisioneracc @@ -12,6 +10,11 @@ import ( "github.com/hashicorp/packer/packer-plugin-sdk/acctest/testutils" ) +// Variables stored in this file represent implementations of the BuilderFixture +// struct inside of provisioners.go + +// AmasonEBSBuilderFixtureLinux points to a build stub of a simple amazon-ebs +// build running on a linux operating system. var AmasonEBSBuilderFixtureLinux = &BuilderFixture{ Name: "Amazon-ebs Linux builder", TemplatePath: "amazon-ebs/amazon-ebs.txt", @@ -28,6 +31,8 @@ var AmasonEBSBuilderFixtureLinux = &BuilderFixture{ }, } +// AmasonEBSBuilderFixtureWindows points to a build stub of a simple amazon-ebs +// build running on a Windows operating system. var AmasonEBSBuilderFixtureWindows = &BuilderFixture{ Name: "Amazon-ebs Windows builder", TemplatePath: "amazon-ebs/amazon-ebs_windows.txt", @@ -44,7 +49,9 @@ var AmasonEBSBuilderFixtureWindows = &BuilderFixture{ }, } -var VirtualboxBuilderFixtureWindows = &BuilderFixture{ +// VirtualboxBuilderFixtureLinux points to a build stub of a simple amazon-ebs +// build running on a linux operating system. +var VirtualboxBuilderFixtureLinux = &BuilderFixture{ Name: "Virtualbox Windows builder", TemplatePath: "virtualbox/virtualbox-iso.txt", GuestOS: "linux", diff --git a/packer-plugin-sdk/acctest/provisioneracc/provisioners.go b/packer-plugin-sdk/acctest/provisioneracc/provisioners.go index 1f3b9049c..c73705167 100644 --- a/packer-plugin-sdk/acctest/provisioneracc/provisioners.go +++ b/packer-plugin-sdk/acctest/provisioneracc/provisioners.go @@ -333,6 +333,6 @@ type BuilderAcceptance interface { // Mapping of all builder fixtures defined for a given builder type. var BuildersAccTest = map[string][]*BuilderFixture{ - "virtualbox-iso": []*BuilderFixture{VirtualboxBuilderFixtureWindows}, + "virtualbox-iso": []*BuilderFixture{VirtualboxBuilderFixtureLinux}, "amazon-ebs": []*BuilderFixture{AmasonEBSBuilderFixtureLinux, AmasonEBSBuilderFixtureWindows}, }