diff --git a/google/data_source_dns_managed_zone_test.go b/google/data_source_dns_managed_zone_test.go index a8f4e86b..d8e3c0a4 100644 --- a/google/data_source_dns_managed_zone_test.go +++ b/google/data_source_dns_managed_zone_test.go @@ -9,8 +9,6 @@ import ( ) func TestAccDataSourceDnsManagedZone_basic(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/google/data_source_google_client_config_test.go b/google/data_source_google_client_config_test.go index 506d09f7..1eb7620d 100644 --- a/google/data_source_google_client_config_test.go +++ b/google/data_source_google_client_config_test.go @@ -7,8 +7,6 @@ import ( ) func TestAccDataSourceGoogleClientConfig_basic(t *testing.T) { - t.Parallel() - resourceName := "data.google_client_config.current" resource.Test(t, resource.TestCase{ diff --git a/google/data_source_google_compute_instance_group_test.go b/google/data_source_google_compute_instance_group_test.go index 52c8fdc0..92bd8215 100644 --- a/google/data_source_google_compute_instance_group_test.go +++ b/google/data_source_google_compute_instance_group_test.go @@ -15,8 +15,6 @@ import ( ) func TestAccDataSourceGoogleComputeInstanceGroup_basic(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -32,8 +30,6 @@ func TestAccDataSourceGoogleComputeInstanceGroup_basic(t *testing.T) { } func TestAccDataSourceGoogleComputeInstanceGroup_withNamedPort(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/google/data_source_google_compute_network_test.go b/google/data_source_google_compute_network_test.go index cd80228f..fe0aac8f 100644 --- a/google/data_source_google_compute_network_test.go +++ b/google/data_source_google_compute_network_test.go @@ -10,8 +10,6 @@ import ( ) func TestAccDataSourceGoogleNetwork(t *testing.T) { - t.Parallel() - networkName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, diff --git a/google/data_source_google_compute_subnetwork_test.go b/google/data_source_google_compute_subnetwork_test.go index 3d3b081d..835bd6ea 100644 --- a/google/data_source_google_compute_subnetwork_test.go +++ b/google/data_source_google_compute_subnetwork_test.go @@ -9,8 +9,6 @@ import ( ) func TestAccDataSourceGoogleSubnetwork(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/google/data_source_google_compute_zones_test.go b/google/data_source_google_compute_zones_test.go index 42bb01ec..80dabf22 100644 --- a/google/data_source_google_compute_zones_test.go +++ b/google/data_source_google_compute_zones_test.go @@ -11,8 +11,6 @@ import ( ) func TestAccGoogleComputeZones_basic(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/google/data_source_google_container_engine_versions_test.go b/google/data_source_google_container_engine_versions_test.go index f9a3847a..a9195e73 100644 --- a/google/data_source_google_container_engine_versions_test.go +++ b/google/data_source_google_container_engine_versions_test.go @@ -11,8 +11,6 @@ import ( ) func TestAccGoogleContainerEngineVersions_basic(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/google/data_source_storage_object_signed_url_test.go b/google/data_source_storage_object_signed_url_test.go index 26dd43ee..03912216 100644 --- a/google/data_source_storage_object_signed_url_test.go +++ b/google/data_source_storage_object_signed_url_test.go @@ -100,8 +100,6 @@ func TestUrlData_SignedUrl(t *testing.T) { } func TestAccStorageSignedUrl_basic(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -117,8 +115,6 @@ func TestAccStorageSignedUrl_basic(t *testing.T) { } func TestAccStorageSignedUrl_accTest(t *testing.T) { - t.Parallel() - bucketName := fmt.Sprintf("tf-test-bucket-%d", acctest.RandInt()) headers := map[string]string{ diff --git a/google/image_test.go b/google/image_test.go index 80f46790..2bacac79 100644 --- a/google/image_test.go +++ b/google/image_test.go @@ -12,8 +12,6 @@ import ( ) func TestAccComputeImage_resolveImage(t *testing.T) { - t.Parallel() - var image compute.Image rand := acctest.RandString(10) name := fmt.Sprintf("test-image-%s", rand) diff --git a/google/import_bigquery_dataset_test.go b/google/import_bigquery_dataset_test.go index 75c2b32a..32f2682d 100644 --- a/google/import_bigquery_dataset_test.go +++ b/google/import_bigquery_dataset_test.go @@ -9,8 +9,6 @@ import ( ) func TestAccBigQueryDataset_importBasic(t *testing.T) { - t.Parallel() - resourceName := "google_bigquery_dataset.test" datasetID := fmt.Sprintf("tf_test_%s", acctest.RandString(10)) diff --git a/google/import_bigquery_table_test.go b/google/import_bigquery_table_test.go index 6784b0dc..7fa359a4 100644 --- a/google/import_bigquery_table_test.go +++ b/google/import_bigquery_table_test.go @@ -9,8 +9,6 @@ import ( ) func TestAccBigQueryTable_importBasic(t *testing.T) { - t.Parallel() - resourceName := "google_bigquery_table.test" datasetID := fmt.Sprintf("tf_test_%s", acctest.RandString(10)) tableID := fmt.Sprintf("tf_test_%s", acctest.RandString(10)) diff --git a/google/import_compute_address_test.go b/google/import_compute_address_test.go index 78caf8e8..db579f4c 100644 --- a/google/import_compute_address_test.go +++ b/google/import_compute_address_test.go @@ -7,8 +7,6 @@ import ( ) func TestAccComputeAddress_importBasic(t *testing.T) { - t.Parallel() - resourceName := "google_compute_address.foobar" resource.Test(t, resource.TestCase{ diff --git a/google/import_compute_autoscaler_test.go b/google/import_compute_autoscaler_test.go index f8e97275..e358438a 100644 --- a/google/import_compute_autoscaler_test.go +++ b/google/import_compute_autoscaler_test.go @@ -9,8 +9,6 @@ import ( ) func TestAccComputeAutoscaler_importBasic(t *testing.T) { - t.Parallel() - resourceName := "google_compute_autoscaler.foobar" var it_name = fmt.Sprintf("autoscaler-test-%s", acctest.RandString(10)) diff --git a/google/import_compute_backend_service_test.go b/google/import_compute_backend_service_test.go index 3aa0b273..b47fb312 100644 --- a/google/import_compute_backend_service_test.go +++ b/google/import_compute_backend_service_test.go @@ -9,8 +9,6 @@ import ( ) func TestAccComputeBackendService_importBasic(t *testing.T) { - t.Parallel() - serviceName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) checkName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) diff --git a/google/import_compute_disk_test.go b/google/import_compute_disk_test.go index 733aebd1..0eba2763 100644 --- a/google/import_compute_disk_test.go +++ b/google/import_compute_disk_test.go @@ -9,8 +9,6 @@ import ( ) func TestAccComputeDisk_importBasic(t *testing.T) { - t.Parallel() - resourceName := "google_compute_disk.foobar" diskName := fmt.Sprintf("disk-test-%s", acctest.RandString(10)) diff --git a/google/import_compute_firewall_test.go b/google/import_compute_firewall_test.go index b09b61ca..362391e1 100644 --- a/google/import_compute_firewall_test.go +++ b/google/import_compute_firewall_test.go @@ -9,8 +9,6 @@ import ( ) func TestAccComputeFirewall_importBasic(t *testing.T) { - t.Parallel() - resourceName := "google_compute_firewall.foobar" networkName := fmt.Sprintf("firewall-test-%s", acctest.RandString(10)) firewallName := fmt.Sprintf("firewall-test-%s", acctest.RandString(10)) diff --git a/google/import_compute_forwarding_rule_test.go b/google/import_compute_forwarding_rule_test.go index 2ad76e4e..cc6c0214 100644 --- a/google/import_compute_forwarding_rule_test.go +++ b/google/import_compute_forwarding_rule_test.go @@ -9,8 +9,6 @@ import ( ) func TestAccComputeForwardingRule_importBasic(t *testing.T) { - t.Parallel() - resourceName := "google_compute_forwarding_rule.foobar" poolName := fmt.Sprintf("tf-%s", acctest.RandString(10)) ruleName := fmt.Sprintf("tf-%s", acctest.RandString(10)) diff --git a/google/import_compute_global_address_test.go b/google/import_compute_global_address_test.go index 38cc5733..73e49564 100644 --- a/google/import_compute_global_address_test.go +++ b/google/import_compute_global_address_test.go @@ -7,8 +7,6 @@ import ( ) func TestAccComputeGlobalAddress_importBasic(t *testing.T) { - t.Parallel() - resourceName := "google_compute_global_address.foobar" resource.Test(t, resource.TestCase{ diff --git a/google/import_compute_health_check_test.go b/google/import_compute_health_check_test.go index 00469ede..ae53b686 100644 --- a/google/import_compute_health_check_test.go +++ b/google/import_compute_health_check_test.go @@ -9,8 +9,6 @@ import ( ) func TestAccComputeHealthCheck_importBasicHttp(t *testing.T) { - t.Parallel() - resourceName := "google_compute_health_check.foobar" hckName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) @@ -33,8 +31,6 @@ func TestAccComputeHealthCheck_importBasicHttp(t *testing.T) { } func TestAccComputeHealthCheck_importBasicHttps(t *testing.T) { - t.Parallel() - resourceName := "google_compute_health_check.foobar" hckName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) @@ -57,8 +53,6 @@ func TestAccComputeHealthCheck_importBasicHttps(t *testing.T) { } func TestAccComputeHealthCheck_importBasicTcp(t *testing.T) { - t.Parallel() - resourceName := "google_compute_health_check.foobar" hckName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) @@ -80,8 +74,6 @@ func TestAccComputeHealthCheck_importBasicTcp(t *testing.T) { }) } func TestAccComputeHealthCheck_importBasicSsl(t *testing.T) { - t.Parallel() - resourceName := "google_compute_health_check.foobar" hckName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) diff --git a/google/import_compute_http_health_check_test.go b/google/import_compute_http_health_check_test.go index 9133d49e..9e29dd78 100644 --- a/google/import_compute_http_health_check_test.go +++ b/google/import_compute_http_health_check_test.go @@ -9,8 +9,6 @@ import ( ) func TestAccComputeHttpHealthCheck_importBasic(t *testing.T) { - t.Parallel() - resourceName := "google_compute_http_health_check.foobar" hhckName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) diff --git a/google/import_compute_https_health_check_test.go b/google/import_compute_https_health_check_test.go index be7d869c..fb212b89 100644 --- a/google/import_compute_https_health_check_test.go +++ b/google/import_compute_https_health_check_test.go @@ -8,8 +8,6 @@ import ( ) func TestAccComputeHttpsHealthCheck_importBasic(t *testing.T) { - t.Parallel() - hhckName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ diff --git a/google/import_compute_image_test.go b/google/import_compute_image_test.go index 8a9ba43a..e4c96a25 100644 --- a/google/import_compute_image_test.go +++ b/google/import_compute_image_test.go @@ -8,8 +8,6 @@ import ( ) func TestAccComputeImage_importFromRawDisk(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -29,8 +27,6 @@ func TestAccComputeImage_importFromRawDisk(t *testing.T) { } func TestAccComputeImage_importFromSourceDisk(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/google/import_compute_instance_group_manager_test.go b/google/import_compute_instance_group_manager_test.go index 0dc6207f..6fc3d8e8 100644 --- a/google/import_compute_instance_group_manager_test.go +++ b/google/import_compute_instance_group_manager_test.go @@ -9,8 +9,6 @@ import ( ) func TestAccInstanceGroupManager_importBasic(t *testing.T) { - t.Parallel() - resourceName1 := "google_compute_instance_group_manager.igm-basic" resourceName2 := "google_compute_instance_group_manager.igm-no-tp" template := fmt.Sprintf("igm-test-%s", acctest.RandString(10)) @@ -43,8 +41,6 @@ func TestAccInstanceGroupManager_importBasic(t *testing.T) { } func TestAccInstanceGroupManager_importUpdate(t *testing.T) { - t.Parallel() - resourceName := "google_compute_instance_group_manager.igm-update" template := fmt.Sprintf("igm-test-%s", acctest.RandString(10)) target := fmt.Sprintf("igm-test-%s", acctest.RandString(10)) diff --git a/google/import_compute_instance_group_test.go b/google/import_compute_instance_group_test.go index 65ec8026..c9606159 100644 --- a/google/import_compute_instance_group_test.go +++ b/google/import_compute_instance_group_test.go @@ -8,8 +8,6 @@ import ( ) func TestAccComputeInstanceGroup_import(t *testing.T) { - t.Parallel() - instanceName := fmt.Sprintf("instancegroup-test-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ diff --git a/google/import_compute_instance_template_test.go b/google/import_compute_instance_template_test.go index b014b720..fc414cd5 100644 --- a/google/import_compute_instance_template_test.go +++ b/google/import_compute_instance_template_test.go @@ -8,8 +8,6 @@ import ( ) func TestAccComputeInstanceTemplate_importBasic(t *testing.T) { - t.Parallel() - resourceName := "google_compute_instance_template.foobar" resource.Test(t, resource.TestCase{ @@ -31,8 +29,6 @@ func TestAccComputeInstanceTemplate_importBasic(t *testing.T) { } func TestAccComputeInstanceTemplate_importIp(t *testing.T) { - t.Parallel() - resourceName := "google_compute_instance_template.foobar" resource.Test(t, resource.TestCase{ @@ -54,8 +50,6 @@ func TestAccComputeInstanceTemplate_importIp(t *testing.T) { } func TestAccComputeInstanceTemplate_importDisks(t *testing.T) { - t.Parallel() - resourceName := "google_compute_instance_template.foobar" resource.Test(t, resource.TestCase{ @@ -77,8 +71,6 @@ func TestAccComputeInstanceTemplate_importDisks(t *testing.T) { } func TestAccComputeInstanceTemplate_importSubnetAuto(t *testing.T) { - t.Parallel() - resourceName := "google_compute_instance_template.foobar" network := "network-" + acctest.RandString(10) @@ -101,8 +93,6 @@ func TestAccComputeInstanceTemplate_importSubnetAuto(t *testing.T) { } func TestAccComputeInstanceTemplate_importSubnetCustom(t *testing.T) { - t.Parallel() - resourceName := "google_compute_instance_template.foobar" resource.Test(t, resource.TestCase{ diff --git a/google/import_compute_network_test.go b/google/import_compute_network_test.go index 9c128ea4..8e6ab769 100644 --- a/google/import_compute_network_test.go +++ b/google/import_compute_network_test.go @@ -7,8 +7,6 @@ import ( ) func TestAccComputeNetwork_importBasic(t *testing.T) { - t.Parallel() - resourceName := "google_compute_network.foobar" resource.Test(t, resource.TestCase{ @@ -29,8 +27,6 @@ func TestAccComputeNetwork_importBasic(t *testing.T) { } func TestAccComputeNetwork_importAuto_subnet(t *testing.T) { - t.Parallel() - resourceName := "google_compute_network.bar" resource.Test(t, resource.TestCase{ @@ -50,8 +46,6 @@ func TestAccComputeNetwork_importAuto_subnet(t *testing.T) { } func TestAccComputeNetwork_importCustom_subnet(t *testing.T) { - t.Parallel() - resourceName := "google_compute_network.baz" resource.Test(t, resource.TestCase{ diff --git a/google/import_compute_project_metadata_item_test.go b/google/import_compute_project_metadata_item_test.go index 8613342c..d14c5cf2 100644 --- a/google/import_compute_project_metadata_item_test.go +++ b/google/import_compute_project_metadata_item_test.go @@ -8,8 +8,6 @@ import ( ) func TestAccComputeProjectMetadataItem_importBasic(t *testing.T) { - t.Parallel() - key := "myKey" + acctest.RandString(10) resource.Test(t, resource.TestCase{ diff --git a/google/import_compute_route_test.go b/google/import_compute_route_test.go index e18ebe33..a4bfb989 100644 --- a/google/import_compute_route_test.go +++ b/google/import_compute_route_test.go @@ -7,8 +7,6 @@ import ( ) func TestAccComputeRoute_importBasic(t *testing.T) { - t.Parallel() - resourceName := "google_compute_network.foobar" resource.Test(t, resource.TestCase{ @@ -29,8 +27,6 @@ func TestAccComputeRoute_importBasic(t *testing.T) { } func TestAccComputeRoute_importDefaultInternetGateway(t *testing.T) { - t.Parallel() - resourceName := "google_compute_network.foobar" resource.Test(t, resource.TestCase{ diff --git a/google/import_compute_router_interface_test.go b/google/import_compute_router_interface_test.go index 4912bd96..29355ae1 100644 --- a/google/import_compute_router_interface_test.go +++ b/google/import_compute_router_interface_test.go @@ -8,8 +8,6 @@ import ( ) func TestAccComputeRouterInterface_import(t *testing.T) { - t.Parallel() - resourceName := "google_compute_router_interface.foobar" testId := acctest.RandString(10) resource.Test(t, resource.TestCase{ diff --git a/google/import_compute_router_peer_test.go b/google/import_compute_router_peer_test.go index 80d98363..71c2ed86 100644 --- a/google/import_compute_router_peer_test.go +++ b/google/import_compute_router_peer_test.go @@ -8,8 +8,6 @@ import ( ) func TestAccComputeRouterPeer_import(t *testing.T) { - t.Parallel() - resourceName := "google_compute_router_peer.foobar" testId := acctest.RandString(10) resource.Test(t, resource.TestCase{ diff --git a/google/import_compute_router_test.go b/google/import_compute_router_test.go index dc44eec1..e149fa83 100644 --- a/google/import_compute_router_test.go +++ b/google/import_compute_router_test.go @@ -7,8 +7,6 @@ import ( ) func TestAccComputeRouter_import(t *testing.T) { - t.Parallel() - resourceName := "google_compute_router.foobar" resourceRegion := "europe-west1" resource.Test(t, resource.TestCase{ diff --git a/google/import_compute_subnetwork_test.go b/google/import_compute_subnetwork_test.go index d899dba7..a0b30003 100644 --- a/google/import_compute_subnetwork_test.go +++ b/google/import_compute_subnetwork_test.go @@ -8,8 +8,6 @@ import ( ) func TestAccComputeSubnetwork_importBasic(t *testing.T) { - t.Parallel() - cnName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) subnetwork1Name := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) subnetwork2Name := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) diff --git a/google/import_compute_target_pool_test.go b/google/import_compute_target_pool_test.go index 91734333..9d3e7032 100644 --- a/google/import_compute_target_pool_test.go +++ b/google/import_compute_target_pool_test.go @@ -7,8 +7,6 @@ import ( ) func TestAccComputeTargetPool_importBasic(t *testing.T) { - t.Parallel() - resourceName := "google_compute_target_pool.foobar" resource.Test(t, resource.TestCase{ diff --git a/google/import_compute_target_tcp_proxy_test.go b/google/import_compute_target_tcp_proxy_test.go index 11ed1b82..dea60058 100644 --- a/google/import_compute_target_tcp_proxy_test.go +++ b/google/import_compute_target_tcp_proxy_test.go @@ -8,8 +8,6 @@ import ( ) func TestAccComputeTargetTcpProxy_import(t *testing.T) { - t.Parallel() - target := fmt.Sprintf("ttcp-test-%s", acctest.RandString(10)) backend := fmt.Sprintf("ttcp-test-%s", acctest.RandString(10)) hc := fmt.Sprintf("ttcp-test-%s", acctest.RandString(10)) diff --git a/google/import_container_cluster_test.go b/google/import_container_cluster_test.go index 3b564132..985ff832 100644 --- a/google/import_container_cluster_test.go +++ b/google/import_container_cluster_test.go @@ -9,8 +9,6 @@ import ( ) func TestAccContainerCluster_import(t *testing.T) { - t.Parallel() - resourceName := "google_container_cluster.primary" name := fmt.Sprintf("tf-cluster-test-%s", acctest.RandString(10)) conf := testAccContainerCluster_basic(name) diff --git a/google/import_container_node_pool_test.go b/google/import_container_node_pool_test.go index 13f9c463..d580d97a 100644 --- a/google/import_container_node_pool_test.go +++ b/google/import_container_node_pool_test.go @@ -9,8 +9,6 @@ import ( ) func TestAccGoogleContainerNodePool_import(t *testing.T) { - t.Parallel() - resourceName := "google_container_node_pool.np" cluster := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) np := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) diff --git a/google/import_dns_managed_zone_test.go b/google/import_dns_managed_zone_test.go index dfa6da0b..75166351 100644 --- a/google/import_dns_managed_zone_test.go +++ b/google/import_dns_managed_zone_test.go @@ -7,8 +7,6 @@ import ( ) func TestAccDnsManagedZone_importBasic(t *testing.T) { - t.Parallel() - resourceName := "google_dns_managed_zone.foobar" resource.Test(t, resource.TestCase{ diff --git a/google/import_google_folder_test.go b/google/import_google_folder_test.go index f49fab15..d121ccec 100644 --- a/google/import_google_folder_test.go +++ b/google/import_google_folder_test.go @@ -8,8 +8,6 @@ import ( ) func TestAccGoogleFolder_import(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, "GOOGLE_ORG") folderDisplayName := "tf-test-" + acctest.RandString(10) diff --git a/google/import_google_organization_policy_test.go b/google/import_google_organization_policy_test.go index 69d140bd..0914f2b2 100644 --- a/google/import_google_organization_policy_test.go +++ b/google/import_google_organization_policy_test.go @@ -7,8 +7,6 @@ import ( ) func TestAccGoogleOrganizationPolicy_import(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, "GOOGLE_ORG") org := os.Getenv("GOOGLE_ORG") diff --git a/google/import_google_project_test.go b/google/import_google_project_test.go index 3c3c4062..2bec9461 100644 --- a/google/import_google_project_test.go +++ b/google/import_google_project_test.go @@ -9,8 +9,6 @@ import ( ) func TestAccGoogleProject_importBasic(t *testing.T) { - t.Parallel() - resourceName := "google_project.acceptance" projectId := "terraform-" + acctest.RandString(10) conf := testAccGoogleProject_import(projectId, org, pname) diff --git a/google/import_pubsub_subscription_test.go b/google/import_pubsub_subscription_test.go index 6a08d0d6..47a5f10d 100644 --- a/google/import_pubsub_subscription_test.go +++ b/google/import_pubsub_subscription_test.go @@ -9,8 +9,6 @@ import ( ) func TestAccPubsubSubscription_import(t *testing.T) { - t.Parallel() - topic := fmt.Sprintf("tf-test-topic-%s", acctest.RandString(10)) subscription := fmt.Sprintf("tf-test-sub-%s", acctest.RandString(10)) diff --git a/google/import_pubsub_topic_test.go b/google/import_pubsub_topic_test.go index 0b172f06..33518383 100644 --- a/google/import_pubsub_topic_test.go +++ b/google/import_pubsub_topic_test.go @@ -9,8 +9,6 @@ import ( ) func TestAccPubsubTopic_import(t *testing.T) { - t.Parallel() - topicName := fmt.Sprintf("tf-test-topic-%d", acctest.RandInt()) conf := fmt.Sprintf(` resource "google_pubsub_topic" "tf-test" { diff --git a/google/import_spanner_database_test.go b/google/import_spanner_database_test.go index 4f634c1c..0ca07edc 100644 --- a/google/import_spanner_database_test.go +++ b/google/import_spanner_database_test.go @@ -9,8 +9,6 @@ import ( ) func TestAccSpannerDatabase_importInstanceDatabase(t *testing.T) { - t.Parallel() - resourceName := "google_spanner_database.basic" instanceName := fmt.Sprintf("span-iname-%s", acctest.RandString(10)) dbName := fmt.Sprintf("span-dbname-%s", acctest.RandString(10)) @@ -35,8 +33,6 @@ func TestAccSpannerDatabase_importInstanceDatabase(t *testing.T) { } func TestAccSpannerDatabase_importProjectInstanceDatabase(t *testing.T) { - t.Parallel() - resourceName := "google_spanner_database.basic" instanceName := fmt.Sprintf("span-iname-%s", acctest.RandString(10)) dbName := fmt.Sprintf("span-dbname-%s", acctest.RandString(10)) diff --git a/google/import_spanner_instance_test.go b/google/import_spanner_instance_test.go index 769ac2d2..9994bf18 100644 --- a/google/import_spanner_instance_test.go +++ b/google/import_spanner_instance_test.go @@ -9,8 +9,6 @@ import ( ) func TestAccSpannerInstance_importInstance(t *testing.T) { - t.Parallel() - resourceName := "google_spanner_instance.basic" instanceName := fmt.Sprintf("span-itest-%s", acctest.RandString(10)) @@ -34,8 +32,6 @@ func TestAccSpannerInstance_importInstance(t *testing.T) { } func TestAccSpannerInstance_importProjectInstance(t *testing.T) { - t.Parallel() - resourceName := "google_spanner_instance.basic" instanceName := fmt.Sprintf("span-itest-%s", acctest.RandString(10)) projectId := getTestProjectFromEnv() diff --git a/google/import_sql_database_instance_test.go b/google/import_sql_database_instance_test.go index d195cb76..4e548ae5 100644 --- a/google/import_sql_database_instance_test.go +++ b/google/import_sql_database_instance_test.go @@ -10,8 +10,6 @@ import ( // Test importing a first generation database func TestAccGoogleSqlDatabaseInstance_importBasic(t *testing.T) { - t.Parallel() - resourceName := "google_sql_database_instance.instance" databaseID := acctest.RandInt() @@ -36,8 +34,6 @@ func TestAccGoogleSqlDatabaseInstance_importBasic(t *testing.T) { // Test importing a second generation database func TestAccGoogleSqlDatabaseInstance_importBasic3(t *testing.T) { - t.Parallel() - resourceName := "google_sql_database_instance.instance" databaseID := acctest.RandInt() diff --git a/google/import_sql_database_test.go b/google/import_sql_database_test.go index 5d96661e..910c4d57 100644 --- a/google/import_sql_database_test.go +++ b/google/import_sql_database_test.go @@ -9,8 +9,6 @@ import ( ) func TestAccGoogleSqlDatabase_importBasic(t *testing.T) { - t.Parallel() - resourceName := "google_sql_database.database" resource.Test(t, resource.TestCase{ diff --git a/google/import_sql_user_test.go b/google/import_sql_user_test.go index 231dbe71..ea58f1aa 100644 --- a/google/import_sql_user_test.go +++ b/google/import_sql_user_test.go @@ -8,8 +8,6 @@ import ( ) func TestAccGoogleSqlUser_importBasic(t *testing.T) { - t.Parallel() - resourceName := "google_sql_user.user" user := acctest.RandString(10) instance := acctest.RandString(10) diff --git a/google/import_storage_bucket_test.go b/google/import_storage_bucket_test.go index 88507f23..138b454b 100644 --- a/google/import_storage_bucket_test.go +++ b/google/import_storage_bucket_test.go @@ -9,8 +9,6 @@ import ( ) func TestAccStorageBucket_import(t *testing.T) { - t.Parallel() - bucketName := fmt.Sprintf("tf-test-acl-bucket-%d", acctest.RandInt()) resource.Test(t, resource.TestCase{ diff --git a/google/resource_bigquery_dataset_test.go b/google/resource_bigquery_dataset_test.go index f7038301..e1032ce9 100644 --- a/google/resource_bigquery_dataset_test.go +++ b/google/resource_bigquery_dataset_test.go @@ -10,8 +10,6 @@ import ( ) func TestAccBigQueryDataset_basic(t *testing.T) { - t.Parallel() - datasetID := fmt.Sprintf("tf_test_%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ diff --git a/google/resource_bigquery_table_test.go b/google/resource_bigquery_table_test.go index c09f4d41..1e681795 100644 --- a/google/resource_bigquery_table_test.go +++ b/google/resource_bigquery_table_test.go @@ -11,8 +11,6 @@ import ( ) func TestAccBigQueryTable_Basic(t *testing.T) { - t.Parallel() - datasetID := fmt.Sprintf("tf_test_%s", acctest.RandString(10)) tableID := fmt.Sprintf("tf_test_%s", acctest.RandString(10)) @@ -41,8 +39,6 @@ func TestAccBigQueryTable_Basic(t *testing.T) { } func TestAccBigQueryTable_View(t *testing.T) { - t.Parallel() - datasetID := fmt.Sprintf("tf_test_%s", acctest.RandString(10)) tableID := fmt.Sprintf("tf_test_%s", acctest.RandString(10)) @@ -63,8 +59,6 @@ func TestAccBigQueryTable_View(t *testing.T) { } func TestAccBigQueryTable_ViewWithLegacySQL(t *testing.T) { - t.Parallel() - datasetID := fmt.Sprintf("tf_test_%s", acctest.RandString(10)) tableID := fmt.Sprintf("tf_test_%s", acctest.RandString(10)) diff --git a/google/resource_bigtable_instance_test.go b/google/resource_bigtable_instance_test.go index 96067c5e..84b9f56a 100644 --- a/google/resource_bigtable_instance_test.go +++ b/google/resource_bigtable_instance_test.go @@ -11,8 +11,6 @@ import ( ) func TestAccBigtableInstance_basic(t *testing.T) { - t.Parallel() - instanceName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ @@ -32,8 +30,6 @@ func TestAccBigtableInstance_basic(t *testing.T) { } func TestAccBigtableInstance_development(t *testing.T) { - t.Parallel() - instanceName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ diff --git a/google/resource_bigtable_table_test.go b/google/resource_bigtable_table_test.go index 04ab9ab8..e948e0a1 100644 --- a/google/resource_bigtable_table_test.go +++ b/google/resource_bigtable_table_test.go @@ -11,8 +11,6 @@ import ( ) func TestAccBigtableTable_basic(t *testing.T) { - t.Parallel() - instanceName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) tableName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) @@ -33,8 +31,6 @@ func TestAccBigtableTable_basic(t *testing.T) { } func TestAccBigtableTable_splitKeys(t *testing.T) { - t.Parallel() - instanceName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) tableName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) diff --git a/google/resource_compute_address_test.go b/google/resource_compute_address_test.go index 2b9e3718..8fd5c73f 100644 --- a/google/resource_compute_address_test.go +++ b/google/resource_compute_address_test.go @@ -75,8 +75,6 @@ func TestComputeAddressIdParsing(t *testing.T) { // Acceptance tests func TestAccComputeAddress_basic(t *testing.T) { - t.Parallel() - var addr compute.Address resource.Test(t, resource.TestCase{ diff --git a/google/resource_compute_autoscaler_test.go b/google/resource_compute_autoscaler_test.go index 62961c94..3824c250 100644 --- a/google/resource_compute_autoscaler_test.go +++ b/google/resource_compute_autoscaler_test.go @@ -11,8 +11,6 @@ import ( ) func TestAccComputeAutoscaler_basic(t *testing.T) { - t.Parallel() - var ascaler compute.Autoscaler var it_name = fmt.Sprintf("autoscaler-test-%s", acctest.RandString(10)) @@ -37,8 +35,6 @@ func TestAccComputeAutoscaler_basic(t *testing.T) { } func TestAccComputeAutoscaler_update(t *testing.T) { - t.Parallel() - var ascaler compute.Autoscaler var it_name = fmt.Sprintf("autoscaler-test-%s", acctest.RandString(10)) diff --git a/google/resource_compute_backend_bucket_test.go b/google/resource_compute_backend_bucket_test.go index e9e8ae56..56bfb68b 100644 --- a/google/resource_compute_backend_bucket_test.go +++ b/google/resource_compute_backend_bucket_test.go @@ -11,8 +11,6 @@ import ( ) func TestAccComputeBackendBucket_basic(t *testing.T) { - t.Parallel() - backendName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) storageName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) var svc compute.BackendBucket @@ -38,8 +36,6 @@ func TestAccComputeBackendBucket_basic(t *testing.T) { } func TestAccComputeBackendBucket_basicModified(t *testing.T) { - t.Parallel() - backendName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) storageName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) secondStorageName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) @@ -121,8 +117,6 @@ func testAccCheckComputeBackendBucketExists(n string, svc *compute.BackendBucket } func TestAccComputeBackendBucket_withCdnEnabled(t *testing.T) { - t.Parallel() - backendName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) storageName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) var svc compute.BackendBucket diff --git a/google/resource_compute_backend_service_test.go b/google/resource_compute_backend_service_test.go index 219f8bf5..f29ea1b7 100644 --- a/google/resource_compute_backend_service_test.go +++ b/google/resource_compute_backend_service_test.go @@ -11,8 +11,6 @@ import ( ) func TestAccComputeBackendService_basic(t *testing.T) { - t.Parallel() - serviceName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) checkName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) extraCheckName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) @@ -43,8 +41,6 @@ func TestAccComputeBackendService_basic(t *testing.T) { } func TestAccComputeBackendService_withBackend(t *testing.T) { - t.Parallel() - serviceName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) igName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) itName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) @@ -78,8 +74,6 @@ func TestAccComputeBackendService_withBackend(t *testing.T) { } func TestAccComputeBackendService_withBackendAndUpdate(t *testing.T) { - t.Parallel() - serviceName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) igName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) itName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) @@ -121,8 +115,6 @@ func TestAccComputeBackendService_withBackendAndUpdate(t *testing.T) { } func TestAccComputeBackendService_updatePreservesOptionalParameters(t *testing.T) { - t.Parallel() - serviceName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) checkName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) var svc compute.BackendService @@ -157,8 +149,6 @@ func TestAccComputeBackendService_updatePreservesOptionalParameters(t *testing.T } func TestAccComputeBackendService_withConnectionDraining(t *testing.T) { - t.Parallel() - serviceName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) checkName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) var svc compute.BackendService @@ -184,8 +174,6 @@ func TestAccComputeBackendService_withConnectionDraining(t *testing.T) { } func TestAccComputeBackendService_withConnectionDrainingAndUpdate(t *testing.T) { - t.Parallel() - serviceName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) checkName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) var svc compute.BackendService @@ -218,8 +206,6 @@ func TestAccComputeBackendService_withConnectionDrainingAndUpdate(t *testing.T) } func TestAccComputeBackendService_withHttpsHealthCheck(t *testing.T) { - t.Parallel() - serviceName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) checkName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) var svc compute.BackendService @@ -288,8 +274,6 @@ func testAccCheckComputeBackendServiceExists(n string, svc *compute.BackendServi } func TestAccComputeBackendService_withCDNEnabled(t *testing.T) { - t.Parallel() - serviceName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) checkName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) var svc compute.BackendService @@ -316,8 +300,6 @@ func TestAccComputeBackendService_withCDNEnabled(t *testing.T) { } func TestAccComputeBackendService_withSessionAffinity(t *testing.T) { - t.Parallel() - serviceName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) checkName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) var svc compute.BackendService diff --git a/google/resource_compute_disk_test.go b/google/resource_compute_disk_test.go index b6394650..7a7e0e06 100644 --- a/google/resource_compute_disk_test.go +++ b/google/resource_compute_disk_test.go @@ -13,8 +13,6 @@ import ( ) func TestAccComputeDisk_basic(t *testing.T) { - t.Parallel() - diskName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) var disk compute.Disk @@ -37,8 +35,6 @@ func TestAccComputeDisk_basic(t *testing.T) { } func TestAccComputeDisk_update(t *testing.T) { - t.Parallel() - diskName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) var disk compute.Disk @@ -72,8 +68,6 @@ func TestAccComputeDisk_update(t *testing.T) { } func TestAccComputeDisk_fromSnapshot(t *testing.T) { - t.Parallel() - diskName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) firstDiskName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) snapshotName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) @@ -105,8 +99,6 @@ func TestAccComputeDisk_fromSnapshot(t *testing.T) { } func TestAccComputeDisk_encryption(t *testing.T) { - t.Parallel() - diskName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) var disk compute.Disk @@ -129,8 +121,6 @@ func TestAccComputeDisk_encryption(t *testing.T) { } func TestAccComputeDisk_deleteDetach(t *testing.T) { - t.Parallel() - diskName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) instanceName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) var disk compute.Disk diff --git a/google/resource_compute_firewall_test.go b/google/resource_compute_firewall_test.go index 0a6430ec..1b5e7ada 100644 --- a/google/resource_compute_firewall_test.go +++ b/google/resource_compute_firewall_test.go @@ -15,8 +15,6 @@ import ( ) func TestAccComputeFirewall_basic(t *testing.T) { - t.Parallel() - var firewall compute.Firewall networkName := fmt.Sprintf("firewall-test-%s", acctest.RandString(10)) firewallName := fmt.Sprintf("firewall-test-%s", acctest.RandString(10)) @@ -39,8 +37,6 @@ func TestAccComputeFirewall_basic(t *testing.T) { } func TestAccComputeFirewall_update(t *testing.T) { - t.Parallel() - var firewall compute.Firewall networkName := fmt.Sprintf("firewall-test-%s", acctest.RandString(10)) firewallName := fmt.Sprintf("firewall-test-%s", acctest.RandString(10)) @@ -73,8 +69,6 @@ func TestAccComputeFirewall_update(t *testing.T) { } func TestAccComputeFirewall_priority(t *testing.T) { - t.Parallel() - var firewall computeBeta.Firewall networkName := fmt.Sprintf("firewall-test-%s", acctest.RandString(10)) firewallName := fmt.Sprintf("firewall-test-%s", acctest.RandString(10)) @@ -96,8 +90,6 @@ func TestAccComputeFirewall_priority(t *testing.T) { } func TestAccComputeFirewall_noSource(t *testing.T) { - t.Parallel() - var firewall compute.Firewall networkName := fmt.Sprintf("firewall-test-%s", acctest.RandString(10)) firewallName := fmt.Sprintf("firewall-test-%s", acctest.RandString(10)) @@ -120,8 +112,6 @@ func TestAccComputeFirewall_noSource(t *testing.T) { } func TestAccComputeFirewall_denied(t *testing.T) { - t.Parallel() - var firewall computeBeta.Firewall networkName := fmt.Sprintf("firewall-test-%s", acctest.RandString(10)) firewallName := fmt.Sprintf("firewall-test-%s", acctest.RandString(10)) @@ -144,8 +134,6 @@ func TestAccComputeFirewall_denied(t *testing.T) { } func TestAccComputeFirewall_egress(t *testing.T) { - t.Parallel() - var firewall computeBeta.Firewall networkName := fmt.Sprintf("firewall-test-%s", acctest.RandString(10)) firewallName := fmt.Sprintf("firewall-test-%s", acctest.RandString(10)) diff --git a/google/resource_compute_forwarding_rule_test.go b/google/resource_compute_forwarding_rule_test.go index 23d092bc..519b1c48 100644 --- a/google/resource_compute_forwarding_rule_test.go +++ b/google/resource_compute_forwarding_rule_test.go @@ -10,8 +10,6 @@ import ( ) func TestAccComputeForwardingRule_basic(t *testing.T) { - t.Parallel() - poolName := fmt.Sprintf("tf-%s", acctest.RandString(10)) ruleName := fmt.Sprintf("tf-%s", acctest.RandString(10)) @@ -32,8 +30,6 @@ func TestAccComputeForwardingRule_basic(t *testing.T) { } func TestAccComputeForwardingRule_singlePort(t *testing.T) { - t.Parallel() - poolName := fmt.Sprintf("tf-%s", acctest.RandString(10)) ruleName := fmt.Sprintf("tf-%s", acctest.RandString(10)) @@ -54,8 +50,6 @@ func TestAccComputeForwardingRule_singlePort(t *testing.T) { } func TestAccComputeForwardingRule_ip(t *testing.T) { - t.Parallel() - addrName := fmt.Sprintf("tf-%s", acctest.RandString(10)) poolName := fmt.Sprintf("tf-%s", acctest.RandString(10)) ruleName := fmt.Sprintf("tf-%s", acctest.RandString(10)) @@ -77,8 +71,6 @@ func TestAccComputeForwardingRule_ip(t *testing.T) { } func TestAccComputeForwardingRule_internalLoadBalancing(t *testing.T) { - t.Parallel() - serviceName := fmt.Sprintf("tf-%s", acctest.RandString(10)) checkName := fmt.Sprintf("tf-%s", acctest.RandString(10)) networkName := fmt.Sprintf("tf-%s", acctest.RandString(10)) diff --git a/google/resource_compute_global_address_test.go b/google/resource_compute_global_address_test.go index d326751d..c3918ffa 100644 --- a/google/resource_compute_global_address_test.go +++ b/google/resource_compute_global_address_test.go @@ -12,8 +12,6 @@ import ( ) func TestAccComputeGlobalAddress_basic(t *testing.T) { - t.Parallel() - var addr compute.Address resource.Test(t, resource.TestCase{ @@ -36,8 +34,6 @@ func TestAccComputeGlobalAddress_basic(t *testing.T) { } func TestAccComputeGlobalAddress_ipv6(t *testing.T) { - t.Parallel() - var addr compute.Address resource.Test(t, resource.TestCase{ diff --git a/google/resource_compute_global_forwarding_rule_test.go b/google/resource_compute_global_forwarding_rule_test.go index e49bd612..9589d72d 100644 --- a/google/resource_compute_global_forwarding_rule_test.go +++ b/google/resource_compute_global_forwarding_rule_test.go @@ -12,8 +12,6 @@ import ( ) func TestAccComputeGlobalForwardingRule_basic(t *testing.T) { - t.Parallel() - fr := fmt.Sprintf("forwardrule-test-%s", acctest.RandString(10)) proxy1 := fmt.Sprintf("forwardrule-test-%s", acctest.RandString(10)) proxy2 := fmt.Sprintf("forwardrule-test-%s", acctest.RandString(10)) @@ -41,8 +39,6 @@ func TestAccComputeGlobalForwardingRule_basic(t *testing.T) { } func TestAccComputeGlobalForwardingRule_update(t *testing.T) { - t.Parallel() - fr := fmt.Sprintf("forwardrule-test-%s", acctest.RandString(10)) proxy1 := fmt.Sprintf("forwardrule-test-%s", acctest.RandString(10)) proxy2 := fmt.Sprintf("forwardrule-test-%s", acctest.RandString(10)) @@ -75,8 +71,6 @@ func TestAccComputeGlobalForwardingRule_update(t *testing.T) { } func TestAccComputeGlobalForwardingRule_ipv6(t *testing.T) { - t.Parallel() - var frule computeBeta.ForwardingRule fr := fmt.Sprintf("forwardrule-test-%s", acctest.RandString(10)) @@ -104,8 +98,6 @@ func TestAccComputeGlobalForwardingRule_ipv6(t *testing.T) { } func TestAccComputeGlobalForwardingRule_labels(t *testing.T) { - t.Parallel() - var frule computeBeta.ForwardingRule fr := fmt.Sprintf("forwardrule-test-%s", acctest.RandString(10)) diff --git a/google/resource_compute_health_check_test.go b/google/resource_compute_health_check_test.go index d97d768b..bde1d731 100644 --- a/google/resource_compute_health_check_test.go +++ b/google/resource_compute_health_check_test.go @@ -12,8 +12,6 @@ import ( ) func TestAccComputeHealthCheck_tcp(t *testing.T) { - t.Parallel() - var healthCheck compute.HealthCheck hckName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) @@ -38,8 +36,6 @@ func TestAccComputeHealthCheck_tcp(t *testing.T) { } func TestAccComputeHealthCheck_tcp_update(t *testing.T) { - t.Parallel() - var healthCheck compute.HealthCheck hckName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) @@ -74,8 +70,6 @@ func TestAccComputeHealthCheck_tcp_update(t *testing.T) { } func TestAccComputeHealthCheck_ssl(t *testing.T) { - t.Parallel() - var healthCheck compute.HealthCheck hckName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) @@ -99,8 +93,6 @@ func TestAccComputeHealthCheck_ssl(t *testing.T) { } func TestAccComputeHealthCheck_http(t *testing.T) { - t.Parallel() - var healthCheck compute.HealthCheck hckName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) @@ -124,8 +116,6 @@ func TestAccComputeHealthCheck_http(t *testing.T) { } func TestAccComputeHealthCheck_https(t *testing.T) { - t.Parallel() - var healthCheck compute.HealthCheck hckName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) @@ -149,8 +139,6 @@ func TestAccComputeHealthCheck_https(t *testing.T) { } func TestAccComputeHealthCheck_tcpAndSsl_shouldFail(t *testing.T) { - t.Parallel() - hckName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ diff --git a/google/resource_compute_http_health_check_test.go b/google/resource_compute_http_health_check_test.go index 39319adf..efc9911d 100644 --- a/google/resource_compute_http_health_check_test.go +++ b/google/resource_compute_http_health_check_test.go @@ -11,8 +11,6 @@ import ( ) func TestAccComputeHttpHealthCheck_basic(t *testing.T) { - t.Parallel() - var healthCheck compute.HttpHealthCheck hhckName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) @@ -38,8 +36,6 @@ func TestAccComputeHttpHealthCheck_basic(t *testing.T) { } func TestAccComputeHttpHealthCheck_update(t *testing.T) { - t.Parallel() - var healthCheck compute.HttpHealthCheck hhckName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) diff --git a/google/resource_compute_https_health_check_test.go b/google/resource_compute_https_health_check_test.go index 5b43744e..98a5083d 100644 --- a/google/resource_compute_https_health_check_test.go +++ b/google/resource_compute_https_health_check_test.go @@ -11,8 +11,6 @@ import ( ) func TestAccComputeHttpsHealthCheck_basic(t *testing.T) { - t.Parallel() - var healthCheck compute.HttpsHealthCheck hhckName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) @@ -38,8 +36,6 @@ func TestAccComputeHttpsHealthCheck_basic(t *testing.T) { } func TestAccComputeHttpsHealthCheck_update(t *testing.T) { - t.Parallel() - var healthCheck compute.HttpsHealthCheck hhckName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) diff --git a/google/resource_compute_image_test.go b/google/resource_compute_image_test.go index 904c4e53..60bea2a3 100644 --- a/google/resource_compute_image_test.go +++ b/google/resource_compute_image_test.go @@ -11,8 +11,6 @@ import ( ) func TestAccComputeImage_basic(t *testing.T) { - t.Parallel() - var image compute.Image resource.Test(t, resource.TestCase{ @@ -37,8 +35,6 @@ func TestAccComputeImage_basic(t *testing.T) { } func TestAccComputeImage_update(t *testing.T) { - t.Parallel() - var image compute.Image name := "image-test-" + acctest.RandString(10) @@ -74,8 +70,6 @@ func TestAccComputeImage_update(t *testing.T) { } func TestAccComputeImage_basedondisk(t *testing.T) { - t.Parallel() - var image compute.Image resource.Test(t, resource.TestCase{ diff --git a/google/resource_compute_instance_group_manager_test.go b/google/resource_compute_instance_group_manager_test.go index 0cff3c36..ee380974 100644 --- a/google/resource_compute_instance_group_manager_test.go +++ b/google/resource_compute_instance_group_manager_test.go @@ -17,8 +17,6 @@ import ( ) func TestAccInstanceGroupManager_basic(t *testing.T) { - t.Parallel() - var manager compute.InstanceGroupManager template := fmt.Sprintf("igm-test-%s", acctest.RandString(10)) @@ -45,8 +43,6 @@ func TestAccInstanceGroupManager_basic(t *testing.T) { } func TestAccInstanceGroupManager_targetSizeZero(t *testing.T) { - t.Parallel() - var manager compute.InstanceGroupManager templateName := fmt.Sprintf("igm-test-%s", acctest.RandString(10)) @@ -73,8 +69,6 @@ func TestAccInstanceGroupManager_targetSizeZero(t *testing.T) { } func TestAccInstanceGroupManager_update(t *testing.T) { - t.Parallel() - var manager compute.InstanceGroupManager template1 := fmt.Sprintf("igm-test-%s", acctest.RandString(10)) @@ -119,8 +113,6 @@ func TestAccInstanceGroupManager_update(t *testing.T) { } func TestAccInstanceGroupManager_updateLifecycle(t *testing.T) { - t.Parallel() - var manager compute.InstanceGroupManager tag1 := "tag1" @@ -153,8 +145,6 @@ func TestAccInstanceGroupManager_updateLifecycle(t *testing.T) { } func TestAccInstanceGroupManager_updateStrategy(t *testing.T) { - t.Parallel() - var manager compute.InstanceGroupManager igm := fmt.Sprintf("igm-test-%s", acctest.RandString(10)) @@ -177,8 +167,6 @@ func TestAccInstanceGroupManager_updateStrategy(t *testing.T) { } func TestAccInstanceGroupManager_separateRegions(t *testing.T) { - t.Parallel() - var manager compute.InstanceGroupManager igm1 := fmt.Sprintf("igm-test-%s", acctest.RandString(10)) @@ -203,8 +191,6 @@ func TestAccInstanceGroupManager_separateRegions(t *testing.T) { } func TestAccInstanceGroupManager_autoHealingPolicies(t *testing.T) { - t.Parallel() - var manager computeBeta.InstanceGroupManager template := fmt.Sprintf("igm-test-%s", acctest.RandString(10)) @@ -234,8 +220,6 @@ func TestAccInstanceGroupManager_autoHealingPolicies(t *testing.T) { // Once auto_healing_policies is no longer beta, we will need to use a new field or resource // with Beta fields. func TestAccInstanceGroupManager_selfLinkStability(t *testing.T) { - t.Parallel() - var manager computeBeta.InstanceGroupManager template := fmt.Sprintf("igm-test-%s", acctest.RandString(10)) diff --git a/google/resource_compute_instance_group_test.go b/google/resource_compute_instance_group_test.go index aca558d5..8b71db6d 100644 --- a/google/resource_compute_instance_group_test.go +++ b/google/resource_compute_instance_group_test.go @@ -12,8 +12,6 @@ import ( ) func TestAccComputeInstanceGroup_basic(t *testing.T) { - t.Parallel() - var instanceGroup compute.InstanceGroup var instanceName = fmt.Sprintf("instancegroup-test-%s", acctest.RandString(10)) @@ -36,8 +34,6 @@ func TestAccComputeInstanceGroup_basic(t *testing.T) { } func TestAccComputeInstanceGroup_update(t *testing.T) { - t.Parallel() - var instanceGroup compute.InstanceGroup var instanceName = fmt.Sprintf("instancegroup-test-%s", acctest.RandString(10)) @@ -75,8 +71,6 @@ func TestAccComputeInstanceGroup_update(t *testing.T) { } func TestAccComputeInstanceGroup_outOfOrderInstances(t *testing.T) { - t.Parallel() - var instanceGroup compute.InstanceGroup var instanceName = fmt.Sprintf("instancegroup-test-%s", acctest.RandString(10)) @@ -97,8 +91,6 @@ func TestAccComputeInstanceGroup_outOfOrderInstances(t *testing.T) { } func TestAccComputeInstanceGroup_network(t *testing.T) { - t.Parallel() - var instanceGroup compute.InstanceGroup var instanceName = fmt.Sprintf("instancegroup-test-%s", acctest.RandString(10)) diff --git a/google/resource_compute_instance_migrate_test.go b/google/resource_compute_instance_migrate_test.go index 29591439..061d1259 100644 --- a/google/resource_compute_instance_migrate_test.go +++ b/google/resource_compute_instance_migrate_test.go @@ -99,8 +99,6 @@ func TestComputeInstanceMigrateState_empty(t *testing.T) { } func TestAccComputeInstanceMigrateState_bootDisk(t *testing.T) { - t.Parallel() - if os.Getenv(resource.TestEnvVar) == "" { t.Skip(fmt.Sprintf("Network access not allowed; use %s=1 to enable", resource.TestEnvVar)) } @@ -163,8 +161,6 @@ func TestAccComputeInstanceMigrateState_bootDisk(t *testing.T) { } func TestAccComputeInstanceMigrateState_v4FixBootDisk(t *testing.T) { - t.Parallel() - if os.Getenv(resource.TestEnvVar) == "" { t.Skip(fmt.Sprintf("Network access not allowed; use %s=1 to enable", resource.TestEnvVar)) } @@ -226,8 +222,6 @@ func TestAccComputeInstanceMigrateState_v4FixBootDisk(t *testing.T) { } func TestAccComputeInstanceMigrateState_attachedDiskFromSource(t *testing.T) { - t.Parallel() - if os.Getenv(resource.TestEnvVar) == "" { t.Skip(fmt.Sprintf("Network access not allowed; use %s=1 to enable", resource.TestEnvVar)) } @@ -306,8 +300,6 @@ func TestAccComputeInstanceMigrateState_attachedDiskFromSource(t *testing.T) { } func TestAccComputeInstanceMigrateState_v4FixAttachedDiskFromSource(t *testing.T) { - t.Parallel() - if os.Getenv(resource.TestEnvVar) == "" { t.Skip(fmt.Sprintf("Network access not allowed; use %s=1 to enable", resource.TestEnvVar)) } @@ -385,8 +377,6 @@ func TestAccComputeInstanceMigrateState_v4FixAttachedDiskFromSource(t *testing.T } func TestAccComputeInstanceMigrateState_attachedDiskFromEncryptionKey(t *testing.T) { - t.Parallel() - if os.Getenv(resource.TestEnvVar) == "" { t.Skip(fmt.Sprintf("Network access not allowed; use %s=1 to enable", resource.TestEnvVar)) } @@ -453,8 +443,6 @@ func TestAccComputeInstanceMigrateState_attachedDiskFromEncryptionKey(t *testing } func TestAccComputeInstanceMigrateState_v4FixAttachedDiskFromEncryptionKey(t *testing.T) { - t.Parallel() - if os.Getenv(resource.TestEnvVar) == "" { t.Skip(fmt.Sprintf("Network access not allowed; use %s=1 to enable", resource.TestEnvVar)) } @@ -520,8 +508,6 @@ func TestAccComputeInstanceMigrateState_v4FixAttachedDiskFromEncryptionKey(t *te } func TestAccComputeInstanceMigrateState_attachedDiskFromAutoDeleteAndImage(t *testing.T) { - t.Parallel() - if os.Getenv(resource.TestEnvVar) == "" { t.Skip(fmt.Sprintf("Network access not allowed; use %s=1 to enable", resource.TestEnvVar)) } @@ -592,8 +578,6 @@ func TestAccComputeInstanceMigrateState_attachedDiskFromAutoDeleteAndImage(t *te } func TestAccComputeInstanceMigrateState_v4FixAttachedDiskFromAutoDeleteAndImage(t *testing.T) { - t.Parallel() - if os.Getenv(resource.TestEnvVar) == "" { t.Skip(fmt.Sprintf("Network access not allowed; use %s=1 to enable", resource.TestEnvVar)) } @@ -663,8 +647,6 @@ func TestAccComputeInstanceMigrateState_v4FixAttachedDiskFromAutoDeleteAndImage( } func TestAccComputeInstanceMigrateState_scratchDisk(t *testing.T) { - t.Parallel() - if os.Getenv(resource.TestEnvVar) == "" { t.Skip(fmt.Sprintf("Network access not allowed; use %s=1 to enable", resource.TestEnvVar)) } @@ -727,8 +709,6 @@ func TestAccComputeInstanceMigrateState_scratchDisk(t *testing.T) { } func TestAccComputeInstanceMigrateState_v4FixScratchDisk(t *testing.T) { - t.Parallel() - if os.Getenv(resource.TestEnvVar) == "" { t.Skip(fmt.Sprintf("Network access not allowed; use %s=1 to enable", resource.TestEnvVar)) } diff --git a/google/resource_compute_instance_template_test.go b/google/resource_compute_instance_template_test.go index 92634154..79517a05 100644 --- a/google/resource_compute_instance_template_test.go +++ b/google/resource_compute_instance_template_test.go @@ -13,8 +13,6 @@ import ( ) func TestAccComputeInstanceTemplate_basic(t *testing.T) { - t.Parallel() - var instanceTemplate compute.InstanceTemplate resource.Test(t, resource.TestCase{ @@ -38,8 +36,6 @@ func TestAccComputeInstanceTemplate_basic(t *testing.T) { } func TestAccComputeInstanceTemplate_preemptible(t *testing.T) { - t.Parallel() - var instanceTemplate compute.InstanceTemplate resource.Test(t, resource.TestCase{ @@ -61,8 +57,6 @@ func TestAccComputeInstanceTemplate_preemptible(t *testing.T) { } func TestAccComputeInstanceTemplate_IP(t *testing.T) { - t.Parallel() - var instanceTemplate compute.InstanceTemplate resource.Test(t, resource.TestCase{ @@ -83,8 +77,6 @@ func TestAccComputeInstanceTemplate_IP(t *testing.T) { } func TestAccComputeInstanceTemplate_networkIP(t *testing.T) { - t.Parallel() - var instanceTemplate compute.InstanceTemplate networkIP := "10.128.0.2" @@ -108,8 +100,6 @@ func TestAccComputeInstanceTemplate_networkIP(t *testing.T) { } func TestAccComputeInstanceTemplate_disks(t *testing.T) { - t.Parallel() - var instanceTemplate compute.InstanceTemplate resource.Test(t, resource.TestCase{ @@ -131,8 +121,6 @@ func TestAccComputeInstanceTemplate_disks(t *testing.T) { } func TestAccComputeInstanceTemplate_subnet_auto(t *testing.T) { - t.Parallel() - var instanceTemplate compute.InstanceTemplate network := "network-" + acctest.RandString(10) @@ -154,8 +142,6 @@ func TestAccComputeInstanceTemplate_subnet_auto(t *testing.T) { } func TestAccComputeInstanceTemplate_subnet_custom(t *testing.T) { - t.Parallel() - var instanceTemplate compute.InstanceTemplate resource.Test(t, resource.TestCase{ @@ -176,8 +162,6 @@ func TestAccComputeInstanceTemplate_subnet_custom(t *testing.T) { } func TestAccComputeInstanceTemplate_subnet_xpn(t *testing.T) { - t.Parallel() - var instanceTemplate compute.InstanceTemplate var xpn_host = os.Getenv("GOOGLE_XPN_HOST_PROJECT") @@ -199,8 +183,6 @@ func TestAccComputeInstanceTemplate_subnet_xpn(t *testing.T) { } func TestAccComputeInstanceTemplate_metadata_startup_script(t *testing.T) { - t.Parallel() - var instanceTemplate compute.InstanceTemplate resource.Test(t, resource.TestCase{ diff --git a/google/resource_compute_instance_test.go b/google/resource_compute_instance_test.go index 0a28ecf6..6e1b777d 100644 --- a/google/resource_compute_instance_test.go +++ b/google/resource_compute_instance_test.go @@ -16,8 +16,6 @@ import ( ) func TestAccComputeInstance_basic1(t *testing.T) { - t.Parallel() - var instance compute.Instance var instanceName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) @@ -44,8 +42,6 @@ func TestAccComputeInstance_basic1(t *testing.T) { } func TestAccComputeInstance_basic2(t *testing.T) { - t.Parallel() - var instance compute.Instance var instanceName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) @@ -69,8 +65,6 @@ func TestAccComputeInstance_basic2(t *testing.T) { } func TestAccComputeInstance_basic3(t *testing.T) { - t.Parallel() - var instance compute.Instance var instanceName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) @@ -94,8 +88,6 @@ func TestAccComputeInstance_basic3(t *testing.T) { } func TestAccComputeInstance_basic4(t *testing.T) { - t.Parallel() - var instance compute.Instance var instanceName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) @@ -119,8 +111,6 @@ func TestAccComputeInstance_basic4(t *testing.T) { } func TestAccComputeInstance_basic5(t *testing.T) { - t.Parallel() - var instance compute.Instance var instanceName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) @@ -144,8 +134,6 @@ func TestAccComputeInstance_basic5(t *testing.T) { } func TestAccComputeInstance_IP(t *testing.T) { - t.Parallel() - var instance compute.Instance var ipName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) var instanceName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) @@ -168,8 +156,6 @@ func TestAccComputeInstance_IP(t *testing.T) { } func TestAccComputeInstance_diskEncryption(t *testing.T) { - t.Parallel() - var instance compute.Instance var instanceName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) bootEncryptionKey := "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=" @@ -207,8 +193,6 @@ func TestAccComputeInstance_diskEncryption(t *testing.T) { } func TestAccComputeInstance_attachedDisk(t *testing.T) { - t.Parallel() - var instance compute.Instance var instanceName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) var diskName = fmt.Sprintf("instance-testd-%s", acctest.RandString(10)) @@ -231,8 +215,6 @@ func TestAccComputeInstance_attachedDisk(t *testing.T) { } func TestAccComputeInstance_bootDisk_source(t *testing.T) { - t.Parallel() - var instance compute.Instance var instanceName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) var diskName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) @@ -255,8 +237,6 @@ func TestAccComputeInstance_bootDisk_source(t *testing.T) { } func TestAccComputeInstance_bootDisk_type(t *testing.T) { - t.Parallel() - var instance compute.Instance var instanceName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) var diskType = "pd-ssd" @@ -279,8 +259,6 @@ func TestAccComputeInstance_bootDisk_type(t *testing.T) { } func TestAccComputeInstance_noDisk(t *testing.T) { - t.Parallel() - var instanceName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ @@ -297,8 +275,6 @@ func TestAccComputeInstance_noDisk(t *testing.T) { } func TestAccComputeInstance_scratchDisk(t *testing.T) { - t.Parallel() - var instance compute.Instance var instanceName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) @@ -320,8 +296,6 @@ func TestAccComputeInstance_scratchDisk(t *testing.T) { } func TestAccComputeInstance_forceNewAndChangeMetadata(t *testing.T) { - t.Parallel() - var instance compute.Instance var instanceName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) @@ -351,8 +325,6 @@ func TestAccComputeInstance_forceNewAndChangeMetadata(t *testing.T) { } func TestAccComputeInstance_update(t *testing.T) { - t.Parallel() - var instance compute.Instance var instanceName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) @@ -385,8 +357,6 @@ func TestAccComputeInstance_update(t *testing.T) { } func TestAccComputeInstance_service_account(t *testing.T) { - t.Parallel() - var instance compute.Instance var instanceName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) @@ -413,8 +383,6 @@ func TestAccComputeInstance_service_account(t *testing.T) { } func TestAccComputeInstance_scheduling(t *testing.T) { - t.Parallel() - var instance compute.Instance var instanceName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) @@ -435,8 +403,6 @@ func TestAccComputeInstance_scheduling(t *testing.T) { } func TestAccComputeInstance_subnet_auto(t *testing.T) { - t.Parallel() - var instance compute.Instance var instanceName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) @@ -458,8 +424,6 @@ func TestAccComputeInstance_subnet_auto(t *testing.T) { } func TestAccComputeInstance_subnet_custom(t *testing.T) { - t.Parallel() - var instance compute.Instance var instanceName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) @@ -481,8 +445,6 @@ func TestAccComputeInstance_subnet_custom(t *testing.T) { } func TestAccComputeInstance_subnet_xpn(t *testing.T) { - t.Parallel() - var instance compute.Instance var instanceName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) var xpn_host = os.Getenv("GOOGLE_XPN_HOST_PROJECT") @@ -505,8 +467,6 @@ func TestAccComputeInstance_subnet_xpn(t *testing.T) { } func TestAccComputeInstance_address_auto(t *testing.T) { - t.Parallel() - var instance compute.Instance var instanceName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) @@ -528,8 +488,6 @@ func TestAccComputeInstance_address_auto(t *testing.T) { } func TestAccComputeInstance_address_custom(t *testing.T) { - t.Parallel() - var instance compute.Instance var instanceName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) var address = "10.0.200.200" @@ -551,8 +509,6 @@ func TestAccComputeInstance_address_custom(t *testing.T) { } func TestAccComputeInstance_private_image_family(t *testing.T) { - t.Parallel() - var instance compute.Instance var instanceName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) var diskName = fmt.Sprintf("instance-testd-%s", acctest.RandString(10)) @@ -576,8 +532,6 @@ func TestAccComputeInstance_private_image_family(t *testing.T) { } func TestAccComputeInstance_forceChangeMachineTypeManually(t *testing.T) { - t.Parallel() - var instance compute.Instance var instanceName = fmt.Sprintf("instance-test-%s", acctest.RandString(10)) @@ -599,8 +553,6 @@ func TestAccComputeInstance_forceChangeMachineTypeManually(t *testing.T) { } func TestAccComputeInstance_multiNic(t *testing.T) { - t.Parallel() - var instance compute.Instance instanceName := fmt.Sprintf("terraform-test-%s", acctest.RandString(10)) networkName := fmt.Sprintf("terraform-test-%s", acctest.RandString(10)) @@ -623,8 +575,6 @@ func TestAccComputeInstance_multiNic(t *testing.T) { } func TestAccComputeInstance_guestAccelerator(t *testing.T) { - t.Parallel() - var instance computeBeta.Instance instanceName := fmt.Sprintf("terraform-test-%s", acctest.RandString(10)) @@ -646,8 +596,6 @@ func TestAccComputeInstance_guestAccelerator(t *testing.T) { } func TestAccComputeInstance_minCpuPlatform(t *testing.T) { - t.Parallel() - var instance computeBeta.Instance instanceName := fmt.Sprintf("terraform-test-%s", acctest.RandString(10)) @@ -668,8 +616,6 @@ func TestAccComputeInstance_minCpuPlatform(t *testing.T) { } func TestAccComputeInstance_primaryAliasIpRange(t *testing.T) { - t.Parallel() - var instance compute.Instance instanceName := fmt.Sprintf("terraform-test-%s", acctest.RandString(10)) @@ -690,8 +636,6 @@ func TestAccComputeInstance_primaryAliasIpRange(t *testing.T) { } func TestAccComputeInstance_secondaryAliasIpRange(t *testing.T) { - t.Parallel() - var instance compute.Instance instanceName := fmt.Sprintf("terraform-test-%s", acctest.RandString(10)) diff --git a/google/resource_compute_network_peering_test.go b/google/resource_compute_network_peering_test.go index c8abf1bf..8852eca1 100644 --- a/google/resource_compute_network_peering_test.go +++ b/google/resource_compute_network_peering_test.go @@ -11,8 +11,6 @@ import ( ) func TestAccComputeNetworkPeering_basic(t *testing.T) { - t.Parallel() - var peering compute.NetworkPeering resource.Test(t, resource.TestCase{ diff --git a/google/resource_compute_network_test.go b/google/resource_compute_network_test.go index 9cbd9681..300a822c 100644 --- a/google/resource_compute_network_test.go +++ b/google/resource_compute_network_test.go @@ -11,8 +11,6 @@ import ( ) func TestAccComputeNetwork_basic(t *testing.T) { - t.Parallel() - var network compute.Network resource.Test(t, resource.TestCase{ @@ -32,8 +30,6 @@ func TestAccComputeNetwork_basic(t *testing.T) { } func TestAccComputeNetwork_auto_subnet(t *testing.T) { - t.Parallel() - var network compute.Network resource.Test(t, resource.TestCase{ @@ -55,8 +51,6 @@ func TestAccComputeNetwork_auto_subnet(t *testing.T) { } func TestAccComputeNetwork_custom_subnet(t *testing.T) { - t.Parallel() - var network compute.Network resource.Test(t, resource.TestCase{ diff --git a/google/resource_compute_project_metadata_item_test.go b/google/resource_compute_project_metadata_item_test.go index 4f8a9210..d72b347d 100644 --- a/google/resource_compute_project_metadata_item_test.go +++ b/google/resource_compute_project_metadata_item_test.go @@ -10,10 +10,7 @@ import ( ) func TestAccComputeProjectMetadataItem_basic(t *testing.T) { - t.Parallel( // Key must be unique to avoid concurrent tests interfering with each other - ) - key := "myKey" + acctest.RandString(10) resource.Test(t, resource.TestCase{ @@ -32,10 +29,7 @@ func TestAccComputeProjectMetadataItem_basic(t *testing.T) { } func TestAccComputeProjectMetadataItem_basicMultiple(t *testing.T) { - t.Parallel( // Generate a config of two config keys - ) - config := testAccProjectMetadataItem_basic("myKey", "myValue") + testAccProjectMetadataItem_basic("myOtherKey", "myOtherValue") resource.Test(t, resource.TestCase{ @@ -55,10 +49,7 @@ func TestAccComputeProjectMetadataItem_basicMultiple(t *testing.T) { } func TestAccComputeProjectMetadataItem_basicWithEmptyVal(t *testing.T) { - t.Parallel( // Key must be unique to avoid concurrent tests interfering with each other - ) - key := "myKey" + acctest.RandString(10) resource.Test(t, resource.TestCase{ @@ -77,10 +68,7 @@ func TestAccComputeProjectMetadataItem_basicWithEmptyVal(t *testing.T) { } func TestAccComputeProjectMetadataItem_basicUpdate(t *testing.T) { - t.Parallel( // Key must be unique to avoid concurrent tests interfering with each other - ) - key := "myKey" + acctest.RandString(10) resource.Test(t, resource.TestCase{ diff --git a/google/resource_compute_project_metadata_test.go b/google/resource_compute_project_metadata_test.go index b4d2a588..4de8e167 100644 --- a/google/resource_compute_project_metadata_test.go +++ b/google/resource_compute_project_metadata_test.go @@ -13,8 +13,6 @@ import ( // Add two key value pairs func TestAccComputeProjectMetadata_basic(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, []string{ "GOOGLE_ORG", @@ -47,8 +45,6 @@ func TestAccComputeProjectMetadata_basic(t *testing.T) { // Add three key value pairs, then replace one and modify a second func TestAccComputeProjectMetadata_modify_1(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, []string{ "GOOGLE_ORG", @@ -94,8 +90,6 @@ func TestAccComputeProjectMetadata_modify_1(t *testing.T) { // Add two key value pairs, and replace both func TestAccComputeProjectMetadata_modify_2(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, []string{ "GOOGLE_ORG", diff --git a/google/resource_compute_region_backend_service_test.go b/google/resource_compute_region_backend_service_test.go index 7cd299e3..f53266dd 100644 --- a/google/resource_compute_region_backend_service_test.go +++ b/google/resource_compute_region_backend_service_test.go @@ -11,8 +11,6 @@ import ( ) func TestAccComputeRegionBackendService_basic(t *testing.T) { - t.Parallel() - serviceName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) checkName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) extraCheckName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) @@ -43,8 +41,6 @@ func TestAccComputeRegionBackendService_basic(t *testing.T) { } func TestAccComputeRegionBackendService_withBackend(t *testing.T) { - t.Parallel() - serviceName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) igName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) itName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) @@ -78,8 +74,6 @@ func TestAccComputeRegionBackendService_withBackend(t *testing.T) { } func TestAccComputeRegionBackendService_withBackendAndUpdate(t *testing.T) { - t.Parallel() - serviceName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) igName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) itName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) @@ -121,8 +115,6 @@ func TestAccComputeRegionBackendService_withBackendAndUpdate(t *testing.T) { } func TestAccComputeRegionBackendService_withConnectionDraining(t *testing.T) { - t.Parallel() - serviceName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) checkName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) var svc compute.BackendService @@ -148,8 +140,6 @@ func TestAccComputeRegionBackendService_withConnectionDraining(t *testing.T) { } func TestAccComputeRegionBackendService_withConnectionDrainingAndUpdate(t *testing.T) { - t.Parallel() - serviceName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) checkName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) var svc compute.BackendService @@ -182,8 +172,6 @@ func TestAccComputeRegionBackendService_withConnectionDrainingAndUpdate(t *testi } func TestAccComputeRegionBackendService_withSessionAffinity(t *testing.T) { - t.Parallel() - serviceName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) checkName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) var svc compute.BackendService diff --git a/google/resource_compute_region_instance_group_manager_test.go b/google/resource_compute_region_instance_group_manager_test.go index 3eb29363..1feaf0f7 100644 --- a/google/resource_compute_region_instance_group_manager_test.go +++ b/google/resource_compute_region_instance_group_manager_test.go @@ -17,8 +17,6 @@ import ( ) func TestAccRegionInstanceGroupManager_basic(t *testing.T) { - t.Parallel() - var manager compute.InstanceGroupManager template := fmt.Sprintf("igm-test-%s", acctest.RandString(10)) @@ -45,8 +43,6 @@ func TestAccRegionInstanceGroupManager_basic(t *testing.T) { } func TestAccRegionInstanceGroupManager_targetSizeZero(t *testing.T) { - t.Parallel() - var manager compute.InstanceGroupManager templateName := fmt.Sprintf("igm-test-%s", acctest.RandString(10)) @@ -73,8 +69,6 @@ func TestAccRegionInstanceGroupManager_targetSizeZero(t *testing.T) { } func TestAccRegionInstanceGroupManager_update(t *testing.T) { - t.Parallel() - var manager compute.InstanceGroupManager template1 := fmt.Sprintf("igm-test-%s", acctest.RandString(10)) @@ -118,8 +112,6 @@ func TestAccRegionInstanceGroupManager_update(t *testing.T) { } func TestAccRegionInstanceGroupManager_updateLifecycle(t *testing.T) { - t.Parallel() - var manager compute.InstanceGroupManager tag1 := "tag1" @@ -152,8 +144,6 @@ func TestAccRegionInstanceGroupManager_updateLifecycle(t *testing.T) { } func TestAccRegionInstanceGroupManager_separateRegions(t *testing.T) { - t.Parallel() - var manager compute.InstanceGroupManager igm1 := fmt.Sprintf("igm-test-%s", acctest.RandString(10)) @@ -178,8 +168,6 @@ func TestAccRegionInstanceGroupManager_separateRegions(t *testing.T) { } func TestAccRegionInstanceGroupManager_autoHealingPolicies(t *testing.T) { - t.Parallel() - var manager computeBeta.InstanceGroupManager template := fmt.Sprintf("igm-test-%s", acctest.RandString(10)) diff --git a/google/resource_compute_route_test.go b/google/resource_compute_route_test.go index fdaf198d..62844fab 100644 --- a/google/resource_compute_route_test.go +++ b/google/resource_compute_route_test.go @@ -11,8 +11,6 @@ import ( ) func TestAccComputeRoute_basic(t *testing.T) { - t.Parallel() - var route compute.Route resource.Test(t, resource.TestCase{ @@ -32,8 +30,6 @@ func TestAccComputeRoute_basic(t *testing.T) { } func TestAccComputeRoute_defaultInternetGateway(t *testing.T) { - t.Parallel() - var route compute.Route resource.Test(t, resource.TestCase{ diff --git a/google/resource_compute_router_interface_test.go b/google/resource_compute_router_interface_test.go index 146ea7bf..9af1d639 100644 --- a/google/resource_compute_router_interface_test.go +++ b/google/resource_compute_router_interface_test.go @@ -10,8 +10,6 @@ import ( ) func TestAccComputeRouterInterface_basic(t *testing.T) { - t.Parallel() - testId := acctest.RandString(10) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, diff --git a/google/resource_compute_router_peer_test.go b/google/resource_compute_router_peer_test.go index 2f3d9732..e1e074b6 100644 --- a/google/resource_compute_router_peer_test.go +++ b/google/resource_compute_router_peer_test.go @@ -10,8 +10,6 @@ import ( ) func TestAccComputeRouterPeer_basic(t *testing.T) { - t.Parallel() - testId := acctest.RandString(10) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, diff --git a/google/resource_compute_router_test.go b/google/resource_compute_router_test.go index c3a39a62..acea0bf9 100644 --- a/google/resource_compute_router_test.go +++ b/google/resource_compute_router_test.go @@ -10,8 +10,6 @@ import ( ) func TestAccComputeRouter_basic(t *testing.T) { - t.Parallel() - resourceRegion := "europe-west1" resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -32,8 +30,6 @@ func TestAccComputeRouter_basic(t *testing.T) { } func TestAccComputeRouter_noRegion(t *testing.T) { - t.Parallel() - providerRegion := "us-central1" resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -54,8 +50,6 @@ func TestAccComputeRouter_noRegion(t *testing.T) { } func TestAccComputeRouter_networkLink(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/google/resource_compute_snapshot_test.go b/google/resource_compute_snapshot_test.go index 84020a9e..2a29f940 100644 --- a/google/resource_compute_snapshot_test.go +++ b/google/resource_compute_snapshot_test.go @@ -12,8 +12,6 @@ import ( ) func TestAccComputeSnapshot_basic(t *testing.T) { - t.Parallel() - snapshotName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) var snapshot compute.Snapshot diskName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) @@ -35,8 +33,6 @@ func TestAccComputeSnapshot_basic(t *testing.T) { } func TestAccComputeSnapshot_encryption(t *testing.T) { - t.Parallel() - snapshotName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) diskName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) var snapshot compute.Snapshot diff --git a/google/resource_compute_ssl_certificate_test.go b/google/resource_compute_ssl_certificate_test.go index f26fe267..987282c6 100644 --- a/google/resource_compute_ssl_certificate_test.go +++ b/google/resource_compute_ssl_certificate_test.go @@ -10,8 +10,6 @@ import ( ) func TestAccComputeSslCertificate_basic(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -29,8 +27,6 @@ func TestAccComputeSslCertificate_basic(t *testing.T) { } func TestAccComputeSslCertificate_no_name(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -48,8 +44,6 @@ func TestAccComputeSslCertificate_no_name(t *testing.T) { } func TestAccComputeSslCertificate_name_prefix(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/google/resource_compute_subnetwork_test.go b/google/resource_compute_subnetwork_test.go index bc081185..460e905e 100644 --- a/google/resource_compute_subnetwork_test.go +++ b/google/resource_compute_subnetwork_test.go @@ -11,8 +11,6 @@ import ( ) func TestAccComputeSubnetwork_basic(t *testing.T) { - t.Parallel() - var subnetwork1 compute.Subnetwork var subnetwork2 compute.Subnetwork @@ -40,8 +38,6 @@ func TestAccComputeSubnetwork_basic(t *testing.T) { } func TestAccComputeSubnetwork_update(t *testing.T) { - t.Parallel() - var subnetwork compute.Subnetwork cnName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) @@ -75,8 +71,6 @@ func TestAccComputeSubnetwork_update(t *testing.T) { } func TestAccComputeSubnetwork_secondaryIpRanges(t *testing.T) { - t.Parallel() - var subnetwork compute.Subnetwork cnName := fmt.Sprintf("tf-test-%s", acctest.RandString(10)) diff --git a/google/resource_compute_target_http_proxy_test.go b/google/resource_compute_target_http_proxy_test.go index 6665a8c8..591a3eaa 100644 --- a/google/resource_compute_target_http_proxy_test.go +++ b/google/resource_compute_target_http_proxy_test.go @@ -10,8 +10,6 @@ import ( ) func TestAccComputeTargetHttpProxy_basic(t *testing.T) { - t.Parallel() - target := fmt.Sprintf("thttp-test-%s", acctest.RandString(10)) backend := fmt.Sprintf("thttp-test-%s", acctest.RandString(10)) hc := fmt.Sprintf("thttp-test-%s", acctest.RandString(10)) @@ -35,8 +33,6 @@ func TestAccComputeTargetHttpProxy_basic(t *testing.T) { } func TestAccComputeTargetHttpProxy_update(t *testing.T) { - t.Parallel() - target := fmt.Sprintf("thttp-test-%s", acctest.RandString(10)) backend := fmt.Sprintf("thttp-test-%s", acctest.RandString(10)) hc := fmt.Sprintf("thttp-test-%s", acctest.RandString(10)) diff --git a/google/resource_compute_target_https_proxy_test.go b/google/resource_compute_target_https_proxy_test.go index 09180411..573fcab8 100644 --- a/google/resource_compute_target_https_proxy_test.go +++ b/google/resource_compute_target_https_proxy_test.go @@ -12,8 +12,6 @@ import ( ) func TestAccComputeTargetHttpsProxy_basic(t *testing.T) { - t.Parallel() - var proxy compute.TargetHttpsProxy resourceSuffix := acctest.RandString(10) @@ -36,8 +34,6 @@ func TestAccComputeTargetHttpsProxy_basic(t *testing.T) { } func TestAccComputeTargetHttpsProxy_update(t *testing.T) { - t.Parallel() - var proxy compute.TargetHttpsProxy resourceSuffix := acctest.RandString(10) @@ -71,8 +67,6 @@ func TestAccComputeTargetHttpsProxy_update(t *testing.T) { } func TestAccComputeTargetHttpsProxy_invalidCertificate(t *testing.T) { - t.Parallel() - resourceSuffix := acctest.RandString(10) resource.Test(t, resource.TestCase{ diff --git a/google/resource_compute_target_pool_test.go b/google/resource_compute_target_pool_test.go index 3547d36c..056a571b 100644 --- a/google/resource_compute_target_pool_test.go +++ b/google/resource_compute_target_pool_test.go @@ -10,7 +10,6 @@ import ( ) func TestAccComputeTargetPool_basic(t *testing.T) { - t.Parallel() resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, diff --git a/google/resource_compute_target_tcp_proxy_test.go b/google/resource_compute_target_tcp_proxy_test.go index bc9314fa..7212bfa9 100644 --- a/google/resource_compute_target_tcp_proxy_test.go +++ b/google/resource_compute_target_tcp_proxy_test.go @@ -10,8 +10,6 @@ import ( ) func TestAccComputeTargetTcpProxy_basic(t *testing.T) { - t.Parallel() - target := fmt.Sprintf("ttcp-test-%s", acctest.RandString(10)) backend := fmt.Sprintf("ttcp-test-%s", acctest.RandString(10)) hc := fmt.Sprintf("ttcp-test-%s", acctest.RandString(10)) @@ -33,8 +31,6 @@ func TestAccComputeTargetTcpProxy_basic(t *testing.T) { } func TestAccComputeTargetTcpProxy_update(t *testing.T) { - t.Parallel() - target := fmt.Sprintf("ttcp-test-%s", acctest.RandString(10)) backend := fmt.Sprintf("ttcp-test-%s", acctest.RandString(10)) hc := fmt.Sprintf("ttcp-test-%s", acctest.RandString(10)) diff --git a/google/resource_compute_url_map_test.go b/google/resource_compute_url_map_test.go index 44bcd023..6f4558c3 100644 --- a/google/resource_compute_url_map_test.go +++ b/google/resource_compute_url_map_test.go @@ -10,8 +10,6 @@ import ( ) func TestAccComputeUrlMap_basic(t *testing.T) { - t.Parallel() - bsName := fmt.Sprintf("urlmap-test-%s", acctest.RandString(10)) hcName := fmt.Sprintf("urlmap-test-%s", acctest.RandString(10)) umName := fmt.Sprintf("urlmap-test-%s", acctest.RandString(10)) @@ -32,8 +30,6 @@ func TestAccComputeUrlMap_basic(t *testing.T) { } func TestAccComputeUrlMap_update_path_matcher(t *testing.T) { - t.Parallel() - bsName := fmt.Sprintf("urlmap-test-%s", acctest.RandString(10)) hcName := fmt.Sprintf("urlmap-test-%s", acctest.RandString(10)) umName := fmt.Sprintf("urlmap-test-%s", acctest.RandString(10)) @@ -62,8 +58,6 @@ func TestAccComputeUrlMap_update_path_matcher(t *testing.T) { } func TestAccComputeUrlMap_advanced(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -89,8 +83,6 @@ func TestAccComputeUrlMap_advanced(t *testing.T) { } func TestAccComputeUrlMap_noPathRulesWithUpdate(t *testing.T) { - t.Parallel() - bsName := fmt.Sprintf("urlmap-test-%s", acctest.RandString(10)) hcName := fmt.Sprintf("urlmap-test-%s", acctest.RandString(10)) umName := fmt.Sprintf("urlmap-test-%s", acctest.RandString(10)) diff --git a/google/resource_compute_vpn_gateway_test.go b/google/resource_compute_vpn_gateway_test.go index 6d0f1906..6e32b75e 100644 --- a/google/resource_compute_vpn_gateway_test.go +++ b/google/resource_compute_vpn_gateway_test.go @@ -12,8 +12,6 @@ import ( ) func TestAccComputeVpnGateway_basic(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/google/resource_compute_vpn_tunnel_test.go b/google/resource_compute_vpn_tunnel_test.go index 60a9e405..cac45a1d 100644 --- a/google/resource_compute_vpn_tunnel_test.go +++ b/google/resource_compute_vpn_tunnel_test.go @@ -12,8 +12,6 @@ import ( ) func TestAccComputeVpnTunnel_basic(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -35,8 +33,6 @@ func TestAccComputeVpnTunnel_basic(t *testing.T) { } func TestAccComputeVpnTunnel_router(t *testing.T) { - t.Parallel() - router := fmt.Sprintf("tunnel-test-router-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -57,7 +53,6 @@ func TestAccComputeVpnTunnel_router(t *testing.T) { } func TestAccComputeVpnTunnel_defaultTrafficSelectors(t *testing.T) { - t.Parallel() resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, diff --git a/google/resource_container_cluster_test.go b/google/resource_container_cluster_test.go index c92013bd..56fdf3ea 100644 --- a/google/resource_container_cluster_test.go +++ b/google/resource_container_cluster_test.go @@ -17,8 +17,6 @@ import ( ) func TestAccContainerCluster_basic(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -36,8 +34,6 @@ func TestAccContainerCluster_basic(t *testing.T) { } func TestAccContainerCluster_withTimeout(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -55,8 +51,6 @@ func TestAccContainerCluster_withTimeout(t *testing.T) { } func TestAccContainerCluster_withAddons(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -73,8 +67,6 @@ func TestAccContainerCluster_withAddons(t *testing.T) { }) } func TestAccContainerCluster_withMasterAuth(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -92,8 +84,6 @@ func TestAccContainerCluster_withMasterAuth(t *testing.T) { } func TestAccContainerCluster_withAdditionalZones(t *testing.T) { - t.Parallel() - clusterName := fmt.Sprintf("cluster-test-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ @@ -120,8 +110,6 @@ func TestAccContainerCluster_withAdditionalZones(t *testing.T) { } func TestAccContainerCluster_withLegacyAbac(t *testing.T) { - t.Parallel() - clusterName := fmt.Sprintf("cluster-test-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ @@ -150,8 +138,6 @@ func TestAccContainerCluster_withLegacyAbac(t *testing.T) { } func TestAccContainerCluster_withVersion(t *testing.T) { - t.Parallel() - clusterName := fmt.Sprintf("cluster-test-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ @@ -171,8 +157,6 @@ func TestAccContainerCluster_withVersion(t *testing.T) { } func TestAccContainerCluster_updateVersion(t *testing.T) { - t.Parallel() - clusterName := fmt.Sprintf("cluster-test-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ @@ -199,8 +183,6 @@ func TestAccContainerCluster_updateVersion(t *testing.T) { } func TestAccContainerCluster_withNodeConfig(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -218,8 +200,6 @@ func TestAccContainerCluster_withNodeConfig(t *testing.T) { } func TestAccContainerCluster_withNodeConfigScopeAlias(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -237,8 +217,6 @@ func TestAccContainerCluster_withNodeConfigScopeAlias(t *testing.T) { } func TestAccContainerCluster_network(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -258,8 +236,6 @@ func TestAccContainerCluster_network(t *testing.T) { } func TestAccContainerCluster_backend(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -277,8 +253,6 @@ func TestAccContainerCluster_backend(t *testing.T) { } func TestAccContainerCluster_withLogging(t *testing.T) { - t.Parallel() - clusterName := fmt.Sprintf("cluster-test-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ @@ -307,8 +281,6 @@ func TestAccContainerCluster_withLogging(t *testing.T) { } func TestAccContainerCluster_withNodePoolBasic(t *testing.T) { - t.Parallel() - clusterName := fmt.Sprintf("tf-cluster-nodepool-test-%s", acctest.RandString(10)) npName := fmt.Sprintf("tf-cluster-nodepool-test-%s", acctest.RandString(10)) @@ -329,8 +301,6 @@ func TestAccContainerCluster_withNodePoolBasic(t *testing.T) { } func TestAccContainerCluster_withNodePoolResize(t *testing.T) { - t.Parallel() - clusterName := fmt.Sprintf("tf-cluster-nodepool-test-%s", acctest.RandString(10)) npName := fmt.Sprintf("tf-cluster-nodepool-test-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ @@ -359,8 +329,6 @@ func TestAccContainerCluster_withNodePoolResize(t *testing.T) { } func TestAccContainerCluster_withNodePoolAutoscaling(t *testing.T) { - t.Parallel() - clusterName := fmt.Sprintf("tf-cluster-nodepool-test-%s", acctest.RandString(10)) npName := fmt.Sprintf("tf-cluster-nodepool-test-%s", acctest.RandString(10)) @@ -398,8 +366,6 @@ func TestAccContainerCluster_withNodePoolAutoscaling(t *testing.T) { } func TestAccContainerCluster_withNodePoolNamePrefix(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -417,8 +383,6 @@ func TestAccContainerCluster_withNodePoolNamePrefix(t *testing.T) { } func TestAccContainerCluster_withNodePoolMultiple(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -436,8 +400,6 @@ func TestAccContainerCluster_withNodePoolMultiple(t *testing.T) { } func TestAccContainerCluster_withNodePoolConflictingNameFields(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -452,8 +414,6 @@ func TestAccContainerCluster_withNodePoolConflictingNameFields(t *testing.T) { } func TestAccContainerCluster_withNodePoolNodeConfig(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/google/resource_container_node_pool_test.go b/google/resource_container_node_pool_test.go index 1328e964..dd54d909 100644 --- a/google/resource_container_node_pool_test.go +++ b/google/resource_container_node_pool_test.go @@ -14,8 +14,6 @@ import ( ) func TestAccContainerNodePool_basic(t *testing.T) { - t.Parallel() - cluster := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) np := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) @@ -35,8 +33,6 @@ func TestAccContainerNodePool_basic(t *testing.T) { } func TestAccContainerNodePool_namePrefix(t *testing.T) { - t.Parallel() - cluster := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ @@ -55,8 +51,6 @@ func TestAccContainerNodePool_namePrefix(t *testing.T) { } func TestAccContainerNodePool_noName(t *testing.T) { - t.Parallel() - cluster := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ @@ -75,8 +69,6 @@ func TestAccContainerNodePool_noName(t *testing.T) { } func TestAccContainerNodePool_withNodeConfig(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -93,8 +85,6 @@ func TestAccContainerNodePool_withNodeConfig(t *testing.T) { } func TestAccContainerNodePool_withNodeConfigScopeAlias(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -111,8 +101,6 @@ func TestAccContainerNodePool_withNodeConfigScopeAlias(t *testing.T) { } func TestAccContainerNodePool_autoscaling(t *testing.T) { - t.Parallel() - cluster := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) np := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) @@ -150,8 +138,6 @@ func TestAccContainerNodePool_autoscaling(t *testing.T) { } func TestAccContainerNodePool_resize(t *testing.T) { - t.Parallel() - cluster := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) np := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) diff --git a/google/resource_dns_managed_zone_test.go b/google/resource_dns_managed_zone_test.go index 7cb20c24..73d55128 100644 --- a/google/resource_dns_managed_zone_test.go +++ b/google/resource_dns_managed_zone_test.go @@ -11,8 +11,6 @@ import ( ) func TestAccDnsManagedZone_basic(t *testing.T) { - t.Parallel() - var zone dns.ManagedZone resource.Test(t, resource.TestCase{ diff --git a/google/resource_dns_record_set_test.go b/google/resource_dns_record_set_test.go index 7787186a..35e1ac34 100644 --- a/google/resource_dns_record_set_test.go +++ b/google/resource_dns_record_set_test.go @@ -10,8 +10,6 @@ import ( ) func TestAccDnsRecordSet_basic(t *testing.T) { - t.Parallel() - zoneName := fmt.Sprintf("dnszone-test-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -30,8 +28,6 @@ func TestAccDnsRecordSet_basic(t *testing.T) { } func TestAccDnsRecordSet_modify(t *testing.T) { - t.Parallel() - zoneName := fmt.Sprintf("dnszone-test-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -64,8 +60,6 @@ func TestAccDnsRecordSet_modify(t *testing.T) { } func TestAccDnsRecordSet_changeType(t *testing.T) { - t.Parallel() - zoneName := fmt.Sprintf("dnszone-test-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, diff --git a/google/resource_google_folder_iam_policy_test.go b/google/resource_google_folder_iam_policy_test.go index 0a6b7f56..e18f7956 100644 --- a/google/resource_google_folder_iam_policy_test.go +++ b/google/resource_google_folder_iam_policy_test.go @@ -13,8 +13,6 @@ import ( ) func TestAccGoogleFolderIamPolicy_basic(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, "GOOGLE_ORG") folderDisplayName := "tf-test-" + acctest.RandString(10) @@ -46,8 +44,6 @@ func TestAccGoogleFolderIamPolicy_basic(t *testing.T) { } func TestAccGoogleFolderIamPolicy_update(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, "GOOGLE_ORG") folderDisplayName := "tf-test-" + acctest.RandString(10) diff --git a/google/resource_google_folder_test.go b/google/resource_google_folder_test.go index 1767e6ee..243546f8 100644 --- a/google/resource_google_folder_test.go +++ b/google/resource_google_folder_test.go @@ -12,8 +12,6 @@ import ( ) func TestAccGoogleFolder_rename(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, "GOOGLE_ORG") folderDisplayName := "tf-test-" + acctest.RandString(10) @@ -47,8 +45,6 @@ func TestAccGoogleFolder_rename(t *testing.T) { } func TestAccGoogleFolder_moveParent(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, "GOOGLE_ORG") folder1DisplayName := "tf-test-" + acctest.RandString(10) diff --git a/google/resource_google_organization_policy_test.go b/google/resource_google_organization_policy_test.go index 5513c9d3..9badb5d7 100644 --- a/google/resource_google_organization_policy_test.go +++ b/google/resource_google_organization_policy_test.go @@ -16,8 +16,6 @@ var DENIED_ORG_POLICIES = []string{ } func TestAccGoogleOrganizationPolicy_boolean_enforced(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, "GOOGLE_ORG") org := os.Getenv("GOOGLE_ORG") @@ -36,8 +34,6 @@ func TestAccGoogleOrganizationPolicy_boolean_enforced(t *testing.T) { } func TestAccGoogleOrganizationPolicy_boolean_notEnforced(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, "GOOGLE_ORG") org := os.Getenv("GOOGLE_ORG") @@ -55,8 +51,6 @@ func TestAccGoogleOrganizationPolicy_boolean_notEnforced(t *testing.T) { } func TestAccGoogleOrganizationPolicy_boolean_update(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, "GOOGLE_ORG") org := os.Getenv("GOOGLE_ORG") @@ -82,8 +76,6 @@ func TestAccGoogleOrganizationPolicy_boolean_update(t *testing.T) { } func TestAccGoogleOrganizationPolicy_list_allowAll(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, "GOOGLE_ORG") org := os.Getenv("GOOGLE_ORG") @@ -101,8 +93,6 @@ func TestAccGoogleOrganizationPolicy_list_allowAll(t *testing.T) { } func TestAccGoogleOrganizationPolicy_list_allowSome(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, "GOOGLE_ORG") org := os.Getenv("GOOGLE_ORG") project := getTestProjectFromEnv() @@ -121,8 +111,6 @@ func TestAccGoogleOrganizationPolicy_list_allowSome(t *testing.T) { } func TestAccGoogleOrganizationPolicy_list_denySome(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, "GOOGLE_ORG") org := os.Getenv("GOOGLE_ORG") @@ -140,8 +128,6 @@ func TestAccGoogleOrganizationPolicy_list_denySome(t *testing.T) { } func TestAccGoogleOrganizationPolicy_list_update(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, "GOOGLE_ORG") org := os.Getenv("GOOGLE_ORG") diff --git a/google/resource_google_project_iam_binding_test.go b/google/resource_google_project_iam_binding_test.go index d319880a..74d0f33e 100644 --- a/google/resource_google_project_iam_binding_test.go +++ b/google/resource_google_project_iam_binding_test.go @@ -13,8 +13,6 @@ import ( // Test that an IAM binding can be applied to a project func TestAccGoogleProjectIamBinding_basic(t *testing.T) { - t.Parallel() - pid := "terraform-" + acctest.RandString(10) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -43,8 +41,6 @@ func TestAccGoogleProjectIamBinding_basic(t *testing.T) { // Test that multiple IAM bindings can be applied to a project, one at a time func TestAccGoogleProjectIamBinding_multiple(t *testing.T) { - t.Parallel() - pid := "terraform-" + acctest.RandString(10) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -87,8 +83,6 @@ func TestAccGoogleProjectIamBinding_multiple(t *testing.T) { // Test that multiple IAM bindings can be applied to a project all at once func TestAccGoogleProjectIamBinding_multipleAtOnce(t *testing.T) { - t.Parallel() - pid := "terraform-" + acctest.RandString(10) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -121,8 +115,6 @@ func TestAccGoogleProjectIamBinding_multipleAtOnce(t *testing.T) { // Test that an IAM binding can be updated once applied to a project func TestAccGoogleProjectIamBinding_update(t *testing.T) { - t.Parallel() - pid := "terraform-" + acctest.RandString(10) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -171,8 +163,6 @@ func TestAccGoogleProjectIamBinding_update(t *testing.T) { // Test that an IAM binding can be removed from a project func TestAccGoogleProjectIamBinding_remove(t *testing.T) { - t.Parallel() - pid := "terraform-" + acctest.RandString(10) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, diff --git a/google/resource_google_project_iam_member_test.go b/google/resource_google_project_iam_member_test.go index 4bd0d7ea..cef623ec 100644 --- a/google/resource_google_project_iam_member_test.go +++ b/google/resource_google_project_iam_member_test.go @@ -11,8 +11,6 @@ import ( // Test that an IAM binding can be applied to a project func TestAccGoogleProjectIamMember_basic(t *testing.T) { - t.Parallel() - pid := "terraform-" + acctest.RandString(10) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -41,8 +39,6 @@ func TestAccGoogleProjectIamMember_basic(t *testing.T) { // Test that multiple IAM bindings can be applied to a project func TestAccGoogleProjectIamMember_multiple(t *testing.T) { - t.Parallel() - pid := "terraform-" + acctest.RandString(10) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -81,8 +77,6 @@ func TestAccGoogleProjectIamMember_multiple(t *testing.T) { // Test that an IAM binding can be removed from a project func TestAccGoogleProjectIamMember_remove(t *testing.T) { - t.Parallel() - pid := "terraform-" + acctest.RandString(10) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, diff --git a/google/resource_google_project_iam_policy_test.go b/google/resource_google_project_iam_policy_test.go index b6ebb402..0d917ecc 100644 --- a/google/resource_google_project_iam_policy_test.go +++ b/google/resource_google_project_iam_policy_test.go @@ -222,8 +222,6 @@ func TestSubtractIamPolicy(t *testing.T) { // Test that an IAM policy can be applied to a project func TestAccGoogleProjectIamPolicy_basic(t *testing.T) { - t.Parallel() - pid := "terraform-" + acctest.RandString(10) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -258,8 +256,6 @@ func TestAccGoogleProjectIamPolicy_basic(t *testing.T) { // Test that a non-collapsed IAM policy doesn't perpetually diff func TestAccGoogleProjectIamPolicy_expanded(t *testing.T) { - t.Parallel() - pid := "terraform-" + acctest.RandString(10) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, diff --git a/google/resource_google_project_services_test.go b/google/resource_google_project_services_test.go index c97f66ab..418ad73a 100644 --- a/google/resource_google_project_services_test.go +++ b/google/resource_google_project_services_test.go @@ -17,8 +17,6 @@ import ( // Test that services can be enabled and disabled on a project func TestAccGoogleProjectServices_basic(t *testing.T) { - t.Parallel() - pid := "terraform-" + acctest.RandString(10) services1 := []string{"iam.googleapis.com", "cloudresourcemanager.googleapis.com"} services2 := []string{"cloudresourcemanager.googleapis.com"} @@ -59,8 +57,6 @@ func TestAccGoogleProjectServices_basic(t *testing.T) { // Test that services are authoritative when a project has existing // sevices not represented in config func TestAccGoogleProjectServices_authoritative(t *testing.T) { - t.Parallel() - pid := "terraform-" + acctest.RandString(10) services := []string{"cloudresourcemanager.googleapis.com"} oobService := "iam.googleapis.com" @@ -95,8 +91,6 @@ func TestAccGoogleProjectServices_authoritative(t *testing.T) { // sevices, some which are represented in the config and others // that are not func TestAccGoogleProjectServices_authoritative2(t *testing.T) { - t.Parallel() - pid := "terraform-" + acctest.RandString(10) oobServices := []string{"iam.googleapis.com", "cloudresourcemanager.googleapis.com"} services := []string{"iam.googleapis.com"} @@ -134,8 +128,6 @@ func TestAccGoogleProjectServices_authoritative2(t *testing.T) { // don't end up causing diffs when they are enabled as a side-effect of a different service's // enablement. func TestAccGoogleProjectServices_ignoreUnenablableServices(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, []string{ "GOOGLE_ORG", @@ -175,8 +167,6 @@ func TestAccGoogleProjectServices_ignoreUnenablableServices(t *testing.T) { } func TestAccGoogleProjectServices_manyServices(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, []string{ "GOOGLE_ORG", diff --git a/google/resource_google_project_test.go b/google/resource_google_project_test.go index 588e6bc3..0c6ce983 100644 --- a/google/resource_google_project_test.go +++ b/google/resource_google_project_test.go @@ -26,8 +26,6 @@ var ( // Test that a Project resource can be created without an organization func TestAccGoogleProject_createWithoutOrg(t *testing.T) { - t.Parallel() - creds := multiEnvSearch(credsEnvVars) if strings.Contains(creds, "iam.gserviceaccount.com") { t.Skip("Service accounts cannot create projects without a parent. Requires user credentials.") @@ -52,8 +50,6 @@ func TestAccGoogleProject_createWithoutOrg(t *testing.T) { // Test that a Project resource can be created and an IAM policy // associated func TestAccGoogleProject_create(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, []string{ "GOOGLE_ORG", @@ -79,8 +75,6 @@ func TestAccGoogleProject_create(t *testing.T) { // Test that a Project resource can be created with an associated // billing account func TestAccGoogleProject_createBilling(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, []string{ "GOOGLE_ORG", @@ -107,8 +101,6 @@ func TestAccGoogleProject_createBilling(t *testing.T) { // Test that a Project resource can be created with labels func TestAccGoogleProject_createLabels(t *testing.T) { - t.Parallel() - pid := "terraform-" + acctest.RandString(10) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -127,8 +119,6 @@ func TestAccGoogleProject_createLabels(t *testing.T) { // Test that a Project resource can be created and updated // with billing account information func TestAccGoogleProject_updateBilling(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, []string{ "GOOGLE_ORG", @@ -179,8 +169,6 @@ func TestAccGoogleProject_updateBilling(t *testing.T) { // Test that a Project resource merges the IAM policies that already // exist, and won't lock people out. func TestAccGoogleProject_merge(t *testing.T) { - t.Parallel() - pid := "terraform-" + acctest.RandString(10) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -208,8 +196,6 @@ func TestAccGoogleProject_merge(t *testing.T) { // Test that a Project resource can be updated with labels func TestAccGoogleProject_updateLabels(t *testing.T) { - t.Parallel() - pid := "terraform-" + acctest.RandString(10) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, diff --git a/google/resource_google_service_account_test.go b/google/resource_google_service_account_test.go index 4ac57c6f..8c95efb9 100644 --- a/google/resource_google_service_account_test.go +++ b/google/resource_google_service_account_test.go @@ -11,8 +11,6 @@ import ( // Test that a service account resource can be created, updated, and destroyed func TestAccGoogleServiceAccount_basic(t *testing.T) { - t.Parallel() - accountId := "a" + acctest.RandString(10) displayName := "Terraform Test" displayName2 := "Terraform Test Update" @@ -41,8 +39,6 @@ func TestAccGoogleServiceAccount_basic(t *testing.T) { // Test that a service account resource can be created with a policy, updated, // and destroyed. func TestAccGoogleServiceAccount_createPolicy(t *testing.T) { - t.Parallel() - accountId := "a" + acctest.RandString(10) displayName := "Terraform Test" resource.Test(t, resource.TestCase{ diff --git a/google/resource_logging_billing_account_sink_test.go b/google/resource_logging_billing_account_sink_test.go index 91a2f00d..9933a408 100644 --- a/google/resource_logging_billing_account_sink_test.go +++ b/google/resource_logging_billing_account_sink_test.go @@ -12,8 +12,6 @@ import ( ) func TestAccLoggingBillingAccountSink_basic(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, "GOOGLE_BILLING_ACCOUNT") sinkName := "tf-test-sink-" + acctest.RandString(10) @@ -39,8 +37,6 @@ func TestAccLoggingBillingAccountSink_basic(t *testing.T) { } func TestAccLoggingBillingAccountSink_update(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, "GOOGLE_BILLING_ACCOUNT") sinkName := "tf-test-sink-" + acctest.RandString(10) diff --git a/google/resource_logging_folder_sink_test.go b/google/resource_logging_folder_sink_test.go index d29e84d6..cfecc402 100644 --- a/google/resource_logging_folder_sink_test.go +++ b/google/resource_logging_folder_sink_test.go @@ -13,8 +13,6 @@ import ( ) func TestAccLoggingFolderSink_basic(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, "GOOGLE_ORG") sinkName := "tf-test-sink-" + acctest.RandString(10) @@ -41,8 +39,6 @@ func TestAccLoggingFolderSink_basic(t *testing.T) { } func TestAccLoggingFolderSink_folderAcceptsFullFolderPath(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, "GOOGLE_ORG") sinkName := "tf-test-sink-" + acctest.RandString(10) @@ -69,8 +65,6 @@ func TestAccLoggingFolderSink_folderAcceptsFullFolderPath(t *testing.T) { } func TestAccLoggingFolderSink_update(t *testing.T) { - t.Parallel() - skipIfEnvNotSet(t, "GOOGLE_ORG") sinkName := "tf-test-sink-" + acctest.RandString(10) diff --git a/google/resource_logging_project_sink_test.go b/google/resource_logging_project_sink_test.go index bd6d01b7..8249ca16 100644 --- a/google/resource_logging_project_sink_test.go +++ b/google/resource_logging_project_sink_test.go @@ -11,8 +11,6 @@ import ( ) func TestAccLoggingProjectSink_basic(t *testing.T) { - t.Parallel() - sinkName := "tf-test-sink-" + acctest.RandString(10) bucketName := "tf-test-sink-bucket-" + acctest.RandString(10) @@ -35,8 +33,6 @@ func TestAccLoggingProjectSink_basic(t *testing.T) { } func TestAccLoggingProjectSink_uniqueWriter(t *testing.T) { - t.Parallel() - sinkName := "tf-test-sink-" + acctest.RandString(10) bucketName := "tf-test-sink-bucket-" + acctest.RandString(10) @@ -59,8 +55,6 @@ func TestAccLoggingProjectSink_uniqueWriter(t *testing.T) { } func TestAccLoggingProjectSink_updatePreservesUniqueWriter(t *testing.T) { - t.Parallel() - sinkName := "tf-test-sink-" + acctest.RandString(10) bucketName := "tf-test-sink-bucket-" + acctest.RandString(10) updatedBucketName := "tf-test-sink-bucket-" + acctest.RandString(10) diff --git a/google/resource_pubsub_subscription_test.go b/google/resource_pubsub_subscription_test.go index c43755f1..7b779cfb 100644 --- a/google/resource_pubsub_subscription_test.go +++ b/google/resource_pubsub_subscription_test.go @@ -10,8 +10,6 @@ import ( ) func TestAccPubsubSubscription_basic(t *testing.T) { - t.Parallel() - topic := fmt.Sprintf("tf-test-topic-%s", acctest.RandString(10)) subscription := fmt.Sprintf("tf-test-sub-%s", acctest.RandString(10)) diff --git a/google/resource_pubsub_topic_test.go b/google/resource_pubsub_topic_test.go index 7404cfc2..1d03aae0 100644 --- a/google/resource_pubsub_topic_test.go +++ b/google/resource_pubsub_topic_test.go @@ -10,7 +10,6 @@ import ( ) func TestAccPubsubTopicCreate(t *testing.T) { - t.Parallel() resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, diff --git a/google/resource_runtimeconfig_config_test.go b/google/resource_runtimeconfig_config_test.go index 41be39e9..e039df27 100644 --- a/google/resource_runtimeconfig_config_test.go +++ b/google/resource_runtimeconfig_config_test.go @@ -11,8 +11,6 @@ import ( ) func TestAccRuntimeconfigConfig_basic(t *testing.T) { - t.Parallel() - var runtimeConfig runtimeconfig.RuntimeConfig configName := fmt.Sprintf("runtimeconfig-test-%s", acctest.RandString(10)) description := "my test description" @@ -35,8 +33,6 @@ func TestAccRuntimeconfigConfig_basic(t *testing.T) { } func TestAccRuntimeconfig_update(t *testing.T) { - t.Parallel() - var runtimeConfig runtimeconfig.RuntimeConfig configName := fmt.Sprintf("runtimeconfig-test-%s", acctest.RandString(10)) firstDescription := "my test description" @@ -67,8 +63,6 @@ func TestAccRuntimeconfig_update(t *testing.T) { } func TestAccRuntimeconfig_updateEmptyDescription(t *testing.T) { - t.Parallel() - var runtimeConfig runtimeconfig.RuntimeConfig configName := fmt.Sprintf("runtimeconfig-test-%s", acctest.RandString(10)) description := "my test description" diff --git a/google/resource_runtimeconfig_variable_test.go b/google/resource_runtimeconfig_variable_test.go index f273ba86..975d62c2 100644 --- a/google/resource_runtimeconfig_variable_test.go +++ b/google/resource_runtimeconfig_variable_test.go @@ -13,8 +13,6 @@ import ( ) func TestAccRuntimeconfigVariable_basic(t *testing.T) { - t.Parallel() - var variable runtimeconfig.Variable varName := fmt.Sprintf("variable-test-%s", acctest.RandString(10)) @@ -39,8 +37,6 @@ func TestAccRuntimeconfigVariable_basic(t *testing.T) { } func TestAccRuntimeconfigVariable_basicUpdate(t *testing.T) { - t.Parallel() - var variable runtimeconfig.Variable configName := fmt.Sprintf("some-name-%s", acctest.RandString(10)) @@ -73,8 +69,6 @@ func TestAccRuntimeconfigVariable_basicUpdate(t *testing.T) { } func TestAccRuntimeconfigVariable_basicValue(t *testing.T) { - t.Parallel() - var variable runtimeconfig.Variable varName := fmt.Sprintf("variable-test-%s", acctest.RandString(10)) @@ -99,8 +93,6 @@ func TestAccRuntimeconfigVariable_basicValue(t *testing.T) { } func TestAccRuntimeconfigVariable_errorsOnBothValueAndText(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -114,8 +106,6 @@ func TestAccRuntimeconfigVariable_errorsOnBothValueAndText(t *testing.T) { } func TestAccRuntimeconfigVariable_errorsOnMissingValueAndText(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/google/resource_source_repos_repository_test.go b/google/resource_source_repos_repository_test.go index c534593d..f0cc43b5 100644 --- a/google/resource_source_repos_repository_test.go +++ b/google/resource_source_repos_repository_test.go @@ -10,8 +10,6 @@ import ( ) func TestAccSourceRepoRepository_basic(t *testing.T) { - t.Parallel() - repositoryName := fmt.Sprintf("source-repo-repository-test-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, diff --git a/google/resource_spanner_database_test.go b/google/resource_spanner_database_test.go index 6ef962d5..0361f6a7 100644 --- a/google/resource_spanner_database_test.go +++ b/google/resource_spanner_database_test.go @@ -85,8 +85,6 @@ func expectInvalidSpannerDbImportId(t *testing.T, id *spannerDatabaseId, e error // Acceptance Tests func TestAccSpannerDatabase_basic(t *testing.T) { - t.Parallel() - var db spanner.Database rnd := acctest.RandString(10) resource.Test(t, resource.TestCase{ @@ -110,8 +108,6 @@ func TestAccSpannerDatabase_basic(t *testing.T) { } func TestAccSpannerDatabase_basicWithInitialDDL(t *testing.T) { - t.Parallel() - var db spanner.Database rnd := acctest.RandString(10) resource.Test(t, resource.TestCase{ @@ -132,8 +128,6 @@ func TestAccSpannerDatabase_basicWithInitialDDL(t *testing.T) { } func TestAccSpannerDatabase_duplicateNameError(t *testing.T) { - t.Parallel() - var db spanner.Database rnd := acctest.RandString(10) dbName := fmt.Sprintf("spanner-test-%s", rnd) diff --git a/google/resource_spanner_instance_test.go b/google/resource_spanner_instance_test.go index 410c72f9..31ea09c0 100644 --- a/google/resource_spanner_instance_test.go +++ b/google/resource_spanner_instance_test.go @@ -139,8 +139,6 @@ func expectEquals(t *testing.T, expected, actual string) { // Acceptance Tests func TestAccSpannerInstance_basic(t *testing.T) { - t.Parallel() - var instance spanner.Instance rnd := acctest.RandString(10) idName := fmt.Sprintf("spanner-test-%s", rnd) @@ -165,8 +163,6 @@ func TestAccSpannerInstance_basic(t *testing.T) { } func TestAccSpannerInstance_basicWithAutogenName(t *testing.T) { - t.Parallel() - var instance spanner.Instance rnd := acctest.RandString(10) displayName := fmt.Sprintf("spanner-test-%s-dname", rnd) @@ -189,8 +185,6 @@ func TestAccSpannerInstance_basicWithAutogenName(t *testing.T) { } func TestAccSpannerInstance_duplicateNameError(t *testing.T) { - t.Parallel() - var instance spanner.Instance rnd := acctest.RandString(10) idName := fmt.Sprintf("spanner-test-%s", rnd) @@ -215,8 +209,6 @@ func TestAccSpannerInstance_duplicateNameError(t *testing.T) { } func TestAccSpannerInstance_update(t *testing.T) { - t.Parallel() - var instance spanner.Instance rnd := acctest.RandString(10) dName1 := fmt.Sprintf("spanner-dname1-%s", rnd) diff --git a/google/resource_sql_database_instance_test.go b/google/resource_sql_database_instance_test.go index 4853a2b9..168e65b1 100644 --- a/google/resource_sql_database_instance_test.go +++ b/google/resource_sql_database_instance_test.go @@ -121,8 +121,6 @@ func testSweepDatabases(region string) error { } func TestAccGoogleSqlDatabaseInstance_basic(t *testing.T) { - t.Parallel() - var instance sqladmin.DatabaseInstance databaseID := acctest.RandInt() @@ -146,8 +144,6 @@ func TestAccGoogleSqlDatabaseInstance_basic(t *testing.T) { } func TestAccGoogleSqlDatabaseInstance_basic2(t *testing.T) { - t.Parallel() - var instance sqladmin.DatabaseInstance resource.Test(t, resource.TestCase{ @@ -169,8 +165,6 @@ func TestAccGoogleSqlDatabaseInstance_basic2(t *testing.T) { } func TestAccGoogleSqlDatabaseInstance_basic3(t *testing.T) { - t.Parallel() - var instance sqladmin.DatabaseInstance databaseID := acctest.RandInt() @@ -196,8 +190,6 @@ func TestAccGoogleSqlDatabaseInstance_basic3(t *testing.T) { } func TestAccGoogleSqlDatabaseInstance_dontDeleteDefaultUserOnReplica(t *testing.T) { - t.Parallel() - var instance sqladmin.DatabaseInstance databaseName := "sql-instance-test-" + acctest.RandString(10) failoverName := "sql-instance-test-failover-" + acctest.RandString(10) @@ -245,8 +237,6 @@ func TestAccGoogleSqlDatabaseInstance_dontDeleteDefaultUserOnReplica(t *testing. } func TestAccGoogleSqlDatabaseInstance_settings_basic(t *testing.T) { - t.Parallel() - var instance sqladmin.DatabaseInstance databaseID := acctest.RandInt() @@ -270,8 +260,6 @@ func TestAccGoogleSqlDatabaseInstance_settings_basic(t *testing.T) { } func TestAccGoogleSqlDatabaseInstance_slave(t *testing.T) { - t.Parallel() - var instance sqladmin.DatabaseInstance masterID := acctest.RandInt() slaveID := acctest.RandInt() @@ -300,8 +288,6 @@ func TestAccGoogleSqlDatabaseInstance_slave(t *testing.T) { } func TestAccGoogleSqlDatabaseInstance_diskspecs(t *testing.T) { - t.Parallel() - var instance sqladmin.DatabaseInstance masterID := acctest.RandInt() @@ -325,8 +311,6 @@ func TestAccGoogleSqlDatabaseInstance_diskspecs(t *testing.T) { } func TestAccGoogleSqlDatabaseInstance_maintenance(t *testing.T) { - t.Parallel() - var instance sqladmin.DatabaseInstance masterID := acctest.RandInt() @@ -350,8 +334,6 @@ func TestAccGoogleSqlDatabaseInstance_maintenance(t *testing.T) { } func TestAccGoogleSqlDatabaseInstance_settings_upgrade(t *testing.T) { - t.Parallel() - var instance sqladmin.DatabaseInstance databaseID := acctest.RandInt() @@ -385,8 +367,6 @@ func TestAccGoogleSqlDatabaseInstance_settings_upgrade(t *testing.T) { } func TestAccGoogleSqlDatabaseInstance_settings_downgrade(t *testing.T) { - t.Parallel() - var instance sqladmin.DatabaseInstance databaseID := acctest.RandInt() @@ -421,10 +401,7 @@ func TestAccGoogleSqlDatabaseInstance_settings_downgrade(t *testing.T) { // GH-4222 func TestAccGoogleSqlDatabaseInstance_authNets(t *testing.T) { - t.Parallel( // var instance sqladmin.DatabaseInstance - ) - databaseID := acctest.RandInt() resource.Test(t, resource.TestCase{ @@ -451,8 +428,6 @@ func TestAccGoogleSqlDatabaseInstance_authNets(t *testing.T) { // Tests that a SQL instance can be referenced from more than one other resource without // throwing an error during provisioning, see #9018. func TestAccGoogleSqlDatabaseInstance_multipleOperations(t *testing.T) { - t.Parallel() - databaseID, instanceID, userID := acctest.RandString(8), acctest.RandString(8), acctest.RandString(8) resource.Test(t, resource.TestCase{ diff --git a/google/resource_sql_database_test.go b/google/resource_sql_database_test.go index 6c267065..8e2ac6d1 100644 --- a/google/resource_sql_database_test.go +++ b/google/resource_sql_database_test.go @@ -12,8 +12,6 @@ import ( ) func TestAccGoogleSqlDatabase_basic(t *testing.T) { - t.Parallel() - var database sqladmin.Database resource.Test(t, resource.TestCase{ @@ -36,8 +34,6 @@ func TestAccGoogleSqlDatabase_basic(t *testing.T) { } func TestAccGoogleSqlDatabase_update(t *testing.T) { - t.Parallel() - var database sqladmin.Database instance_name := acctest.RandString(10) diff --git a/google/resource_sql_user_test.go b/google/resource_sql_user_test.go index 87fc0f8e..0b91b398 100644 --- a/google/resource_sql_user_test.go +++ b/google/resource_sql_user_test.go @@ -10,8 +10,6 @@ import ( ) func TestAccGoogleSqlUser_basic(t *testing.T) { - t.Parallel() - user := acctest.RandString(10) instance := acctest.RandString(10) @@ -31,8 +29,6 @@ func TestAccGoogleSqlUser_basic(t *testing.T) { } func TestAccGoogleSqlUser_update(t *testing.T) { - t.Parallel() - user := acctest.RandString(10) instance := acctest.RandString(10) diff --git a/google/resource_storage_bucket_acl_test.go b/google/resource_storage_bucket_acl_test.go index 341700a3..e28af203 100644 --- a/google/resource_storage_bucket_acl_test.go +++ b/google/resource_storage_bucket_acl_test.go @@ -26,8 +26,6 @@ func testBucketName() string { } func TestAccGoogleStorageBucketAcl_basic(t *testing.T) { - t.Parallel() - bucketName := testBucketName() skipIfEnvNotSet(t, "GOOGLE_PROJECT_NUMBER") resource.Test(t, resource.TestCase{ @@ -47,8 +45,6 @@ func TestAccGoogleStorageBucketAcl_basic(t *testing.T) { } func TestAccGoogleStorageBucketAcl_upgrade(t *testing.T) { - t.Parallel() - bucketName := testBucketName() skipIfEnvNotSet(t, "GOOGLE_PROJECT_NUMBER") resource.Test(t, resource.TestCase{ @@ -85,8 +81,6 @@ func TestAccGoogleStorageBucketAcl_upgrade(t *testing.T) { } func TestAccGoogleStorageBucketAcl_downgrade(t *testing.T) { - t.Parallel() - bucketName := testBucketName() skipIfEnvNotSet(t, "GOOGLE_PROJECT_NUMBER") resource.Test(t, resource.TestCase{ @@ -123,8 +117,6 @@ func TestAccGoogleStorageBucketAcl_downgrade(t *testing.T) { } func TestAccGoogleStorageBucketAcl_predefined(t *testing.T) { - t.Parallel() - bucketName := testBucketName() resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, diff --git a/google/resource_storage_bucket_object_test.go b/google/resource_storage_bucket_object_test.go index b548db5d..5fe80401 100644 --- a/google/resource_storage_bucket_object_test.go +++ b/google/resource_storage_bucket_object_test.go @@ -19,8 +19,6 @@ var objectName = "tf-gce-test" var content = "now this is content!" func TestAccGoogleStorageObject_basic(t *testing.T) { - t.Parallel() - bucketName := testBucketName() data := []byte("data data data") h := md5.New() @@ -47,8 +45,6 @@ func TestAccGoogleStorageObject_basic(t *testing.T) { } func TestAccGoogleStorageObject_content(t *testing.T) { - t.Parallel() - bucketName := testBucketName() data := []byte(content) h := md5.New() @@ -81,8 +77,6 @@ func TestAccGoogleStorageObject_content(t *testing.T) { } func TestAccGoogleStorageObject_withContentCharacteristics(t *testing.T) { - t.Parallel() - bucketName := testBucketName() data := []byte(content) h := md5.New() @@ -121,8 +115,6 @@ func TestAccGoogleStorageObject_withContentCharacteristics(t *testing.T) { } func TestAccGoogleStorageObject_cacheControl(t *testing.T) { - t.Parallel() - bucketName := testBucketName() data := []byte(content) h := md5.New() @@ -154,8 +146,6 @@ func TestAccGoogleStorageObject_cacheControl(t *testing.T) { } func TestAccGoogleStorageObject_storageClass(t *testing.T) { - t.Parallel() - bucketName := testBucketName() data := []byte(content) h := md5.New() diff --git a/google/resource_storage_bucket_test.go b/google/resource_storage_bucket_test.go index 7995f56f..e480d304 100644 --- a/google/resource_storage_bucket_test.go +++ b/google/resource_storage_bucket_test.go @@ -15,8 +15,6 @@ import ( ) func TestAccStorageBucket_basic(t *testing.T) { - t.Parallel() - var bucket storage.Bucket bucketName := fmt.Sprintf("tf-test-acl-bucket-%d", acctest.RandInt()) @@ -41,8 +39,6 @@ func TestAccStorageBucket_basic(t *testing.T) { } func TestAccStorageBucket_lowercaseLocation(t *testing.T) { - t.Parallel() - var bucket storage.Bucket bucketName := fmt.Sprintf("tf-test-acl-bucket-%d", acctest.RandInt()) @@ -63,8 +59,6 @@ func TestAccStorageBucket_lowercaseLocation(t *testing.T) { } func TestAccStorageBucket_customAttributes(t *testing.T) { - t.Parallel() - var bucket storage.Bucket bucketName := fmt.Sprintf("tf-test-acl-bucket-%d", acctest.RandInt()) @@ -89,8 +83,6 @@ func TestAccStorageBucket_customAttributes(t *testing.T) { } func TestAccStorageBucket_lifecycleRules(t *testing.T) { - t.Parallel() - var bucket storage.Bucket bucketName := fmt.Sprintf("tf-test-acc-bucket-%d", acctest.RandInt()) @@ -137,8 +129,6 @@ func TestAccStorageBucket_lifecycleRules(t *testing.T) { } func TestAccStorageBucket_storageClass(t *testing.T) { - t.Parallel() - var bucket storage.Bucket bucketName := fmt.Sprintf("tf-test-acc-bucket-%d", acctest.RandInt()) @@ -181,8 +171,6 @@ func TestAccStorageBucket_storageClass(t *testing.T) { } func TestAccStorageBucket_update(t *testing.T) { - t.Parallel() - var bucket storage.Bucket bucketName := fmt.Sprintf("tf-test-acl-bucket-%d", acctest.RandInt()) @@ -298,8 +286,6 @@ func TestAccStorageBucket_update(t *testing.T) { } func TestAccStorageBucket_forceDestroy(t *testing.T) { - t.Parallel() - var bucket storage.Bucket bucketName := fmt.Sprintf("tf-test-acl-bucket-%d", acctest.RandInt()) @@ -332,8 +318,6 @@ func TestAccStorageBucket_forceDestroy(t *testing.T) { } func TestAccStorageBucket_versioning(t *testing.T) { - t.Parallel() - var bucket storage.Bucket bucketName := fmt.Sprintf("tf-test-acl-bucket-%d", acctest.RandInt()) @@ -358,8 +342,6 @@ func TestAccStorageBucket_versioning(t *testing.T) { } func TestAccStorageBucket_cors(t *testing.T) { - t.Parallel() - var bucket storage.Bucket bucketName := fmt.Sprintf("tf-test-acl-bucket-%d", acctest.RandInt()) diff --git a/google/resource_storage_object_acl_test.go b/google/resource_storage_object_acl_test.go index ac99b250..b3dfcd51 100644 --- a/google/resource_storage_object_acl_test.go +++ b/google/resource_storage_object_acl_test.go @@ -20,8 +20,6 @@ func testAclObjectName() string { } func TestAccGoogleStorageObjectAcl_basic(t *testing.T) { - t.Parallel() - bucketName := testBucketName() objectName := testAclObjectName() objectData := []byte("data data data") @@ -50,8 +48,6 @@ func TestAccGoogleStorageObjectAcl_basic(t *testing.T) { } func TestAccGoogleStorageObjectAcl_upgrade(t *testing.T) { - t.Parallel() - bucketName := testBucketName() objectName := testAclObjectName() objectData := []byte("data data data") @@ -102,8 +98,6 @@ func TestAccGoogleStorageObjectAcl_upgrade(t *testing.T) { } func TestAccGoogleStorageObjectAcl_downgrade(t *testing.T) { - t.Parallel() - bucketName := testBucketName() objectName := testAclObjectName() objectData := []byte("data data data") @@ -154,8 +148,6 @@ func TestAccGoogleStorageObjectAcl_downgrade(t *testing.T) { } func TestAccGoogleStorageObjectAcl_predefined(t *testing.T) { - t.Parallel() - bucketName := testBucketName() objectName := testAclObjectName() objectData := []byte("data data data")