removed TF_ACC setter

This commit is contained in:
Brandon Tosch 2017-03-05 18:07:19 -08:00
parent 8fa69da1c8
commit c2565497e6
1 changed files with 3 additions and 5 deletions

View File

@ -7,11 +7,10 @@ import (
"testing" "testing"
"github.com/Azure/azure-sdk-for-go/arm/compute" "github.com/Azure/azure-sdk-for-go/arm/compute"
"github.com/Azure/azure-sdk-for-go/arm/disk"
"github.com/hashicorp/terraform/helper/acctest" "github.com/hashicorp/terraform/helper/acctest"
"github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/terraform" "github.com/hashicorp/terraform/terraform"
"os"
"github.com/Azure/azure-sdk-for-go/arm/disk"
) )
func TestAccAzureRMVirtualMachine_basicLinuxMachine(t *testing.T) { func TestAccAzureRMVirtualMachine_basicLinuxMachine(t *testing.T) {
@ -358,7 +357,7 @@ func TestAccAzureRMVirtualMachine_deleteManagedDiskOptOut(t *testing.T) {
Steps: []resource.TestStep{ Steps: []resource.TestStep{
{ {
Destroy: false, Destroy: false,
Config: preConfig, Config: preConfig,
Check: resource.ComposeTestCheckFunc( Check: resource.ComposeTestCheckFunc(
testCheckAzureRMVirtualMachineExists("azurerm_virtual_machine.test", &vm), testCheckAzureRMVirtualMachineExists("azurerm_virtual_machine.test", &vm),
testLookupAzureRMVirtualMachineManagedDiskID(&vm, "myosdisk1", &osd), testLookupAzureRMVirtualMachineManagedDiskID(&vm, "myosdisk1", &osd),
@ -404,7 +403,6 @@ func TestAccAzureRMVirtualMachine_deleteVHDOptIn(t *testing.T) {
} }
func TestAccAzureRMVirtualMachine_deleteManagedDiskOptIn(t *testing.T) { func TestAccAzureRMVirtualMachine_deleteManagedDiskOptIn(t *testing.T) {
os.Setenv("TF_ACC", "1")
var vm compute.VirtualMachine var vm compute.VirtualMachine
var osd string var osd string
var dtd string var dtd string
@ -418,7 +416,7 @@ func TestAccAzureRMVirtualMachine_deleteManagedDiskOptIn(t *testing.T) {
Steps: []resource.TestStep{ Steps: []resource.TestStep{
{ {
Destroy: false, Destroy: false,
Config: preConfig, Config: preConfig,
Check: resource.ComposeTestCheckFunc( Check: resource.ComposeTestCheckFunc(
testCheckAzureRMVirtualMachineExists("azurerm_virtual_machine.test", &vm), testCheckAzureRMVirtualMachineExists("azurerm_virtual_machine.test", &vm),
testLookupAzureRMVirtualMachineManagedDiskID(&vm, "myosdisk1", &osd), testLookupAzureRMVirtualMachineManagedDiskID(&vm, "myosdisk1", &osd),