mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-01 07:42:40 +00:00
Revert "Add t.Parallel to all acceptance tests (#558)"
This reverts commit 42de44592f
. It appears
there might be thread-safety issues as panics have started occuring when
parallism is ramped up. Reverting for now while investigating.
This commit is contained in:
parent
42de44592f
commit
8ab9d96d25
|
@ -9,8 +9,6 @@ import (
|
|||
)
|
||||
|
||||
func TestAccDataSourceDnsManagedZone_basic(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
resource.Test(t, resource.TestCase{
|
||||
PreCheck: func() { testAccPreCheck(t) },
|
||||
Providers: testAccProviders,
|
||||
|
|
|
@ -7,8 +7,6 @@ import (
|
|||
)
|
||||
|
||||
func TestAccDataSourceGoogleClientConfig_basic(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
resourceName := "data.google_client_config.current"
|
||||
|
||||
resource.Test(t, resource.TestCase{
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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) },
|
||||
|
|
|
@ -9,8 +9,6 @@ import (
|
|||
)
|
||||
|
||||
func TestAccDataSourceGoogleSubnetwork(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
resource.Test(t, resource.TestCase{
|
||||
PreCheck: func() { testAccPreCheck(t) },
|
||||
Providers: testAccProviders,
|
||||
|
|
|
@ -11,8 +11,6 @@ import (
|
|||
)
|
||||
|
||||
func TestAccGoogleComputeZones_basic(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
resource.Test(t, resource.TestCase{
|
||||
PreCheck: func() { testAccPreCheck(t) },
|
||||
Providers: testAccProviders,
|
||||
|
|
|
@ -11,8 +11,6 @@ import (
|
|||
)
|
||||
|
||||
func TestAccGoogleContainerEngineVersions_basic(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
resource.Test(t, resource.TestCase{
|
||||
PreCheck: func() { testAccPreCheck(t) },
|
||||
Providers: testAccProviders,
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -7,8 +7,6 @@ import (
|
|||
)
|
||||
|
||||
func TestAccComputeAddress_importBasic(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
resourceName := "google_compute_address.foobar"
|
||||
|
||||
resource.Test(t, resource.TestCase{
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -7,8 +7,6 @@ import (
|
|||
)
|
||||
|
||||
func TestAccComputeGlobalAddress_importBasic(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
resourceName := "google_compute_global_address.foobar"
|
||||
|
||||
resource.Test(t, resource.TestCase{
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -8,8 +8,6 @@ import (
|
|||
)
|
||||
|
||||
func TestAccComputeProjectMetadataItem_importBasic(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
key := "myKey" + acctest.RandString(10)
|
||||
|
||||
resource.Test(t, resource.TestCase{
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -7,8 +7,6 @@ import (
|
|||
)
|
||||
|
||||
func TestAccComputeTargetPool_importBasic(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
resourceName := "google_compute_target_pool.foobar"
|
||||
|
||||
resource.Test(t, resource.TestCase{
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -7,8 +7,6 @@ import (
|
|||
)
|
||||
|
||||
func TestAccDnsManagedZone_importBasic(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
resourceName := "google_dns_managed_zone.foobar"
|
||||
|
||||
resource.Test(t, resource.TestCase{
|
||||
|
|
|
@ -8,8 +8,6 @@ import (
|
|||
)
|
||||
|
||||
func TestAccGoogleFolder_import(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
skipIfEnvNotSet(t, "GOOGLE_ORG")
|
||||
|
||||
folderDisplayName := "tf-test-" + acctest.RandString(10)
|
||||
|
|
|
@ -7,8 +7,6 @@ import (
|
|||
)
|
||||
|
||||
func TestAccGoogleOrganizationPolicy_import(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
skipIfEnvNotSet(t, "GOOGLE_ORG")
|
||||
org := os.Getenv("GOOGLE_ORG")
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
|
@ -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" {
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -9,8 +9,6 @@ import (
|
|||
)
|
||||
|
||||
func TestAccGoogleSqlDatabase_importBasic(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
resourceName := "google_sql_database.database"
|
||||
|
||||
resource.Test(t, resource.TestCase{
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
|
@ -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))
|
||||
}
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
|
@ -11,8 +11,6 @@ import (
|
|||
)
|
||||
|
||||
func TestAccComputeNetworkPeering_basic(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
var peering compute.NetworkPeering
|
||||
|
||||
resource.Test(t, resource.TestCase{
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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) },
|
||||
|
|
|
@ -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) },
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -10,7 +10,6 @@ import (
|
|||
)
|
||||
|
||||
func TestAccComputeTargetPool_basic(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
resource.Test(t, resource.TestCase{
|
||||
PreCheck: func() { testAccPreCheck(t) },
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -12,8 +12,6 @@ import (
|
|||
)
|
||||
|
||||
func TestAccComputeVpnGateway_basic(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
resource.Test(t, resource.TestCase{
|
||||
PreCheck: func() { testAccPreCheck(t) },
|
||||
Providers: testAccProviders,
|
||||
|
|
|
@ -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) },
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
|
@ -11,8 +11,6 @@ import (
|
|||
)
|
||||
|
||||
func TestAccDnsManagedZone_basic(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
var zone dns.ManagedZone
|
||||
|
||||
resource.Test(t, resource.TestCase{
|
||||
|
|
|
@ -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) },
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
|
|
@ -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) },
|
||||
|
|
|
@ -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) },
|
||||
|
|
|
@ -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) },
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user