Skip to content

Commit 678449a

Browse files
Fixing tests (#10366) (#17772)
[upstream:f057fae799582e8d8cff6321f4fd091d285fed15] Signed-off-by: Modular Magician <magic-modules@google.com>
1 parent f0af8b7 commit 678449a

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

.changelog/10366.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
```release-note:none
2+
```

google/services/compute/resource_compute_router_bgp_peer_test.go

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,17 @@ func testAccComputeRouterPeerWithMd5AuthKey(routerName string) string {
606606
router = google_compute_router.foobar.name
607607
vpn_gateway_interface = 0
608608
}
609+
610+
resource "google_compute_vpn_tunnel" "foobar1" {
611+
name = "%s1"
612+
region = google_compute_subnetwork.foobar.region
613+
vpn_gateway = google_compute_ha_vpn_gateway.foobar.id
614+
peer_external_gateway = google_compute_external_vpn_gateway.external_gateway.id
615+
peer_external_gateway_interface = 0
616+
shared_secret = "unguessable"
617+
router = google_compute_router.foobar.name
618+
vpn_gateway_interface = 1
619+
}
609620
610621
resource "google_compute_router_interface" "foobar" {
611622
name = "%s"
@@ -619,7 +630,7 @@ func testAccComputeRouterPeerWithMd5AuthKey(routerName string) string {
619630
name = "%s1"
620631
router = google_compute_router.foobar.name
621632
region = google_compute_router.foobar.region
622-
vpn_tunnel = google_compute_vpn_tunnel.foobar.name
633+
vpn_tunnel = google_compute_vpn_tunnel.foobar1.name
623634
ip_range = "169.254.4.1/30"
624635
depends_on = [
625636
google_compute_router_interface.foobar
@@ -657,7 +668,7 @@ func testAccComputeRouterPeerWithMd5AuthKey(routerName string) string {
657668
]
658669
}
659670
`, routerName, routerName, routerName, routerName, routerName, routerName, routerName, routerName, routerName, routerName, routerName, routerName, routerName, routerName,
660-
routerName)
671+
routerName, routerName)
661672
}
662673

663674
func testAccComputeRouterPeerWithMd5AuthKeyUpdate(routerName string) string {
@@ -714,6 +725,17 @@ func testAccComputeRouterPeerWithMd5AuthKeyUpdate(routerName string) string {
714725
router = google_compute_router.foobar.name
715726
vpn_gateway_interface = 0
716727
}
728+
729+
resource "google_compute_vpn_tunnel" "foobar1" {
730+
name = "%s1"
731+
region = google_compute_subnetwork.foobar.region
732+
vpn_gateway = google_compute_ha_vpn_gateway.foobar.id
733+
peer_external_gateway = google_compute_external_vpn_gateway.external_gateway.id
734+
peer_external_gateway_interface = 0
735+
shared_secret = "unguessable"
736+
router = google_compute_router.foobar.name
737+
vpn_gateway_interface = 1
738+
}
717739
718740
resource "google_compute_router_interface" "foobar" {
719741
name = "%s"
@@ -727,7 +749,7 @@ func testAccComputeRouterPeerWithMd5AuthKeyUpdate(routerName string) string {
727749
name = "%s1"
728750
router = google_compute_router.foobar.name
729751
region = google_compute_router.foobar.region
730-
vpn_tunnel = google_compute_vpn_tunnel.foobar.name
752+
vpn_tunnel = google_compute_vpn_tunnel.foobar1.name
731753
ip_range = "169.254.4.1/30"
732754
depends_on = [
733755
google_compute_router_interface.foobar
@@ -765,7 +787,7 @@ func testAccComputeRouterPeerWithMd5AuthKeyUpdate(routerName string) string {
765787
]
766788
}
767789
`, routerName, routerName, routerName, routerName, routerName, routerName, routerName, routerName, routerName, routerName, routerName, routerName, routerName, routerName,
768-
routerName)
790+
routerName, routerName)
769791
}
770792

771793
func testAccComputeRouterPeerKeepRouter(routerName string) string {

0 commit comments

Comments
 (0)