Skip to content

Commit

Permalink
Remove iam bindings from cloudIoT registry tests (#1642)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <magic-modules@google.com>

Co-authored-by: emily <emilyye@google.com>
  • Loading branch information
modular-magician and emilymye committed Jan 14, 2020
1 parent cf9b513 commit 53d6c58
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions google-beta/resource_cloudiot_registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand All @@ -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 {
Expand Down Expand Up @@ -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 {
Expand All @@ -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"
}
Expand All @@ -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 {
Expand Down

0 comments on commit 53d6c58

Please sign in to comment.