From a0703f6e502d2350ebe003133b5c214bb70b7069 Mon Sep 17 00:00:00 2001 From: chrislovecnm Date: Mon, 13 Jun 2016 06:35:01 -0600 Subject: [PATCH] fixing testing for new placement of drs --- .../resource_vsphere_virtual_machine_test.go | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/builtin/providers/vsphere/resource_vsphere_virtual_machine_test.go b/builtin/providers/vsphere/resource_vsphere_virtual_machine_test.go index 187837944826..fb486f4f284e 100644 --- a/builtin/providers/vsphere/resource_vsphere_virtual_machine_test.go +++ b/builtin/providers/vsphere/resource_vsphere_virtual_machine_test.go @@ -912,17 +912,35 @@ func TestAccVSphereVirtualMachine_updateDisks(t *testing.T) { }) } +const testAccDRSTemplateBasicBody = ` +%s + vcpu = 2 + memory = 1024 + network_interface { + label = "%s" + ipv4_address = "%s" + ipv4_prefix_length = %s + ipv4_gateway = "%s" + } + disk { +%s + use_sdrs = true + template = "%s" + iops = 500 + } +` + const testAccCheckVSphereVirtualMachineConfig_basic_drs = ` resource "vsphere_virtual_machine" "foo" { name = "terraform-test" - use_sdrs = true -` + testAccTemplateBasicBody +` + testAccDRSTemplateBasicBody const testAccCheckVSphereVirtualMachineConfig_basic_drs_disk = ` disk { size = 1 iops = 500 %s + use_sdrs = true name = "%s" } `