integration test

This commit is contained in:
Michael Kuzmin 2017-06-14 21:16:57 +03:00
parent 95ca846a08
commit 07cbbd1d0b
1 changed files with 32 additions and 0 deletions

32
builder_acc_test.go Normal file
View File

@ -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"
}]
}
`