provider/vsphere: Fix the `vsphere_virtual_machine` tests

The PR that was merged to add `keep_on_destroy` was showing a green
build so was merged but that build happened before another merge adding
another parameter to the tests

FYI @dkalleg - fixes #7169
This commit is contained in:
stack72 2016-07-11 16:15:28 +01:00
parent fc838be69e
commit c28b100233
No known key found for this signature in database
GPG Key ID: 8619A619B085CB16
1 changed files with 2 additions and 2 deletions

View File

@ -1183,7 +1183,7 @@ func TestAccVSphereVirtualMachine_keepOnRemove(t *testing.T) {
} }
vmName := "vsphere_virtual_machine.keep_disk" vmName := "vsphere_virtual_machine.keep_disk"
test_exists, test_name, test_cpu, test_mem, test_num_disk, test_num_of_nic, test_nic_label := test_exists, test_name, test_cpu, test_uuid, test_mem, test_num_disk, test_num_of_nic, test_nic_label :=
TestFuncData{vm: vm, label: basic_vars.label, vmName: vmName, numDisks: "2"}.testCheckFuncBasic() TestFuncData{vm: vm, label: basic_vars.label, vmName: vmName, numDisks: "2"}.testCheckFuncBasic()
log.Printf("[DEBUG] template= %s", testAccCheckVSphereVirtualMachineConfig_keepOnRemove) log.Printf("[DEBUG] template= %s", testAccCheckVSphereVirtualMachineConfig_keepOnRemove)
@ -1197,7 +1197,7 @@ func TestAccVSphereVirtualMachine_keepOnRemove(t *testing.T) {
resource.TestStep{ resource.TestStep{
Config: config, Config: config,
Check: resource.ComposeTestCheckFunc( Check: resource.ComposeTestCheckFunc(
test_exists, test_name, test_cpu, test_mem, test_num_disk, test_num_of_nic, test_nic_label, test_exists, test_name, test_cpu, test_uuid, test_mem, test_num_disk, test_num_of_nic, test_nic_label,
), ),
}, },
resource.TestStep{ resource.TestStep{