33 lines
555 B
Go
33 lines
555 B
Go
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",
|
|
|
|
"url": "https://vcenter.vsphere5.test/sdk",
|
|
"username": "root",
|
|
"password": "jetbrains",
|
|
|
|
"template": "basic",
|
|
"vm_name": "test1",
|
|
"host": "esxi-1.vsphere5.test",
|
|
|
|
"ssh_username": "jetbrains",
|
|
"ssh_password": "jetbrains"
|
|
}]
|
|
}
|
|
`
|