From 329efe7aafe6bb45ebe4df106a614c03815fb0e4 Mon Sep 17 00:00:00 2001 From: Sam Levenick Date: Wed, 22 Jul 2020 09:22:01 -0700 Subject: [PATCH] Remove extra test --- ...source_compute_backend_service_test.go.erb | 54 ------------------- 1 file changed, 54 deletions(-) diff --git a/third_party/terraform/tests/resource_compute_backend_service_test.go.erb b/third_party/terraform/tests/resource_compute_backend_service_test.go.erb index cbd56de5e4ea..143941f0e3e0 100644 --- a/third_party/terraform/tests/resource_compute_backend_service_test.go.erb +++ b/third_party/terraform/tests/resource_compute_backend_service_test.go.erb @@ -620,31 +620,6 @@ func TestAccComputeBackendService_trafficDirectorUpdateBasic(t *testing.T) { }) } -func TestAccComputeBackendService_backendServiceNetworkEndpointExample(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: testAccCheckComputeBackendServiceDestroyProducer(t), - Steps: []resource.TestStep{ - { - Config: testAccComputeBackendService_backendServiceNetworkEndpointExample(context), - }, - { - ResourceName: "google_compute_backend_service.default", - ImportState: true, - ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"global_network_backend"}, - }, - }, - }) -} - <% unless version == 'ga' -%> func TestAccComputeBackendService_trafficDirectorUpdateFull(t *testing.T) { t.Parallel() @@ -1533,32 +1508,3 @@ resource "google_compute_http_health_check" "zero" { } `, serviceName, sampleRate, checkName) } - -func testAccComputeBackendService_backendServiceNetworkEndpointExample(context map[string]interface{}) string { - return Nprintf(` -resource "google_compute_global_network_endpoint_group" "external_proxy" { - name = "tf-test-network-endpoint%{random_suffix}" - network_endpoint_type = "INTERNET_FQDN_PORT" - default_port = "443" -} - -resource "google_compute_global_network_endpoint" "proxy" { - global_network_endpoint_group = google_compute_global_network_endpoint_group.external_proxy.name - fqdn = "test.example.com" - port = google_compute_global_network_endpoint_group.external_proxy.default_port -} - -resource "google_compute_backend_service" "default" { - name = "tf-test-backend-service%{random_suffix}" - enable_cdn = true - timeout_sec = 10 - connection_draining_timeout_sec = 10 - - custom_request_headers = ["host: ${google_compute_global_network_endpoint.proxy.fqdn}"] - - backend { - group = google_compute_global_network_endpoint_group.external_proxy.self_link - } -} -`, context) -}