integration test
This commit is contained in:
parent
95ca846a08
commit
07cbbd1d0b
|
@ -0,0 +1,32 @@
|
||||||
|
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"
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
`
|
Loading…
Reference in New Issue