0.12 Test config fixes (#3139)

<!-- This change is generated by MagicModules. -->
/cc @rileykarson
This commit is contained in:
The Magician 2019-02-27 13:45:18 -08:00 committed by Riley Karson
parent 42b2d22ae5
commit 6c562d7cea
3 changed files with 4 additions and 4 deletions

View File

@ -169,7 +169,7 @@ resource "google_cloudiot_registry" "foobar" {
} }
credentials { credentials {
"public_key_certificate" = { public_key_certificate = {
format = "X509_CERTIFICATE_PEM" format = "X509_CERTIFICATE_PEM"
certificate = "${file("test-fixtures/rsa_cert.pem")}" certificate = "${file("test-fixtures/rsa_cert.pem")}"
} }

View File

@ -279,7 +279,7 @@ resource "google_compute_instance" "test" {
} }
resource "google_compute_attached_disk" "test" { resource "google_compute_attached_disk" "test" {
count = "${google_compute_disk.many.count}" count = length(google_compute_disk.many)
disk = "${google_compute_disk.many.*.self_link[count.index]}" disk = "${google_compute_disk.many.*.self_link[count.index]}"
instance = "${google_compute_instance.test.self_link}" instance = "${google_compute_instance.test.self_link}"
}`, diskPrefix, count, instanceName) }`, diskPrefix, count, instanceName)

View File

@ -484,7 +484,7 @@ func testAccComputeInstanceGroup_update(instance string) string {
description = "Terraform test instance group" description = "Terraform test instance group"
name = "%s" name = "%s"
zone = "us-central1-c" zone = "us-central1-c"
instances = ["${google_compute_instance.ig_instance.*.self_link}"] instances = google_compute_instance.ig_instance.*.self_link
named_port { named_port {
name = "http" name = "http"
port = "8080" port = "8080"
@ -526,7 +526,7 @@ func testAccComputeInstanceGroup_update2(instance string) string {
description = "Terraform test instance group" description = "Terraform test instance group"
name = "%s" name = "%s"
zone = "us-central1-c" zone = "us-central1-c"
instances = ["${google_compute_instance.ig_instance.*.self_link}"] instances = google_compute_instance.ig_instance.*.self_link
named_port { named_port {
name = "http" name = "http"