test: add acceptance basic test for outscale chroot builder

This commit is contained in:
Marin Salinas 2019-02-21 15:56:32 -06:00 committed by Megan Marsh
parent c9234e12a2
commit a3b0c28bb6
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
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"
}]
}
`