packer-cn/builder/osc/bsu/builder_acc_test.go

36 lines
714 B
Go
Raw Normal View History

2019-03-06 15:08:13 -05:00
//TODO: explain how to delete the image.
2019-02-11 17:43:16 -05:00
package bsu
import (
"testing"
builderT "github.com/hashicorp/packer/helper/builder/testing"
)
func TestBuilderAcc_basic(t *testing.T) {
builderT.Test(t, builderT.TestCase{
2019-03-06 15:08:13 -05:00
PreCheck: func() { testAccPreCheck(t) },
Builder: &Builder{},
Template: testBuilderAccBasic,
SkipArtifactTeardown: true,
2019-02-11 17:43:16 -05:00
})
}
func testAccPreCheck(t *testing.T) {
}
const testBuilderAccBasic = `
{
"builders": [{
"type": "test",
"region": "eu-west-2",
"vm_type": "t2.micro",
"source_omi": "ami-abe953fa",
"ssh_username": "outscale",
"omi_name": "packer-test",
"associate_public_ip_address": true,
"force_deregister": true
2019-02-11 17:43:16 -05:00
}]
}
`