2017-06-14 14:16:57 -04:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
builderT "github.com/hashicorp/packer/helper/builder/testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestBuilderAcc_basic(t *testing.T) {
|
|
|
|
builderT.Test(t, builderT.TestCase{
|
|
|
|
Builder: &Builder{},
|
|
|
|
Template: testBuilderAccBasic,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
const testBuilderAccBasic = `
|
|
|
|
{
|
|
|
|
"builders": [{
|
|
|
|
"type": "test",
|
|
|
|
|
2017-07-01 11:54:10 -04:00
|
|
|
"vcenter_server": "vcenter.vsphere5.test",
|
2017-06-14 14:16:57 -04:00
|
|
|
"username": "root",
|
|
|
|
"password": "jetbrains",
|
2017-07-01 11:59:36 -04:00
|
|
|
"insecure_connection": true,
|
2017-06-14 14:16:57 -04:00
|
|
|
|
|
|
|
"template": "basic",
|
|
|
|
"vm_name": "test1",
|
|
|
|
"host": "esxi-1.vsphere5.test",
|
|
|
|
|
|
|
|
"ssh_username": "jetbrains",
|
|
|
|
"ssh_password": "jetbrains"
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
`
|