31 lines
538 B
Go
31 lines
538 B
Go
package chroot
|
|
|
|
import (
|
|
"testing"
|
|
|
|
builderT "github.com/hashicorp/packer/helper/builder/testing"
|
|
)
|
|
|
|
func TestBuilderAcc_basic(t *testing.T) {
|
|
builderT.Test(t, builderT.TestCase{
|
|
PreCheck: func() { testAccPreCheck(t) },
|
|
Builder: &Builder{},
|
|
Template: testBuilderAccBasic,
|
|
})
|
|
}
|
|
|
|
func testAccPreCheck(t *testing.T) {
|
|
}
|
|
|
|
const testBuilderAccBasic = `
|
|
{
|
|
"builders": [{
|
|
"type": "test",
|
|
"region": "eu-west-2",
|
|
"source_omi": "ami-46260446",
|
|
"omi_name": "packer-test {{timestamp}}",
|
|
"omi_virtualization_type": "hvm"
|
|
}]
|
|
}
|
|
`
|