Skip to content

Commit

Permalink
Remove extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
slevenick committed Jul 23, 2020
1 parent f7f2a42 commit 329efe7
Showing 1 changed file with 0 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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)
}

0 comments on commit 329efe7

Please sign in to comment.