packer-cn/builder/virtualbox/iso/builder_acc_test.go

23 lines
447 B
Go
Raw Normal View History

2015-06-08 23:24:49 -04:00
package iso
import (
"io/ioutil"
"path/filepath"
2015-06-08 23:24:49 -04:00
"testing"
2020-12-17 16:29:25 -05:00
builderT "github.com/hashicorp/packer-plugin-sdk/acctest"
2015-06-08 23:24:49 -04:00
)
func TestBuilderAcc_basic(t *testing.T) {
templatePath := filepath.Join("testdata", "minimal.json")
bytes, err := ioutil.ReadFile(templatePath)
if err != nil {
t.Fatalf("failed to load template file %s", templatePath)
}
2015-06-08 23:24:49 -04:00
builderT.Test(t, builderT.TestCase{
Builder: &Builder{},
Template: string(bytes),
2015-06-08 23:24:49 -04:00
})
}