Skip to content

Commit 13be724

Browse files
Fix TlsRoute tests (#16771) (#1251)
[upstream:b0085dbb1aac047ab57c0e2e8e1a513393ae3587] Signed-off-by: Modular Magician <magic-modules@google.com>
1 parent 857c68f commit 13be724

3 files changed

Lines changed: 27 additions & 21 deletions

File tree

  • network_services_tls_route_basic
  • network_services_tls_route_gateway_basic
  • network_services_tls_route_mesh_basic

network_services_tls_route_basic/main.tf

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
resource "google_compute_backend_service" "default" {
2-
name = "my-backend-service-${local.name_suffix}"
3-
health_checks = [google_compute_http_health_check.default.id]
2+
name = "my-backend-service-${local.name_suffix}"
3+
load_balancing_scheme = "INTERNAL_SELF_MANAGED"
4+
health_checks = [google_compute_health_check.default.id]
45
}
56

6-
resource "google_compute_http_health_check" "default" {
7-
name = "backend-service-health-check-${local.name_suffix}"
8-
request_path = "/"
9-
check_interval_sec = 1
10-
timeout_sec = 1
7+
resource "google_compute_health_check" "default" {
8+
name = "backend-service-health-check-${local.name_suffix}"
9+
10+
https_health_check {
11+
port = 443
12+
}
1113
}
1214

1315
resource "google_network_services_tls_route" "default" {

network_services_tls_route_gateway_basic/main.tf

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
resource "google_compute_backend_service" "default" {
2-
name = "my-backend-service-${local.name_suffix}"
3-
health_checks = [google_compute_http_health_check.default.id]
2+
name = "my-backend-service-${local.name_suffix}"
3+
load_balancing_scheme = "INTERNAL_SELF_MANAGED"
4+
health_checks = [google_compute_health_check.default.id]
45
}
56

6-
resource "google_compute_http_health_check" "default" {
7-
name = "backend-service-health-check-${local.name_suffix}"
8-
request_path = "/"
9-
check_interval_sec = 1
10-
timeout_sec = 1
7+
resource "google_compute_health_check" "default" {
8+
name = "backend-service-health-check-${local.name_suffix}"
9+
10+
https_health_check {
11+
port = 443
12+
}
1113
}
1214

1315
resource "google_network_services_gateway" "default" {

network_services_tls_route_mesh_basic/main.tf

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
resource "google_compute_backend_service" "default" {
2-
name = "my-backend-service-${local.name_suffix}"
3-
health_checks = [google_compute_http_health_check.default.id]
2+
name = "my-backend-service-${local.name_suffix}"
3+
load_balancing_scheme = "INTERNAL_SELF_MANAGED"
4+
health_checks = [google_compute_health_check.default.id]
45
}
56

6-
resource "google_compute_http_health_check" "default" {
7-
name = "backend-service-health-check-${local.name_suffix}"
8-
request_path = "/"
9-
check_interval_sec = 1
10-
timeout_sec = 1
7+
resource "google_compute_health_check" "default" {
8+
name = "backend-service-health-check-${local.name_suffix}"
9+
10+
https_health_check {
11+
port = 443
12+
}
1113
}
1214

1315
resource "google_network_services_mesh" "default" {

0 commit comments

Comments
 (0)