Skip to content

Commit

Permalink
fixing testing for new placement of drs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislovecnm committed Jun 13, 2016
1 parent 6e25d45 commit a0703f6
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions builtin/providers/vsphere/resource_vsphere_virtual_machine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
`
Expand Down

0 comments on commit a0703f6

Please sign in to comment.