From 53d6c58e7d85dac24faa29d48e7b70341fcff8fc Mon Sep 17 00:00:00 2001 From: The Magician Date: Tue, 14 Jan 2020 14:19:18 -0800 Subject: [PATCH] Remove iam bindings from cloudIoT registry tests (#1642) Signed-off-by: Modular Magician Co-authored-by: emily --- .../resource_cloudiot_registry_test.go | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/google-beta/resource_cloudiot_registry_test.go b/google-beta/resource_cloudiot_registry_test.go index 306347add3..83686673ac 100644 --- a/google-beta/resource_cloudiot_registry_test.go +++ b/google-beta/resource_cloudiot_registry_test.go @@ -186,11 +186,6 @@ resource "google_cloudiot_registry" "foobar" { func testAccCloudIoTRegistry_extended(registryName string) string { return fmt.Sprintf(` -resource "google_project_iam_binding" "cloud-iot-iam-binding" { - members = ["serviceAccount:cloud-iot@system.gserviceaccount.com"] - role = "roles/pubsub.publisher" -} - resource "google_pubsub_topic" "default-devicestatus" { name = "psregistry-test-devicestatus-%s" } @@ -200,8 +195,6 @@ resource "google_pubsub_topic" "default-telemetry" { } resource "google_cloudiot_registry" "foobar" { - depends_on = [google_project_iam_binding.cloud-iot-iam-binding] - name = "%s" event_notification_configs { @@ -234,18 +227,11 @@ resource "google_cloudiot_registry" "foobar" { func testAccCloudIoTRegistry_singleEventNotificationConfigs(topic, registryName string) string { return fmt.Sprintf(` -resource "google_project_iam_binding" "cloud-iot-iam-binding" { - members = ["serviceAccount:cloud-iot@system.gserviceaccount.com"] - role = "roles/pubsub.publisher" -} - resource "google_pubsub_topic" "event-topic-1" { name = "%s" } resource "google_cloudiot_registry" "foobar" { - depends_on = [google_project_iam_binding.cloud-iot-iam-binding] - name = "%s" event_notification_configs { @@ -258,11 +244,6 @@ resource "google_cloudiot_registry" "foobar" { func testAccCloudIoTRegistry_multipleEventNotificationConfigs(topic, registryName string) string { return fmt.Sprintf(` -resource "google_project_iam_binding" "cloud-iot-iam-binding" { - members = ["serviceAccount:cloud-iot@system.gserviceaccount.com"] - role = "roles/pubsub.publisher" -} - resource "google_pubsub_topic" "event-topic-1" { name = "%s" } @@ -272,8 +253,6 @@ resource "google_pubsub_topic" "event-topic-2" { } resource "google_cloudiot_registry" "foobar" { - depends_on = [google_project_iam_binding.cloud-iot-iam-binding] - name = "%s" event_notification_configs {