Skip to content

Commit fefade9

Browse files
authored
Add newly required field to beyondcorp tests (#15373)
1 parent c5c6f66 commit fefade9

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

mmv1/templates/terraform/examples/beyondcorp_security_gateway_application_basic.tf.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ resource "google_beyondcorp_security_gateway_application" "{{$.PrimaryResourceId
99
application_id = "{{index $.Vars "application_name"}}"
1010
endpoint_matchers {
1111
hostname = "google.com"
12+
ports = [80, 443]
1213
}
1314
}

mmv1/templates/terraform/examples/beyondcorp_security_gateway_application_vpc.tf.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ resource "google_beyondcorp_security_gateway_application" "{{$.PrimaryResourceId
1111
application_id = "{{index $.Vars "application_name"}}"
1212
endpoint_matchers {
1313
hostname = "my-vm-service.com"
14+
ports = [80, 443]
1415
}
1516
upstreams {
1617
egress_policy {

mmv1/third_party/terraform/services/beyondcorp/resource_beyondcorp_security_gateway_application_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ resource "google_beyondcorp_security_gateway_application" "example" {
6262
application_id = "google-sga%{random_suffix}"
6363
endpoint_matchers {
6464
hostname = "google.com"
65+
ports = [80, 443]
6566
}
6667
}
6768
`, context)
@@ -83,6 +84,7 @@ resource "google_beyondcorp_security_gateway_application" "example" {
8384
application_id = "google-sga%{random_suffix}"
8485
endpoint_matchers {
8586
hostname = "*.google.com"
87+
ports = [80]
8688
}
8789
endpoint_matchers {
8890
hostname = "google.com"

0 commit comments

Comments
 (0)