diff --git a/.changelog/7313.txt b/.changelog/7313.txt new file mode 100644 index 00000000000..8ec013c0699 --- /dev/null +++ b/.changelog/7313.txt @@ -0,0 +1,3 @@ +```release-note:none + +``` diff --git a/google/resource_compute_ha_vpn_gateway_generated_test.go b/google/resource_compute_ha_vpn_gateway_generated_test.go index 65a1942dde1..9a26d015e9a 100644 --- a/google/resource_compute_ha_vpn_gateway_generated_test.go +++ b/google/resource_compute_ha_vpn_gateway_generated_test.go @@ -63,102 +63,6 @@ resource "google_compute_network" "network1" { `, context) } -func TestAccComputeHaVpnGateway_computeHaVpnGatewayEncryptedInterconnectExample(t *testing.T) { - t.Parallel() - - context := map[string]interface{}{ - "random_suffix": randString(t, 10), - } - - vcrTest(t, resource.TestCase{ - PreCheck: func() { testAccPreCheck(t) }, - Providers: testAccProviders, - CheckDestroy: testAccCheckComputeHaVpnGatewayDestroyProducer(t), - Steps: []resource.TestStep{ - { - Config: testAccComputeHaVpnGateway_computeHaVpnGatewayEncryptedInterconnectExample(context), - }, - { - ResourceName: "google_compute_ha_vpn_gateway.vpn-gateway", - ImportState: true, - ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"network", "region"}, - }, - }, - }) -} - -func testAccComputeHaVpnGateway_computeHaVpnGatewayEncryptedInterconnectExample(context map[string]interface{}) string { - return Nprintf(` -resource "google_compute_ha_vpn_gateway" "vpn-gateway" { - name = "tf-test-test-ha-vpngw%{random_suffix}" - network = google_compute_network.network.id - vpn_interfaces { - id = 0 - interconnect_attachment = google_compute_interconnect_attachment.attachment1.self_link - } - vpn_interfaces { - id = 1 - interconnect_attachment = google_compute_interconnect_attachment.attachment2.self_link - } -} - -resource "google_compute_interconnect_attachment" "attachment1" { - name = "tf-test-test-interconnect-attachment1%{random_suffix}" - edge_availability_domain = "AVAILABILITY_DOMAIN_1" - type = "PARTNER" - router = google_compute_router.router.id - encryption = "IPSEC" - ipsec_internal_addresses = [ - google_compute_address.address1.self_link, - ] -} - -resource "google_compute_interconnect_attachment" "attachment2" { - name = "tf-test-test-interconnect-attachment2%{random_suffix}" - edge_availability_domain = "AVAILABILITY_DOMAIN_2" - type = "PARTNER" - router = google_compute_router.router.id - encryption = "IPSEC" - ipsec_internal_addresses = [ - google_compute_address.address2.self_link, - ] -} - -resource "google_compute_address" "address1" { - name = "tf-test-test-address1%{random_suffix}" - address_type = "INTERNAL" - purpose = "IPSEC_INTERCONNECT" - address = "192.168.1.0" - prefix_length = 29 - network = google_compute_network.network.self_link -} - -resource "google_compute_address" "address2" { - name = "tf-test-test-address2%{random_suffix}" - address_type = "INTERNAL" - purpose = "IPSEC_INTERCONNECT" - address = "192.168.2.0" - prefix_length = 29 - network = google_compute_network.network.self_link -} - -resource "google_compute_router" "router" { - name = "tf-test-test-router%{random_suffix}" - network = google_compute_network.network.name - encrypted_interconnect_router = true - bgp { - asn = 16550 - } -} - -resource "google_compute_network" "network" { - name = "tf-test-test-network%{random_suffix}" - auto_create_subnetworks = false -} -`, context) -} - func testAccCheckComputeHaVpnGatewayDestroyProducer(t *testing.T) func(s *terraform.State) error { return func(s *terraform.State) error { for name, rs := range s.RootModule().Resources { diff --git a/website/docs/r/compute_ha_vpn_gateway.html.markdown b/website/docs/r/compute_ha_vpn_gateway.html.markdown index 5b937575eaf..6a2daeef636 100644 --- a/website/docs/r/compute_ha_vpn_gateway.html.markdown +++ b/website/docs/r/compute_ha_vpn_gateway.html.markdown @@ -51,11 +51,6 @@ resource "google_compute_network" "network1" { auto_create_subnetworks = false } ``` -
## Example Usage - Compute Ha Vpn Gateway Encrypted Interconnect