diff --git a/azurestack/data_source_client_config_test.go b/azurestack/data_source_client_config_test.go index 9fc3495b2..d720b19ac 100644 --- a/azurestack/data_source_client_config_test.go +++ b/azurestack/data_source_client_config_test.go @@ -15,7 +15,7 @@ func TestAccDataSourceAzureStackClientConfig_basic(t *testing.T) { tenantId := os.Getenv("ARM_TENANT_ID") subscriptionId := os.Getenv("ARM_SUBSCRIPTION_ID") - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, Steps: []resource.TestStep{ diff --git a/azurestack/data_source_network_interface_test.go b/azurestack/data_source_network_interface_test.go index 565f6aad7..5319bd6f2 100644 --- a/azurestack/data_source_network_interface_test.go +++ b/azurestack/data_source_network_interface_test.go @@ -14,7 +14,7 @@ func TestAccDataSourceArmVirtualNetworkInterface_basic(t *testing.T) { name := fmt.Sprintf("acctest-nic-%d", ri) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, Steps: []resource.TestStep{ diff --git a/azurestack/data_source_network_security_group_test.go b/azurestack/data_source_network_security_group_test.go index e3d685701..744f95008 100644 --- a/azurestack/data_source_network_security_group_test.go +++ b/azurestack/data_source_network_security_group_test.go @@ -14,7 +14,7 @@ func TestAccDataSourceAzureStackNetworkSecurityGroup_basic(t *testing.T) { location := testLocation() config := testAccDataSourceAzureStackNetworkSecurityGroupBasic(ri, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkSecurityGroupDestroy, @@ -37,7 +37,7 @@ func TestAccDataSourceAzureStackNetworkSecurityGroup_rules(t *testing.T) { location := testLocation() config := testAccDataSourceAzureStackNetworkSecurityGroupWithRules(ri, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkSecurityGroupDestroy, @@ -69,7 +69,7 @@ func TestAccDataSourceAzureStackNetworkSecurityGroup_tags(t *testing.T) { location := testLocation() config := testAccDataSourceAzureStackNetworkSecurityGroupTags(ri, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkSecurityGroupDestroy, diff --git a/azurestack/data_source_public_ip_test.go b/azurestack/data_source_public_ip_test.go index fafacacd9..ac430b2fa 100644 --- a/azurestack/data_source_public_ip_test.go +++ b/azurestack/data_source_public_ip_test.go @@ -17,7 +17,7 @@ func TestAccDataAzureStackPublicIP_basic(t *testing.T) { config := testAccDataAzureStackPublicIPBasic(name, resourceGroupName, ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackPublicIpDestroy, diff --git a/azurestack/data_source_resource_group_test.go b/azurestack/data_source_resource_group_test.go index 2deaf2ade..5615febe8 100644 --- a/azurestack/data_source_resource_group_test.go +++ b/azurestack/data_source_resource_group_test.go @@ -14,7 +14,7 @@ func TestAccDataSourceAzureStackResourceGroup_basic(t *testing.T) { name := fmt.Sprintf("acctestRg_%d", ri) location := testLocation() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, Steps: []resource.TestStep{ diff --git a/azurestack/data_source_route_table_test.go b/azurestack/data_source_route_table_test.go index 154346279..7e5fa563f 100644 --- a/azurestack/data_source_route_table_test.go +++ b/azurestack/data_source_route_table_test.go @@ -14,7 +14,7 @@ func TestAccDataSourceAzureStackRouteTable_basic(t *testing.T) { location := testLocation() config := testAccDataSourceAzureStackRouteTable_basic(ri, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackRouteTableDestroy, @@ -36,7 +36,7 @@ func TestAccDataSourceAzureStackRouteTable_singleRoute(t *testing.T) { location := testLocation() config := testAccDataSourceAzureStackRouteTable_singleRoute(ri, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackRouteTableDestroy, @@ -61,7 +61,7 @@ func TestAccDataSourceAzureStackRouteTable_multipleRoutes(t *testing.T) { location := testLocation() config := testAccDataSourceAzureStackRouteTable_multipleRoutes(ri, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackRouteTableDestroy, diff --git a/azurestack/data_source_storage_account_test.go b/azurestack/data_source_storage_account_test.go index 32bbb7804..49002c9e3 100644 --- a/azurestack/data_source_storage_account_test.go +++ b/azurestack/data_source_storage_account_test.go @@ -16,7 +16,7 @@ func TestAccDataSourceAzureStackStorageAccount_basic(t *testing.T) { preConfig := testAccDataSourceAzureStackStorageAccount_basic(ri, rs, location) config := testAccDataSourceAzureStackStorageAccount_basicWithDataSource(ri, rs, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackStorageAccountDestroy, diff --git a/azurestack/data_source_subnet_test.go b/azurestack/data_source_subnet_test.go index 13648ab85..5e3c20634 100644 --- a/azurestack/data_source_subnet_test.go +++ b/azurestack/data_source_subnet_test.go @@ -12,7 +12,7 @@ func TestAccDataSourceArmSubnet_basic(t *testing.T) { resourceName := "data.azurestack_subnet.test" ri := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, Steps: []resource.TestStep{ @@ -35,7 +35,7 @@ func TestAccDataSourceArmSubnet_networkSecurityGroup(t *testing.T) { dataSourceName := "data.azurestack_subnet.test" ri := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, Steps: []resource.TestStep{ @@ -58,7 +58,7 @@ func TestAccDataSourceArmSubnet_routeTable(t *testing.T) { dataSourceName := "data.azurestack_subnet.test" ri := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, Steps: []resource.TestStep{ diff --git a/azurestack/data_source_virtual_network_gateway_test.go b/azurestack/data_source_virtual_network_gateway_test.go index 774703810..a10083099 100644 --- a/azurestack/data_source_virtual_network_gateway_test.go +++ b/azurestack/data_source_virtual_network_gateway_test.go @@ -12,7 +12,7 @@ func TestAccAzureStackDataSourceVirtualNetworkGateway_basic(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackDataSourceVirtualNetworkGateway_basic(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualNetworkGatewayDestroy, diff --git a/azurestack/data_source_virtual_network_test.go b/azurestack/data_source_virtual_network_test.go index 4790270c5..4ecf93a23 100644 --- a/azurestack/data_source_virtual_network_test.go +++ b/azurestack/data_source_virtual_network_test.go @@ -15,7 +15,7 @@ func TestAccDataSourceArmVirtualNetwork_basic(t *testing.T) { name := fmt.Sprintf("acctestvnet-%d", ri) config := testAccDataSourceArmVirtualNetwork_basic(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, Steps: []resource.TestStep{ @@ -43,7 +43,7 @@ func TestAccDataSourceArmVirtualNetwork_peering(t *testing.T) { virtualNetworkName := fmt.Sprintf("acctestvnet-1-%d", ri) location := testLocation() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, Steps: []resource.TestStep{ diff --git a/azurestack/resource_arm_availability_set_test.go b/azurestack/resource_arm_availability_set_test.go index b9a92c989..40c13b384 100644 --- a/azurestack/resource_arm_availability_set_test.go +++ b/azurestack/resource_arm_availability_set_test.go @@ -15,7 +15,7 @@ func TestAccAzureStackAvailabilitySet_basic(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackAvailabilitySet_basic(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackAvailabilitySetDestroy, @@ -42,7 +42,7 @@ func TestAccAzureStackAvailabilitySet_disappears(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackAvailabilitySet_basic(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackAvailabilitySetDestroy, @@ -68,7 +68,7 @@ func TestAccAzureStackAvailabilitySet_withTags(t *testing.T) { preConfig := testAccAzureStackAvailabilitySet_withTags(ri, location) postConfig := testAccAzureStackAvailabilitySet_withUpdatedTags(ri, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackAvailabilitySetDestroy, @@ -104,7 +104,7 @@ func TestAccAzureStackAvailabilitySet_withDomainCounts(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackAvailabilitySet_withDomainCounts(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackAvailabilitySetDestroy, @@ -135,7 +135,7 @@ func TestAccAzureStackAvailabilitySet_managed(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackAvailabilitySet_managed(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackAvailabilitySetDestroy, diff --git a/azurestack/resource_arm_dns_a_record_test.go b/azurestack/resource_arm_dns_a_record_test.go index e17e8fc4c..59876b8c5 100644 --- a/azurestack/resource_arm_dns_a_record_test.go +++ b/azurestack/resource_arm_dns_a_record_test.go @@ -16,7 +16,7 @@ func TestAccAzureStackDnsARecord_basic(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackDnsARecord_basic(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackDnsARecordDestroy, @@ -38,7 +38,7 @@ func TestAccAzureStackDnsARecord_updateRecords(t *testing.T) { preConfig := testAccAzureStackDnsARecord_basic(ri, location) postConfig := testAccAzureStackDnsARecord_updateRecords(ri, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackDnsARecordDestroy, @@ -68,7 +68,7 @@ func TestAccAzureStackDnsARecord_withTags(t *testing.T) { preConfig := testAccAzureStackDnsARecord_withTags(ri, location) postConfig := testAccAzureStackDnsARecord_withTagsUpdate(ri, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackDnsARecordDestroy, diff --git a/azurestack/resource_arm_dns_zone_test.go b/azurestack/resource_arm_dns_zone_test.go index 3fa879483..1d9bfe500 100644 --- a/azurestack/resource_arm_dns_zone_test.go +++ b/azurestack/resource_arm_dns_zone_test.go @@ -15,7 +15,7 @@ func TestAccAzureStackDnsZone_basic(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackDnsZone_basic(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackDnsZoneDestroy, @@ -37,7 +37,7 @@ func TestAccAzureStackDnsZone_withTags(t *testing.T) { preConfig := testAccAzureStackDnsZone_withTags(ri, location) postConfig := testAccAzureStackDnsZone_withTagsUpdate(ri, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackDnsZoneDestroy, diff --git a/azurestack/resource_arm_loadbalancer_backend_address_pool_test.go b/azurestack/resource_arm_loadbalancer_backend_address_pool_test.go index 1ba08d687..bd50179b5 100644 --- a/azurestack/resource_arm_loadbalancer_backend_address_pool_test.go +++ b/azurestack/resource_arm_loadbalancer_backend_address_pool_test.go @@ -21,7 +21,7 @@ func TestAccAzureStackLoadBalancerBackEndAddressPool_basic(t *testing.T) { "/subscriptions/%s/resourceGroups/acctestRG-%d/providers/Microsoft.Network/loadBalancers/arm-test-loadbalancer-%d/backendAddressPools/%s", subscriptionID, ri, ri, addressPoolName) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, @@ -49,7 +49,7 @@ func TestAccAzureStackLoadBalancerBackEndAddressPool_removal(t *testing.T) { ri := acctest.RandInt() addressPoolName := fmt.Sprintf("%d-address-pool", ri) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, @@ -70,7 +70,7 @@ func TestAccAzureStackLoadBalancerBackEndAddressPool_disappears(t *testing.T) { ri := acctest.RandInt() addressPoolName := fmt.Sprintf("%d-address-pool", ri) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, diff --git a/azurestack/resource_arm_loadbalancer_nat_pool_test.go b/azurestack/resource_arm_loadbalancer_nat_pool_test.go index 331beae7e..85043463c 100644 --- a/azurestack/resource_arm_loadbalancer_nat_pool_test.go +++ b/azurestack/resource_arm_loadbalancer_nat_pool_test.go @@ -21,7 +21,7 @@ func TestAccAzureStackLoadBalancerNatPool_basic(t *testing.T) { "/subscriptions/%s/resourceGroups/acctestRG-%d/providers/Microsoft.Network/loadBalancers/arm-test-loadbalancer-%d/inboundNatPools/%s", subscriptionID, ri, ri, natPoolName) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, @@ -49,7 +49,7 @@ func TestAccAzureStackLoadBalancerNatPool_removal(t *testing.T) { ri := acctest.RandInt() natPoolName := fmt.Sprintf("NatPool-%d", ri) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, @@ -78,7 +78,7 @@ func TestAccAzureStackLoadBalancerNatPool_update(t *testing.T) { natPoolName := fmt.Sprintf("NatPool-%d", ri) natPool2Name := fmt.Sprintf("NatPool-%d", acctest.RandInt()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, @@ -110,7 +110,7 @@ func TestAccAzureStackLoadBalancerNatPool_disappears(t *testing.T) { ri := acctest.RandInt() natPoolName := fmt.Sprintf("NatPool-%d", ri) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, diff --git a/azurestack/resource_arm_loadbalancer_nat_rule_test.go b/azurestack/resource_arm_loadbalancer_nat_rule_test.go index b8a5133a5..b6121efd5 100644 --- a/azurestack/resource_arm_loadbalancer_nat_rule_test.go +++ b/azurestack/resource_arm_loadbalancer_nat_rule_test.go @@ -21,7 +21,7 @@ func TestAccAzureStackLoadBalancerNatRule_basic(t *testing.T) { "/subscriptions/%s/resourceGroups/acctestRG-%d/providers/Microsoft.Network/loadBalancers/arm-test-loadbalancer-%d/inboundNatRules/%s", subscriptionID, ri, ri, natRuleName) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, @@ -49,7 +49,7 @@ func TestAccAzureStackLoadBalancerNatRule_removal(t *testing.T) { ri := acctest.RandInt() natRuleName := fmt.Sprintf("NatRule-%d", ri) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, @@ -78,7 +78,7 @@ func TestAccAzureStackLoadBalancerNatRule_update(t *testing.T) { natRuleName := fmt.Sprintf("NatRule-%d", ri) natRule2Name := fmt.Sprintf("NatRule-%d", acctest.RandInt()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, @@ -112,7 +112,7 @@ func TestAccAzureStackLoadBalancerNatRule_disappears(t *testing.T) { ri := acctest.RandInt() natRuleName := fmt.Sprintf("NatRule-%d", ri) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, @@ -136,7 +136,7 @@ func TestAccAzureStackLoadBalancerNatRule_enableFloatingIP(t *testing.T) { natRuleName := fmt.Sprintf("NatRule-%d", ri) location := testLocation() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, @@ -158,7 +158,7 @@ func TestAccAzureStackLoadBalancerNatRule_disableFloatingIP(t *testing.T) { natRuleName := fmt.Sprintf("NatRule-%d", ri) location := testLocation() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, diff --git a/azurestack/resource_arm_loadbalancer_probe_test.go b/azurestack/resource_arm_loadbalancer_probe_test.go index 4a33c16c0..e366d96b8 100644 --- a/azurestack/resource_arm_loadbalancer_probe_test.go +++ b/azurestack/resource_arm_loadbalancer_probe_test.go @@ -21,7 +21,7 @@ func TestAccAzureStackLoadBalancerProbe_basic(t *testing.T) { "/subscriptions/%s/resourceGroups/acctestRG-%d/providers/Microsoft.Network/loadBalancers/arm-test-loadbalancer-%d/probes/%s", subscriptionID, ri, ri, probeName) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, @@ -50,7 +50,7 @@ func TestAccAzureStackLoadBalancerProbe_removal(t *testing.T) { probeName := fmt.Sprintf("probe-%d", ri) location := testLocation() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, @@ -79,7 +79,7 @@ func TestAccAzureStackLoadBalancerProbe_update(t *testing.T) { probeName := fmt.Sprintf("probe-%d", ri) probe2Name := fmt.Sprintf("probe-%d", acctest.RandInt()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, @@ -111,7 +111,7 @@ func TestAccAzureStackLoadBalancerProbe_updateProtocol(t *testing.T) { ri := acctest.RandInt() probeName := fmt.Sprintf("probe-%d", ri) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, @@ -141,7 +141,7 @@ func TestAccAzureStackLoadBalancerProbe_disappears(t *testing.T) { ri := acctest.RandInt() probeName := fmt.Sprintf("probe-%d", ri) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, diff --git a/azurestack/resource_arm_loadbalancer_rule_test.go b/azurestack/resource_arm_loadbalancer_rule_test.go index 825f09fac..fe1d25f7f 100644 --- a/azurestack/resource_arm_loadbalancer_rule_test.go +++ b/azurestack/resource_arm_loadbalancer_rule_test.go @@ -77,7 +77,7 @@ func TestAccAzureStackLoadBalancerRule_basic(t *testing.T) { "/subscriptions/%s/resourceGroups/acctestRG-%d/providers/Microsoft.Network/loadBalancers/arm-test-loadbalancer-%d/loadBalancingRules/%s", subscriptionID, ri, ri, lbRuleName) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, @@ -105,7 +105,7 @@ func TestAccAzureStackLoadBalancerRule_removal(t *testing.T) { ri := acctest.RandInt() lbRuleName := fmt.Sprintf("LbRule-%s", acctest.RandStringFromCharSet(8, acctest.CharSetAlpha)) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, @@ -136,7 +136,7 @@ func TestAccAzureStackLoadBalancerRule_inconsistentReads(t *testing.T) { lbRuleName := fmt.Sprintf("LbRule-%s", acctest.RandStringFromCharSet(8, acctest.CharSetAlpha)) probeName := fmt.Sprintf("LbProbe-%s", acctest.RandStringFromCharSet(8, acctest.CharSetAlpha)) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, @@ -169,7 +169,7 @@ func TestAccAzureStackLoadBalancerRule_update(t *testing.T) { "/subscriptions/%s/resourceGroups/acctestRG-%d/providers/Microsoft.Network/loadBalancers/arm-test-loadbalancer-%d/loadBalancingRules/%s", subscriptionID, ri, ri, lbRule2Name) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, @@ -207,7 +207,7 @@ func TestAccAzureStackLoadBalancerRule_disappears(t *testing.T) { ri := acctest.RandInt() lbRuleName := fmt.Sprintf("LbRule-%s", acctest.RandStringFromCharSet(8, acctest.CharSetAlpha)) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, diff --git a/azurestack/resource_arm_loadbalancer_test.go b/azurestack/resource_arm_loadbalancer_test.go index 13a7a08d6..3aaeb567a 100644 --- a/azurestack/resource_arm_loadbalancer_test.go +++ b/azurestack/resource_arm_loadbalancer_test.go @@ -51,7 +51,7 @@ func TestAccAzureStackLoadBalancer_basic(t *testing.T) { var lb network.LoadBalancer ri := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, @@ -70,7 +70,7 @@ func TestAccAzureStackLoadBalancer_standard(t *testing.T) { var lb network.LoadBalancer ri := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, @@ -91,7 +91,7 @@ func TestAccAzureStackLoadBalancer_frontEndConfig(t *testing.T) { ri := acctest.RandInt() location := testLocation() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, @@ -127,7 +127,7 @@ func TestAccAzureStackLoadBalancer_tags(t *testing.T) { ri := acctest.RandInt() location := testLocation() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLoadBalancerDestroy, diff --git a/azurestack/resource_arm_local_network_gateway_test.go b/azurestack/resource_arm_local_network_gateway_test.go index 379658638..33c0dad3b 100644 --- a/azurestack/resource_arm_local_network_gateway_test.go +++ b/azurestack/resource_arm_local_network_gateway_test.go @@ -15,7 +15,7 @@ func TestAccAzureStackLocalNetworkGateway_basic(t *testing.T) { resourceName := "azurestack_local_network_gateway.test" rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLocalNetworkGatewayDestroy, @@ -41,7 +41,7 @@ func TestAccAzureStackLocalNetworkGateway_disappears(t *testing.T) { name := "azurestack_local_network_gateway.test" rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLocalNetworkGatewayDestroy, @@ -64,7 +64,7 @@ func TestAccAzureStackLocalNetworkGateway_tags(t *testing.T) { resourceName := "azurestack_local_network_gateway.test" rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLocalNetworkGatewayDestroy, @@ -86,7 +86,7 @@ func TestAccAzureStackLocalNetworkGateway_bgpSettings(t *testing.T) { rInt := acctest.RandInt() location := testLocation() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLocalNetworkGatewayDestroy, @@ -109,7 +109,7 @@ func TestAccAzureStackLocalNetworkGateway_bgpSettingsDisable(t *testing.T) { rInt := acctest.RandInt() location := testLocation() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLocalNetworkGatewayDestroy, @@ -143,7 +143,7 @@ func TestAccAzureStackLocalNetworkGateway_bgpSettingsEnable(t *testing.T) { rInt := acctest.RandInt() location := testLocation() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLocalNetworkGatewayDestroy, @@ -177,7 +177,7 @@ func TestAccAzureStackLocalNetworkGateway_bgpSettingsComplete(t *testing.T) { rInt := acctest.RandInt() location := testLocation() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackLocalNetworkGatewayDestroy, diff --git a/azurestack/resource_arm_network_interface_test.go b/azurestack/resource_arm_network_interface_test.go index b4eb61967..c772868c5 100644 --- a/azurestack/resource_arm_network_interface_test.go +++ b/azurestack/resource_arm_network_interface_test.go @@ -13,7 +13,7 @@ import ( func TestAccAzureStackNetworkInterface_basic(t *testing.T) { resourceName := "azurestack_network_interface.test" rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkInterfaceDestroy, @@ -36,7 +36,7 @@ func TestAccAzureStackNetworkInterface_basic(t *testing.T) { func TestAccAzureStackNetworkInterface_disappears(t *testing.T) { resourceName := "azurestack_network_interface.test" rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkInterfaceDestroy, @@ -60,7 +60,7 @@ func TestAccAzureStackNetworkInterface_setNetworkSecurityGroupId(t *testing.T) { config := testAccAzureStackNetworkInterface_basic(rInt, location) updatedConfig := testAccAzureStackNetworkInterface_basicWithNetworkSecurityGroup(rInt, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkInterfaceDestroy, @@ -89,7 +89,7 @@ func TestAccAzureStackNetworkInterface_removeNetworkSecurityGroupId(t *testing.T config := testAccAzureStackNetworkInterface_basicWithNetworkSecurityGroup(rInt, location) updatedConfig := testAccAzureStackNetworkInterface_basic(rInt, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkInterfaceDestroy, @@ -122,7 +122,7 @@ func TestAccAzureStackNetworkInterface_multipleSubnets(t *testing.T) { location := testLocation() config := testAccAzureStackNetworkInterface_multipleSubnets(rInt, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkInterfaceDestroy, @@ -152,7 +152,7 @@ func TestAccAzureStackNetworkInterface_multipleSubnetsPrimary(t *testing.T) { config := testAccAzureStackNetworkInterface_multipleSubnets(rInt, location) updatedConfig := testAccAzureStackNetworkInterface_multipleSubnetsUpdatedPrimary(rInt, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkInterfaceDestroy, @@ -184,7 +184,7 @@ func TestAccAzureStackNetworkInterface_multipleSubnetsPrimary(t *testing.T) { func TestAccAzureStackNetworkInterface_enableIPForwarding(t *testing.T) { resourceName := "azurestack_network_interface.test" rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkInterfaceDestroy, @@ -213,7 +213,7 @@ func TestAccAzureStackNetworkInterface_enableAcceleratedNetworking(t *testing.T) resourceName := "azurestack_network_interface.test" rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkInterfaceDestroy, @@ -242,7 +242,7 @@ func TestAccAzureStackNetworkInterface_multipleLoadBalancers(t *testing.T) { resourceName := "azurestack_network_interface.test" rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkInterfaceDestroy, @@ -269,7 +269,7 @@ func TestAccAzureStackNetworkInterface_applicationGateway(t *testing.T) { resourceName := "azurestack_network_interface.test" rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkInterfaceDestroy, @@ -293,7 +293,7 @@ func TestAccAzureStackNetworkInterface_applicationGateway(t *testing.T) { func TestAccAzureStackNetworkInterface_withTags(t *testing.T) { resourceName := "azurestack_network_interface.test" rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkInterfaceDestroy, @@ -330,7 +330,7 @@ func TestAccAzureStackNetworkInterface_bug7986(t *testing.T) { t.Skip() rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkInterfaceDestroy, @@ -353,7 +353,7 @@ func TestAccAzureStackNetworkInterface_applicationSecurityGroups(t *testing.T) { resourceName := "azurestack_network_interface.test" rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkInterfaceDestroy, @@ -376,7 +376,7 @@ func TestAccAzureStackNetworkInterface_internalFQDN(t *testing.T) { resourceName := "azurestack_network_interface.test" rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkInterfaceDestroy, diff --git a/azurestack/resource_arm_network_security_group_test.go b/azurestack/resource_arm_network_security_group_test.go index e260beaac..df9ce6e13 100644 --- a/azurestack/resource_arm_network_security_group_test.go +++ b/azurestack/resource_arm_network_security_group_test.go @@ -13,7 +13,7 @@ import ( func TestAccAzureStackNetworkSecurityGroup_basic(t *testing.T) { resourceName := "azurestack_network_security_group.test" rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkSecurityGroupDestroy, @@ -36,7 +36,7 @@ func TestAccAzureStackNetworkSecurityGroup_basic(t *testing.T) { func TestAccAzureStackNetworkSecurityGroup_singleRule(t *testing.T) { resourceName := "azurestack_network_security_group.test" rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkSecurityGroupDestroy, @@ -60,7 +60,7 @@ func TestAccAzureStackNetworkSecurityGroup_update(t *testing.T) { resourceName := "azurestack_network_security_group.test" rInt := acctest.RandInt() location := testLocation() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkSecurityGroupDestroy, @@ -84,7 +84,7 @@ func TestAccAzureStackNetworkSecurityGroup_update(t *testing.T) { func TestAccAzureStackNetworkSecurityGroup_disappears(t *testing.T) { resourceName := "azurestack_network_security_group.test" rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkSecurityGroupDestroy, @@ -104,7 +104,7 @@ func TestAccAzureStackNetworkSecurityGroup_disappears(t *testing.T) { func TestAccAzureStackNetworkSecurityGroup_withTags(t *testing.T) { resourceName := "azurestack_network_security_group.test" rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkSecurityGroupDestroy, @@ -140,7 +140,7 @@ func TestAccAzureStackNetworkSecurityGroup_withTags(t *testing.T) { func TestAccAzureStackNetworkSecurityGroup_addingExtraRules(t *testing.T) { resourceName := "azurestack_network_security_group.test" rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkSecurityGroupDestroy, @@ -177,7 +177,7 @@ func TestAccAzureStackNetworkSecurityGroup_augmented(t *testing.T) { resourceName := "azurestack_network_security_group.test" rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkSecurityGroupDestroy, @@ -200,7 +200,7 @@ func TestAccAzureStackNetworkSecurityGroup_applicationSecurityGroup(t *testing.T resourceName := "azurestack_network_security_group.test" rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkSecurityGroupDestroy, diff --git a/azurestack/resource_arm_network_security_rule_test.go b/azurestack/resource_arm_network_security_rule_test.go index be54b7472..569a2f374 100644 --- a/azurestack/resource_arm_network_security_rule_test.go +++ b/azurestack/resource_arm_network_security_rule_test.go @@ -15,7 +15,7 @@ import ( func TestAccAzureStackNetworkSecurityRule_basic(t *testing.T) { resourceName := "azurestack_network_security_rule.test" rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkSecurityRuleDestroy, @@ -39,7 +39,7 @@ func TestAccAzureStackNetworkSecurityRule_disappears(t *testing.T) { resourceGroup := "azurestack_network_security_rule.test" rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkSecurityRuleDestroy, @@ -59,7 +59,7 @@ func TestAccAzureStackNetworkSecurityRule_disappears(t *testing.T) { func TestAccAzureStackNetworkSecurityRule_addingRules(t *testing.T) { rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkSecurityRuleDestroy, @@ -83,7 +83,7 @@ func TestAccAzureStackNetworkSecurityRule_addingRules(t *testing.T) { func TestAccAzureStackNetworkSecurityRule_augmented(t *testing.T) { rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkSecurityRuleDestroy, @@ -104,7 +104,7 @@ func TestAccAzureStackNetworkSecurityRule_applicationSecurityGroups(t *testing.T t.Skip() rInt := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackNetworkSecurityRuleDestroy, diff --git a/azurestack/resource_arm_public_ip_test.go b/azurestack/resource_arm_public_ip_test.go index b784f63ad..4f9b3ab49 100644 --- a/azurestack/resource_arm_public_ip_test.go +++ b/azurestack/resource_arm_public_ip_test.go @@ -49,7 +49,7 @@ func TestAccAzureStackPublicIpStatic_basic(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackPublicIPStatic_basic(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackPublicIpDestroy, @@ -80,7 +80,7 @@ func TestAccAzureStackPublicIpStatic_standard(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackPublicIPStatic_standard(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackPublicIpDestroy, @@ -105,7 +105,7 @@ func TestAccAzureStackPublicIpStatic_disappears(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackPublicIPStatic_basic(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackPublicIpDestroy, @@ -127,7 +127,7 @@ func TestAccAzureStackPublicIpStatic_idleTimeout(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackPublicIPStatic_idleTimeout(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackPublicIpDestroy, @@ -155,7 +155,7 @@ func TestAccAzureStackPublicIpStatic_withTags(t *testing.T) { preConfig := testAccAzureStackPublicIPStatic_withTags(ri, location) postConfig := testAccAzureStackPublicIPStatic_withTagsUpdate(ri, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackPublicIpDestroy, @@ -193,7 +193,7 @@ func TestAccAzureStackPublicIpStatic_update(t *testing.T) { preConfig := testAccAzureStackPublicIPStatic_basic(ri, location) postConfig := testAccAzureStackPublicIPStatic_update(ri, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackPublicIpDestroy, @@ -220,7 +220,7 @@ func TestAccAzureStackPublicIpDynamic_basic(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackPublicIPDynamic_basic(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackPublicIpDestroy, @@ -245,7 +245,7 @@ func TestAccAzureStackPublicIpStatic_importIdError(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackPublicIPStatic_basic(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackPublicIpDestroy, diff --git a/azurestack/resource_arm_resource_group_test.go b/azurestack/resource_arm_resource_group_test.go index efa260fca..3b428ff84 100644 --- a/azurestack/resource_arm_resource_group_test.go +++ b/azurestack/resource_arm_resource_group_test.go @@ -15,7 +15,7 @@ func TestAccAzureStackResourceGroup_basic(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackResourceGroup_basic(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackResourceGroupDestroy, @@ -40,7 +40,7 @@ func TestAccAzureStackResourceGroup_disappears(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackResourceGroup_basic(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackResourceGroupDestroy, @@ -64,7 +64,7 @@ func TestAccAzureStackResourceGroup_withTags(t *testing.T) { preConfig := testAccAzureStackResourceGroup_withTags(ri, location) postConfig := testAccAzureStackResourceGroup_withTagsUpdated(ri, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackResourceGroupDestroy, diff --git a/azurestack/resource_arm_route_table_test.go b/azurestack/resource_arm_route_table_test.go index fdfda7e73..a1b6259e0 100644 --- a/azurestack/resource_arm_route_table_test.go +++ b/azurestack/resource_arm_route_table_test.go @@ -15,7 +15,7 @@ func TestAccAzureStackRouteTable_basic(t *testing.T) { resourceName := "azurestack_route_table.test" ri := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackRouteTableDestroy, @@ -40,7 +40,7 @@ func TestAccAzureStackRouteTable_complete(t *testing.T) { resourceName := "azurestack_route_table.test" ri := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackRouteTableDestroy, @@ -65,7 +65,7 @@ func TestAccAzureStackRouteTable_update(t *testing.T) { resourceName := "azurestack_route_table.test" ri := acctest.RandInt() - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackRouteTableDestroy, @@ -92,7 +92,7 @@ func TestAccAzureStackRouteTable_singleRoute(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackRouteTable_singleRoute(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackRouteTableDestroy, @@ -118,7 +118,7 @@ func TestAccAzureStackRouteTable_removeRoute(t *testing.T) { config := testAccAzureStackRouteTable_singleRoute(ri, testLocation()) updatedConfig := testAccAzureStackRouteTable_singleRouteRemoved(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackRouteTableDestroy, @@ -146,7 +146,7 @@ func TestAccAzureStackRouteTable_disappears(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackRouteTable_basic(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackRouteTableDestroy, @@ -169,7 +169,7 @@ func TestAccAzureStackRouteTable_withTags(t *testing.T) { preConfig := testAccAzureStackRouteTable_withTags(ri, testLocation()) postConfig := testAccAzureStackRouteTable_withTagsUpdate(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackRouteTableDestroy, @@ -201,7 +201,7 @@ func TestAccAzureStackRouteTable_multipleRoutes(t *testing.T) { preConfig := testAccAzureStackRouteTable_singleRoute(ri, testLocation()) postConfig := testAccAzureStackRouteTable_multipleRoutes(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackRouteTableDestroy, @@ -243,7 +243,7 @@ func TestAccAzureStackRouteTable_withTagsSubnet(t *testing.T) { configSetup := testAccAzureStackRouteTable_withTagsSubnet(ri, testLocation()) configTest := testAccAzureStackRouteTable_withAddTagsSubnet(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackRouteTableDestroy, diff --git a/azurestack/resource_arm_route_test.go b/azurestack/resource_arm_route_test.go index b941d4712..fa50b5644 100644 --- a/azurestack/resource_arm_route_test.go +++ b/azurestack/resource_arm_route_test.go @@ -15,7 +15,7 @@ func TestAccAzureStackRoute_basic(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackRoute_basic(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackRouteDestroy, @@ -39,7 +39,7 @@ func TestAccAzureStackRoute_disappears(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackRoute_basic(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackRouteDestroy, @@ -62,7 +62,7 @@ func TestAccAzureStackRoute_multipleRoutes(t *testing.T) { preConfig := testAccAzureStackRoute_basic(ri, location) postConfig := testAccAzureStackRoute_multipleRoutes(ri, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackRouteDestroy, diff --git a/azurestack/resource_arm_storage_account_test.go b/azurestack/resource_arm_storage_account_test.go index 178c7d8c0..a889f470c 100644 --- a/azurestack/resource_arm_storage_account_test.go +++ b/azurestack/resource_arm_storage_account_test.go @@ -62,7 +62,7 @@ func TestAccAzureStackStorageAccount_basic(t *testing.T) { preConfig := testAccAzureStackStorageAccount_basic(ri, rs, location) // postConfig := testAccAzureStackStorageAccount_update(ri, rs, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackStorageAccountDestroy, @@ -104,7 +104,7 @@ func TestAccAzureStackStorageAccount_premium(t *testing.T) { location := testLocation() preConfig := testAccAzureStackStorageAccount_premium(ri, rs, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackStorageAccountDestroy, @@ -134,7 +134,7 @@ func TestAccAzureStackStorageAccount_disappears(t *testing.T) { rs := acctest.RandString(4) preConfig := testAccAzureStackStorageAccount_basic(ri, rs, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackStorageAccountDestroy, @@ -161,7 +161,7 @@ func TestAccAzureStackStorageAccount_blobConnectionString(t *testing.T) { rs := acctest.RandString(4) preConfig := testAccAzureStackStorageAccount_basic(ri, rs, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackStorageAccountDestroy, @@ -194,7 +194,7 @@ func TestAccAzureStackStorageAccount_blobEncryption(t *testing.T) { preConfig := testAccAzureStackStorageAccount_blobEncryption(ri, rs, location) postConfig := testAccAzureStackStorageAccount_blobEncryptionDisabled(ri, rs, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackStorageAccountDestroy, @@ -235,7 +235,7 @@ func TestAccAzureStackStorageAccount_fileEncryption(t *testing.T) { preConfig := testAccAzureStackStorageAccount_fileEncryption(ri, rs, location) postConfig := testAccAzureStackStorageAccount_fileEncryptionDisabled(ri, rs, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackStorageAccountDestroy, @@ -279,7 +279,7 @@ func TestAccAzureStackStorageAccount_enableHttpsTrafficOnly(t *testing.T) { preConfig := testAccAzureStackStorageAccount_enableHttpsTrafficOnly(ri, rs, location) postConfig := testAccAzureStackStorageAccount_enableHttpsTrafficOnlyDisabled(ri, rs, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackStorageAccountDestroy, @@ -315,7 +315,7 @@ func TestAccAzureStackStorageAccount_blobStorageWithUpdate(t *testing.T) { preConfig := testAccAzureStackStorageAccount_blobStorage(ri, rs, location) postConfig := testAccAzureStackStorageAccount_blobStorageUpdate(ri, rs, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackStorageAccountDestroy, @@ -351,7 +351,7 @@ func TestAccAzureStackStorageAccount_storageV2WithUpdate(t *testing.T) { preConfig := testAccAzureStackStorageAccount_storageV2(ri, rs, location) postConfig := testAccAzureStackStorageAccount_storageV2Update(ri, rs, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackStorageAccountDestroy, @@ -382,7 +382,7 @@ func TestAccAzureStackStorageAccount_NonStandardCasing(t *testing.T) { rs := acctest.RandString(4) preConfig := testAccAzureStackStorageAccount_nonStandardCasing(ri, rs, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackStorageAccountDestroy, diff --git a/azurestack/resource_arm_storage_blob_test.go b/azurestack/resource_arm_storage_blob_test.go index dd19667a0..5df79d19f 100644 --- a/azurestack/resource_arm_storage_blob_test.go +++ b/azurestack/resource_arm_storage_blob_test.go @@ -148,7 +148,7 @@ func TestAccAzureStackStorageBlob_basic(t *testing.T) { rs := strings.ToLower(acctest.RandString(11)) config := testAccAzureStackStorageBlob_basic(ri, rs, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackStorageBlobDestroy, @@ -168,7 +168,7 @@ func TestAccAzureStackStorageBlob_disappears(t *testing.T) { rs := strings.ToLower(acctest.RandString(11)) config := testAccAzureStackStorageBlob_basic(ri, rs, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackStorageBlobDestroy, @@ -205,7 +205,7 @@ func TestAccAzureStackStorageBlobBlock_source(t *testing.T) { config := testAccAzureStackStorageBlobBlock_source(ri, rs1, sourceBlob.Name(), testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackStorageBlobDestroy, @@ -264,7 +264,7 @@ func TestAccAzureStackStorageBlobPage_source(t *testing.T) { config := testAccAzureStackStorageBlobPage_source(ri, rs, sourceBlob.Name(), testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackStorageBlobDestroy, @@ -299,7 +299,7 @@ func TestAccAzureStackStorageBlob_source_uri(t *testing.T) { config := testAccAzureStackStorageBlob_source_uri(ri, rs, sourceBlob.Name(), testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackStorageBlobDestroy, diff --git a/azurestack/resource_arm_storage_cointainer_test.go b/azurestack/resource_arm_storage_cointainer_test.go index 8ec11d8cc..62935853c 100644 --- a/azurestack/resource_arm_storage_cointainer_test.go +++ b/azurestack/resource_arm_storage_cointainer_test.go @@ -19,7 +19,7 @@ func TestAccAzureStackStorageContainer_basic(t *testing.T) { rs := strings.ToLower(acctest.RandString(11)) config := testAccAzureStackStorageContainer_basic(ri, rs, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackStorageContainerDestroy, @@ -41,7 +41,7 @@ func TestAccAzureStackStorageContainer_disappears(t *testing.T) { rs := strings.ToLower(acctest.RandString(11)) config := testAccAzureStackStorageContainer_basic(ri, rs, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackStorageContainerDestroy, @@ -65,7 +65,7 @@ func TestAccAzureStackStorageContainer_root(t *testing.T) { rs := strings.ToLower(acctest.RandString(11)) config := testAccAzureStackStorageContainer_root(ri, rs, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackStorageContainerDestroy, diff --git a/azurestack/resource_arm_subnet_test.go b/azurestack/resource_arm_subnet_test.go index 532eaa685..9c08d49e3 100644 --- a/azurestack/resource_arm_subnet_test.go +++ b/azurestack/resource_arm_subnet_test.go @@ -19,7 +19,7 @@ func TestAccAzureStackSubnet_basic(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackSubnet_basic(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackSubnetDestroy, @@ -47,7 +47,7 @@ func TestAccAzureStackSubnet_routeTableUpdate(t *testing.T) { initConfig := testAccAzureStackSubnet_routeTable(ri, location) updatedConfig := testAccAzureStackSubnet_updatedRouteTable(ri, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackSubnetDestroy, @@ -83,7 +83,7 @@ func TestAccAzureStackSubnet_routeTableRemove(t *testing.T) { initConfig := testAccAzureStackSubnet_routeTable(ri, location) updatedConfig := testAccAzureStackSubnet_routeTableUnlinked(ri, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackSubnetDestroy, @@ -114,7 +114,7 @@ func TestAccAzureStackSubnet_removeNetworkSecurityGroup(t *testing.T) { initConfig := testAccAzureStackSubnet_networkSecurityGroup(ri, location) updatedConfig := testAccAzureStackSubnet_networkSecurityGroupDetached(ri, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackSubnetDestroy, @@ -149,7 +149,7 @@ func TestAccAzureStackSubnet_bug7986(t *testing.T) { ri := acctest.RandInt() initConfig := testAccAzureStackSubnet_bug7986(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackSubnetDestroy, @@ -170,7 +170,7 @@ func TestAccAzureStackSubnet_bug15204(t *testing.T) { ri := acctest.RandInt() initConfig := testAccAzureStackSubnet_bug15204(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackSubnetDestroy, @@ -189,7 +189,7 @@ func TestAccAzureStackSubnet_disappears(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackSubnet_basic(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackSubnetDestroy, @@ -356,7 +356,7 @@ func TestAccAzureStackSubnet_serviceEndpoints(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackSubnet_serviceEndpoints(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackSubnetDestroy, diff --git a/azurestack/resource_arm_template_deployment_test.go b/azurestack/resource_arm_template_deployment_test.go index b1069d095..4233218c7 100644 --- a/azurestack/resource_arm_template_deployment_test.go +++ b/azurestack/resource_arm_template_deployment_test.go @@ -14,7 +14,7 @@ import ( func TestAccAzureStackTemplateDeployment_basic(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackTemplateDeployment_basicMultiple(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackTemplateDeploymentDestroy, @@ -32,7 +32,7 @@ func TestAccAzureStackTemplateDeployment_basic(t *testing.T) { func TestAccAzureStackTemplateDeployment_disappears(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackTemplateDeployment_basicSingle(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackTemplateDeploymentDestroy, @@ -53,7 +53,7 @@ func TestAccAzureStackTemplateDeployment_withParams(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackTemplateDeployment_withParams(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackTemplateDeploymentDestroy, @@ -73,7 +73,7 @@ func TestAccAzureStackTemplateDeployment_withParamsBody(t *testing.T) { ri := acctest.RandInt() config := testaccAzureStackTemplateDeployment_withParamsBody(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackTemplateDeploymentDestroy, @@ -94,7 +94,7 @@ func TestAccAzureStackTemplateDeployment_withOutputs(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackTemplateDeployment_withOutputs(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackTemplateDeploymentDestroy, @@ -117,7 +117,7 @@ func TestAccAzureStackTemplateDeployment_withOutputs(t *testing.T) { func TestAccAzureStackTemplateDeployment_withError(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackTemplateDeployment_withError(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackTemplateDeploymentDestroy, diff --git a/azurestack/resource_arm_virtual_machine_extension_test.go b/azurestack/resource_arm_virtual_machine_extension_test.go index c98c1a1a9..abaa19301 100644 --- a/azurestack/resource_arm_virtual_machine_extension_test.go +++ b/azurestack/resource_arm_virtual_machine_extension_test.go @@ -18,7 +18,7 @@ func TestAccAzureStackVirtualMachineExtension_basic(t *testing.T) { preConfig := testAccAzureStackVirtualMachineExtension_basic(ri, location) postConfig := testAccAzureStackVirtualMachineExtension_basicUpdate(ri, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineExtensionDestroy, @@ -47,7 +47,7 @@ func TestAccAzureStackVirtualMachineExtension_concurrent(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackVirtualMachineExtension_concurrent(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineExtensionDestroy, @@ -73,7 +73,7 @@ func TestAccAzureStackVirtualMachineExtension_linuxDiagnostics(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackVirtualMachineExtension_linuxDiagnostics(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineExtensionDestroy, diff --git a/azurestack/resource_arm_virtual_machine_unmanaged_disks_test.go b/azurestack/resource_arm_virtual_machine_unmanaged_disks_test.go index 4714d02ec..f8b301384 100644 --- a/azurestack/resource_arm_virtual_machine_unmanaged_disks_test.go +++ b/azurestack/resource_arm_virtual_machine_unmanaged_disks_test.go @@ -16,7 +16,7 @@ func TestAccAzureStackVirtualMachine_basicLinuxMachine(t *testing.T) { var vm compute.VirtualMachine ri := acctest.RandInt() config := testAccAzureStackVirtualMachine_basicLinuxMachine(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineDestroy, @@ -46,7 +46,7 @@ func TestAccAzureStackVirtualMachine_basicLinuxMachine_storageBlob_attach(t *tes preConfig := testAccAzureStackVirtualMachine_basicLinuxMachine(ri, testLocation()) prepConfig := testAccAzureStackVirtualMachine_basicLinuxMachine_destroyVM(ri, testLocation()) config := testAccAzureStackVirtualMachine_basicLinuxMachine_storageBlob_attach(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineDestroy, @@ -76,7 +76,7 @@ func TestAccAzureStackVirtualMachine_basicLinuxMachineSSHOnly(t *testing.T) { var vm compute.VirtualMachine ri := acctest.RandInt() config := testAccAzureStackVirtualMachine_basicLinuxMachineSSHOnly(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineDestroy, @@ -95,7 +95,7 @@ func TestAccAzureStackVirtualMachine_basicLinuxMachine_disappears(t *testing.T) var vm compute.VirtualMachine ri := acctest.RandInt() config := testAccAzureStackVirtualMachine_basicLinuxMachine(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineDestroy, @@ -117,7 +117,7 @@ func TestAccAzureStackVirtualMachine_withDataDisk(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackVirtualMachine_withDataDisk(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineDestroy, @@ -140,7 +140,7 @@ func TestAccAzureStackVirtualMachine_tags(t *testing.T) { location := testLocation() preConfig := testAccAzureStackVirtualMachine_basicLinuxMachine(ri, location) postConfig := testAccAzureStackVirtualMachine_basicLinuxMachineUpdated(ri, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineDestroy, @@ -177,7 +177,7 @@ func TestAccAzureStackVirtualMachine_updateMachineSize(t *testing.T) { location := testLocation() preConfig := testAccAzureStackVirtualMachine_basicLinuxMachine(ri, location) postConfig := testAccAzureStackVirtualMachine_updatedLinuxMachine(ri, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineDestroy, @@ -204,7 +204,7 @@ func TestAccAzureStackVirtualMachine_basicWindowsMachine(t *testing.T) { var vm compute.VirtualMachine ri := acctest.RandInt() config := testAccAzureStackVirtualMachine_basicWindowsMachine(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineDestroy, @@ -223,7 +223,7 @@ func TestAccAzureStackVirtualMachine_windowsUnattendedConfig(t *testing.T) { var vm compute.VirtualMachine ri := acctest.RandInt() config := testAccAzureStackVirtualMachine_windowsUnattendedConfig(ri, testLocation(), "Standard_D1_v2") - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineDestroy, @@ -243,7 +243,7 @@ func TestAccAzureStackVirtualMachine_windowsMachineResize(t *testing.T) { ri := acctest.RandInt() preConfig := testAccAzureStackVirtualMachine_windowsUnattendedConfig(ri, testLocation(), "Standard_D1_v2") postConfig := testAccAzureStackVirtualMachine_windowsUnattendedConfig(ri, testLocation(), "Standard_D2_v2") - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineDestroy, @@ -268,7 +268,7 @@ func TestAccAzureStackVirtualMachine_diagnosticsProfile(t *testing.T) { var vm compute.VirtualMachine ri := acctest.RandInt() config := testAccAzureStackVirtualMachine_diagnosticsProfile(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineDestroy, @@ -287,7 +287,7 @@ func TestAccAzureStackVirtualMachine_winRMConfig(t *testing.T) { var vm compute.VirtualMachine ri := acctest.RandInt() config := testAccAzureStackVirtualMachine_winRMConfig(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineDestroy, @@ -307,7 +307,7 @@ func TestAccAzureStackVirtualMachine_deleteVHDOptOut(t *testing.T) { ri := acctest.RandInt() preConfig := testAccAzureStackVirtualMachine_withDataDisk(ri, testLocation()) postConfig := testAccAzureStackVirtualMachine_basicLinuxMachineDeleteVM(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineDestroy, @@ -334,7 +334,7 @@ func TestAccAzureStackVirtualMachine_deleteVHDOptIn(t *testing.T) { ri := acctest.RandInt() preConfig := testAccAzureStackVirtualMachine_basicLinuxMachineDestroyDisksBefore(ri, testLocation()) postConfig := testAccAzureStackVirtualMachine_basicLinuxMachineDestroyDisksAfter(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineDestroy, @@ -362,7 +362,7 @@ func TestAccAzureStackVirtualMachine_ChangeComputerName(t *testing.T) { ri := acctest.RandInt() preConfig := testAccAzureStackVirtualMachine_machineNameBeforeUpdate(ri, testLocation()) postConfig := testAccAzureStackVirtualMachine_updateMachineName(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineDestroy, @@ -396,7 +396,7 @@ func TestAccAzureStackVirtualMachine_ChangeAvailabilitySet(t *testing.T) { ri := acctest.RandInt() preConfig := testAccAzureStackVirtualMachine_withAvailabilitySet(ri, testLocation()) postConfig := testAccAzureStackVirtualMachine_updateAvailabilitySet(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineDestroy, @@ -426,7 +426,7 @@ func TestAccAzureStackVirtualMachine_changeStorageImageReference(t *testing.T) { ri := acctest.RandInt() preConfig := testAccAzureStackVirtualMachine_basicLinuxMachineStorageImageBefore(ri, testLocation()) postConfig := testAccAzureStackVirtualMachine_basicLinuxMachineStorageImageAfter(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineDestroy, @@ -456,7 +456,7 @@ func TestAccAzureStackVirtualMachine_changeOSDiskVhdUri(t *testing.T) { ri := acctest.RandInt() preConfig := testAccAzureStackVirtualMachine_basicLinuxMachine(ri, testLocation()) postConfig := testAccAzureStackVirtualMachine_basicLinuxMachineWithOSDiskVhdUriChanged(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineDestroy, @@ -490,7 +490,7 @@ func TestAccAzureStackVirtualMachine_plan(t *testing.T) { var vm compute.VirtualMachine ri := acctest.RandInt() config := testAccAzureStackVirtualMachine_plan(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineDestroy, @@ -510,7 +510,7 @@ func TestAccAzureStackVirtualMachine_changeSSHKey(t *testing.T) { rs := strings.ToLower(acctest.RandString(10)) preConfig := testAccAzureStackVirtualMachine_linuxMachineWithSSH(rs, testLocation()) postConfig := testAccAzureStackVirtualMachine_linuxMachineWithSSHRemoved(rs, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineDestroy, @@ -539,7 +539,7 @@ func TestAccAzureStackVirtualMachine_optionalOSProfile(t *testing.T) { preConfig := testAccAzureStackVirtualMachine_basicLinuxMachine(ri, location) prepConfig := testAccAzureStackVirtualMachine_basicLinuxMachine_destroy(ri, location) config := testAccAzureStackVirtualMachine_basicLinuxMachine_attach_without_osProfile(ri, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineDestroy, @@ -572,7 +572,7 @@ func TestAccAzureStackVirtualMachine_primaryNetworkInterfaceId(t *testing.T) { var vm compute.VirtualMachine ri := acctest.RandInt() config := testAccAzureStackVirtualMachine_primaryNetworkInterfaceId(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualMachineDestroy, diff --git a/azurestack/resource_arm_virtual_network_gateway_connection_test.go b/azurestack/resource_arm_virtual_network_gateway_connection_test.go index 81a6c6295..09ebe8435 100644 --- a/azurestack/resource_arm_virtual_network_gateway_connection_test.go +++ b/azurestack/resource_arm_virtual_network_gateway_connection_test.go @@ -14,7 +14,7 @@ func TestAccAzureStackVirtualNetworkGatewayConnection_sitetosite(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackVirtualNetworkGatewayConnection_sitetosite(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualNetworkGatewayConnectionDestroy, @@ -45,7 +45,7 @@ func TestAccAzureStackVirtualNetworkGatewayConnection_vnettonet(t *testing.T) { sharedKey := "4-v3ry-53cr37-1p53c-5h4r3d-k3y" config := testAccAzureStackVirtualNetworkGatewayConnection_vnettovnet(ri, ri2, sharedKey, testLocation(), testAltLocation()) fmt.Printf("%+v\n", config) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualNetworkGatewayConnectionDestroy, @@ -69,7 +69,7 @@ func TestAccAzureStackVirtualNetworkGatewayConnection_ipsecpolicy(t *testing.T) ri := acctest.RandInt() config := testAccAzureStackVirtualNetworkGatewayConnection_ipsecpolicy(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualNetworkGatewayConnectionDestroy, @@ -98,7 +98,7 @@ func TestAccAzureStackVirtualNetworkGatewayConnection_updatingSharedKey(t *testi firstSharedKey := "4-v3ry-53cr37-1p53c-5h4r3d-k3y" secondSharedKey := "4-r33ly-53cr37-1p53c-5h4r3d-k3y" - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualNetworkGatewayConnectionDestroy, diff --git a/azurestack/resource_arm_virtual_network_gateway_test.go b/azurestack/resource_arm_virtual_network_gateway_test.go index bb138b06d..4f1986158 100644 --- a/azurestack/resource_arm_virtual_network_gateway_test.go +++ b/azurestack/resource_arm_virtual_network_gateway_test.go @@ -15,7 +15,7 @@ func TestAccAzureStackVirtualNetworkGateway_basic(t *testing.T) { resourceName := "azurestack_virtual_network_gateway.test" config := testAccAzureStackVirtualNetworkGateway_basic(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualNetworkGatewayDestroy, @@ -41,7 +41,7 @@ func TestAccAzureStackVirtualNetworkGateway_lowerCaseSubnetName(t *testing.T) { resourceName := "azurestack_virtual_network_gateway.test" config := testAccAzureStackVirtualNetworkGateway_lowerCaseSubnetName(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualNetworkGatewayDestroy, @@ -63,7 +63,7 @@ func TestAccAzureStackVirtualNetworkGateway_vpnGw1(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackVirtualNetworkGateway_vpnGw1(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualNetworkGatewayDestroy, @@ -86,7 +86,7 @@ func TestAccAzureStackVirtualNetworkGateway_activeActive(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackVirtualNetworkGateway_activeActive(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualNetworkGatewayDestroy, @@ -106,7 +106,7 @@ func TestAccAzureStackVirtualNetworkGateway_standard(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackVirtualNetworkGateway_sku(ri, testLocation(), "Standard") - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualNetworkGatewayDestroy, @@ -131,7 +131,7 @@ func TestAccAzureStackVirtualNetworkGateway_vpnGw2(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackVirtualNetworkGateway_sku(ri, testLocation(), "VpnGw2") - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualNetworkGatewayDestroy, @@ -156,7 +156,7 @@ func TestAccAzureStackVirtualNetworkGateway_vpnGw3(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackVirtualNetworkGateway_sku(ri, testLocation(), "VpnGw3") - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualNetworkGatewayDestroy, @@ -177,7 +177,7 @@ func TestAccAzureStackVirtualNetworkGateway_vpnClientConfig(t *testing.T) { resourceName := "azurestack_virtual_network_gateway.test" config := testAccAzureStackVirtualNetworkGateway_vpnClientConfig(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualNetworkGatewayDestroy, diff --git a/azurestack/resource_arm_virtual_network_test.go b/azurestack/resource_arm_virtual_network_test.go index 09b5cbd2b..a79700843 100644 --- a/azurestack/resource_arm_virtual_network_test.go +++ b/azurestack/resource_arm_virtual_network_test.go @@ -15,7 +15,7 @@ func TestAccAzureStackVirtualNetwork_basic(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackVirtualNetwork_basic(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualNetworkDestroy, @@ -40,7 +40,7 @@ func TestAccAzureStackVirtualNetwork_disappears(t *testing.T) { ri := acctest.RandInt() config := testAccAzureStackVirtualNetwork_basic(ri, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualNetworkDestroy, @@ -64,7 +64,7 @@ func TestAccAzureStackVirtualNetwork_withTags(t *testing.T) { preConfig := testAccAzureStackVirtualNetwork_withTags(ri, location) postConfig := testAccAzureStackVirtualNetwork_withTagsUpdated(ri, location) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualNetworkDestroy, @@ -104,7 +104,7 @@ func TestAccAzureStackVirtualNetwork_bug373(t *testing.T) { rs := acctest.RandString(6) config := testAccAzureStackVirtualNetwork_bug373(rs, testLocation()) - resource.Test(t, resource.TestCase{ + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureStackVirtualNetworkDestroy,