From fea30f363227fb2c405053e997dfb1526bdd3a3f Mon Sep 17 00:00:00 2001 From: The Magician Date: Fri, 4 Jan 2019 13:01:42 -0800 Subject: [PATCH] Fix some formatting to be 0.12-ready (#313) /cc @rileykarson --- google-beta/resource_compute_autoscaler_test.go | 8 ++++---- google-beta/resource_compute_instance_group_test.go | 2 +- google-beta/resource_compute_instance_test.go | 2 -- google-beta/resource_compute_region_autoscaler_test.go | 4 ++-- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/google-beta/resource_compute_autoscaler_test.go b/google-beta/resource_compute_autoscaler_test.go index 7940be6fb3a..993bb5190d0 100644 --- a/google-beta/resource_compute_autoscaler_test.go +++ b/google-beta/resource_compute_autoscaler_test.go @@ -259,7 +259,7 @@ resource "google_compute_autoscaler" "foobar" { max_replicas = 5 min_replicas = 1 cooldown_period = 60 - cpu_utilization = { + cpu_utilization { target = 0.5 } } @@ -279,7 +279,7 @@ resource "google_compute_autoscaler" "foobar" { max_replicas = 10 min_replicas = 1 cooldown_period = 60 - cpu_utilization = { + cpu_utilization { target = 0.5 } } @@ -299,10 +299,10 @@ resource "google_compute_autoscaler" "foobar" { max_replicas = 10 min_replicas = 1 cooldown_period = 60 - cpu_utilization = { + cpu_utilization { target = 0.5 } - load_balancing_utilization = { + load_balancing_utilization { target = 0.5 } metric { diff --git a/google-beta/resource_compute_instance_group_test.go b/google-beta/resource_compute_instance_group_test.go index ce536ddc3b2..74f79e98668 100644 --- a/google-beta/resource_compute_instance_group_test.go +++ b/google-beta/resource_compute_instance_group_test.go @@ -257,7 +257,7 @@ func testAccComputeInstanceGroup_updated(n string, size int64, instanceGroup *co // Cannot check the target pool as the instance creation is asynchronous. However, can // check the target_size. if instanceGroup.Size != size { - return fmt.Errorf("instance count incorrect") + return fmt.Errorf("instance count incorrect. saw real value %v instead of expected value %v", instanceGroup.Size, size) } return nil diff --git a/google-beta/resource_compute_instance_test.go b/google-beta/resource_compute_instance_test.go index 561d527de5c..0a23538b07a 100644 --- a/google-beta/resource_compute_instance_test.go +++ b/google-beta/resource_compute_instance_test.go @@ -2860,8 +2860,6 @@ resource "google_compute_instance" "foobar" { subnetwork_range_name = "${google_compute_subnetwork.inst-test-subnetwork.secondary_ip_range.1.range_name}" ip_cidr_range = "10.1.0.0/20" } - ] - } }`, network, subnet, instance) } diff --git a/google-beta/resource_compute_region_autoscaler_test.go b/google-beta/resource_compute_region_autoscaler_test.go index 7ca62a39189..19d5326a2b7 100644 --- a/google-beta/resource_compute_region_autoscaler_test.go +++ b/google-beta/resource_compute_region_autoscaler_test.go @@ -186,7 +186,7 @@ resource "google_compute_region_autoscaler" "foobar" { max_replicas = 5 min_replicas = 1 cooldown_period = 60 - cpu_utilization = { + cpu_utilization { target = 0.5 } } @@ -250,7 +250,7 @@ resource "google_compute_region_autoscaler" "foobar" { max_replicas = 10 min_replicas = 1 cooldown_period = 60 - cpu_utilization = { + cpu_utilization { target = 0.5 } }