From 01447bf655e53c0004ed4e58f4ce2dcb99457963 Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Fri, 20 Mar 2026 16:36:07 +0000 Subject: [PATCH] Fix TlsRoute tests (#16771) [upstream:b0085dbb1aac047ab57c0e2e8e1a513393ae3587] Signed-off-by: Modular Magician --- network_services_tls_route_basic/main.tf | 16 +++++++++------- network_services_tls_route_gateway_basic/main.tf | 16 +++++++++------- network_services_tls_route_mesh_basic/main.tf | 16 +++++++++------- 3 files changed, 27 insertions(+), 21 deletions(-) diff --git a/network_services_tls_route_basic/main.tf b/network_services_tls_route_basic/main.tf index 822dcf57..9c4758f9 100644 --- a/network_services_tls_route_basic/main.tf +++ b/network_services_tls_route_basic/main.tf @@ -1,13 +1,15 @@ resource "google_compute_backend_service" "default" { - name = "my-backend-service-${local.name_suffix}" - health_checks = [google_compute_http_health_check.default.id] + name = "my-backend-service-${local.name_suffix}" + load_balancing_scheme = "INTERNAL_SELF_MANAGED" + health_checks = [google_compute_health_check.default.id] } -resource "google_compute_http_health_check" "default" { - name = "backend-service-health-check-${local.name_suffix}" - request_path = "/" - check_interval_sec = 1 - timeout_sec = 1 +resource "google_compute_health_check" "default" { + name = "backend-service-health-check-${local.name_suffix}" + + https_health_check { + port = 443 + } } resource "google_network_services_tls_route" "default" { diff --git a/network_services_tls_route_gateway_basic/main.tf b/network_services_tls_route_gateway_basic/main.tf index 10ad60b4..d47b03f2 100644 --- a/network_services_tls_route_gateway_basic/main.tf +++ b/network_services_tls_route_gateway_basic/main.tf @@ -1,13 +1,15 @@ resource "google_compute_backend_service" "default" { - name = "my-backend-service-${local.name_suffix}" - health_checks = [google_compute_http_health_check.default.id] + name = "my-backend-service-${local.name_suffix}" + load_balancing_scheme = "INTERNAL_SELF_MANAGED" + health_checks = [google_compute_health_check.default.id] } -resource "google_compute_http_health_check" "default" { - name = "backend-service-health-check-${local.name_suffix}" - request_path = "/" - check_interval_sec = 1 - timeout_sec = 1 +resource "google_compute_health_check" "default" { + name = "backend-service-health-check-${local.name_suffix}" + + https_health_check { + port = 443 + } } resource "google_network_services_gateway" "default" { diff --git a/network_services_tls_route_mesh_basic/main.tf b/network_services_tls_route_mesh_basic/main.tf index 9567d1dd..9c8e5615 100644 --- a/network_services_tls_route_mesh_basic/main.tf +++ b/network_services_tls_route_mesh_basic/main.tf @@ -1,13 +1,15 @@ resource "google_compute_backend_service" "default" { - name = "my-backend-service-${local.name_suffix}" - health_checks = [google_compute_http_health_check.default.id] + name = "my-backend-service-${local.name_suffix}" + load_balancing_scheme = "INTERNAL_SELF_MANAGED" + health_checks = [google_compute_health_check.default.id] } -resource "google_compute_http_health_check" "default" { - name = "backend-service-health-check-${local.name_suffix}" - request_path = "/" - check_interval_sec = 1 - timeout_sec = 1 +resource "google_compute_health_check" "default" { + name = "backend-service-health-check-${local.name_suffix}" + + https_health_check { + port = 443 + } } resource "google_network_services_mesh" "default" {