From 07cbbd1d0b1ee1c1a82d04f006c8c2f015655b44 Mon Sep 17 00:00:00 2001 From: Michael Kuzmin Date: Wed, 14 Jun 2017 21:16:57 +0300 Subject: [PATCH] integration test --- builder_acc_test.go | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 builder_acc_test.go diff --git a/builder_acc_test.go b/builder_acc_test.go new file mode 100644 index 000000000..fc24f92bc --- /dev/null +++ b/builder_acc_test.go @@ -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" + }] +} +`