@@ -429,10 +429,8 @@ resource "google_eventarc_message_bus" "message_bus" {
429
429
// concerned with testing the Pipeline resource, which depends on a singleton MessageBus.
430
430
func testAccEventarcMessageBus_pipeline (t * testing.T ) {
431
431
context := map [string ]interface {}{
432
- "project_id" : envvar .GetTestProjectFromEnv (),
433
- "region" : envvar .GetTestRegionFromEnv (),
434
- "random_suffix" : acctest .RandString (t , 10 ),
435
- "network_attachment_name" : acctest .BootstrapNetworkAttachment (t , "tf-bootstrap-eventarc-messagebus-na" , acctest .BootstrapSubnet (t , "tf-bootstrap-eventarc-messagebus-subnet" , acctest .BootstrapSharedTestNetwork (t , "tf-bootstrap-eventarc-messagebus-network" ))),
432
+ "region" : envvar .GetTestRegionFromEnv (),
433
+ "random_suffix" : acctest .RandString (t , 10 ),
436
434
}
437
435
438
436
acctest .VcrTest (t , resource.TestCase {
@@ -460,9 +458,6 @@ resource "google_eventarc_pipeline" "primary" {
460
458
pipeline_id = "tf-test-some-pipeline%{random_suffix}"
461
459
destinations {
462
460
message_bus = google_eventarc_message_bus.primary.id
463
- network_config {
464
- network_attachment = "projects/%{project_id}/regions/%{region}/networkAttachments/%{network_attachment_name}"
465
- }
466
461
}
467
462
}
468
463
@@ -477,10 +472,8 @@ resource "google_eventarc_message_bus" "primary" {
477
472
// concerned with testing the Enrollment resource, which depends on a singleton MessageBus.
478
473
func testAccEventarcMessageBus_enrollment (t * testing.T ) {
479
474
context := map [string ]interface {}{
480
- "project_id" : envvar .GetTestProjectFromEnv (),
481
- "region" : envvar .GetTestRegionFromEnv (),
482
- "random_suffix" : acctest .RandString (t , 10 ),
483
- "network_attachment_name" : acctest .BootstrapNetworkAttachment (t , "tf-bootstrap-eventarc-messagebus-na" , acctest .BootstrapSubnet (t , "tf-bootstrap-eventarc-messagebus-subnet" , acctest .BootstrapSharedTestNetwork (t , "tf-bootstrap-eventarc-messagebus-network" ))),
475
+ "region" : envvar .GetTestRegionFromEnv (),
476
+ "random_suffix" : acctest .RandString (t , 10 ),
484
477
}
485
478
486
479
acctest .VcrTest (t , resource.TestCase {
@@ -527,9 +520,6 @@ resource "google_eventarc_pipeline" "pipeline" {
527
520
pipeline_id = "tf-test-pipeline%{random_suffix}"
528
521
destinations {
529
522
topic = google_pubsub_topic.pipeline_topic.id
530
- network_config {
531
- network_attachment = "projects/%{project_id}/regions/%{region}/networkAttachments/%{network_attachment_name}"
532
- }
533
523
}
534
524
}
535
525
@@ -544,10 +534,8 @@ resource "google_eventarc_message_bus" "message_bus" {
544
534
// concerned with testing the Enrollment resource, which depends on a singleton MessageBus.
545
535
func testAccEventarcMessageBus_updateEnrollment (t * testing.T ) {
546
536
context := map [string ]interface {}{
547
- "project_id" : envvar .GetTestProjectFromEnv (),
548
- "region" : envvar .GetTestRegionFromEnv (),
549
- "random_suffix" : acctest .RandString (t , 10 ),
550
- "network_attachment_name" : acctest .BootstrapNetworkAttachment (t , "tf-bootstrap-eventarc-messagebus-na" , acctest .BootstrapSubnet (t , "tf-bootstrap-eventarc-messagebus-subnet" , acctest .BootstrapSharedTestNetwork (t , "tf-bootstrap-eventarc-messagebus-network" ))),
537
+ "region" : envvar .GetTestRegionFromEnv (),
538
+ "random_suffix" : acctest .RandString (t , 10 ),
551
539
}
552
540
553
541
acctest .VcrTest (t , resource.TestCase {
@@ -626,9 +614,6 @@ resource "google_eventarc_pipeline" "pipeline_update" {
626
614
pipeline_id = "tf-test-pipeline2%{random_suffix}"
627
615
destinations {
628
616
topic = google_pubsub_topic.pipeline_update_topic.id
629
- network_config {
630
- network_attachment = "projects/%{project_id}/regions/%{region}/networkAttachments/%{network_attachment_name}"
631
- }
632
617
}
633
618
}
634
619
@@ -641,9 +626,6 @@ resource "google_eventarc_pipeline" "pipeline" {
641
626
pipeline_id = "tf-test-pipeline%{random_suffix}"
642
627
destinations {
643
628
topic = google_pubsub_topic.pipeline_topic.id
644
- network_config {
645
- network_attachment = "projects/%{project_id}/regions/%{region}/networkAttachments/%{network_attachment_name}"
646
- }
647
629
}
648
630
}
649
631
@@ -673,9 +655,6 @@ resource "google_eventarc_pipeline" "pipeline_update" {
673
655
pipeline_id = "tf-test-pipeline2%{random_suffix}"
674
656
destinations {
675
657
topic = google_pubsub_topic.pipeline_update_topic.id
676
- network_config {
677
- network_attachment = "projects/%{project_id}/regions/%{region}/networkAttachments/%{network_attachment_name}"
678
- }
679
658
}
680
659
}
681
660
0 commit comments