@@ -47,21 +47,21 @@ func TestAccNetworkServicesAuthzExtension_update(t *testing.T) {
47
47
func testAccNetworkServicesAuthzExtension_start (context map [string ]interface {}) string {
48
48
return acctest .Nprintf (`
49
49
resource "google_compute_network" "default" {
50
- name = "lb-network"
50
+ name = "tf-test- lb-network%{random_suffix} "
51
51
project = "%{project}"
52
52
auto_create_subnetworks = false
53
53
}
54
54
55
55
resource "google_compute_subnetwork" "default" {
56
- name = "backend-subnet"
56
+ name = "tf-test- backend-subnet%{random_suffix} "
57
57
project = "%{project}"
58
58
region = "us-west1"
59
59
ip_cidr_range = "10.1.2.0/24"
60
60
network = google_compute_network.default.id
61
61
}
62
62
63
63
resource "google_compute_subnetwork" "proxy_only" {
64
- name = "proxy-only-subnet"
64
+ name = "tf-test- proxy-only-subnet%{random_suffix} "
65
65
project = "%{project}"
66
66
region = "us-west1"
67
67
ip_cidr_range = "10.129.0.0/23"
@@ -71,7 +71,7 @@ resource "google_compute_subnetwork" "proxy_only" {
71
71
}
72
72
73
73
resource "google_compute_address" "default" {
74
- name = "l7-ilb-ip-address"
74
+ name = "tf-test- l7-ilb-ip-address%{random_suffix} "
75
75
project = "%{project}"
76
76
region = "us-west1"
77
77
subnetwork = google_compute_subnetwork.default.id
@@ -81,7 +81,7 @@ resource "google_compute_address" "default" {
81
81
82
82
83
83
resource "google_compute_region_health_check" "default" {
84
- name = "l7-ilb-basic-check"
84
+ name = "tf-test- l7-ilb-basic-check%{random_suffix} "
85
85
project = "%{project}"
86
86
region = "us-west1"
87
87
@@ -91,7 +91,7 @@ resource "google_compute_region_health_check" "default" {
91
91
}
92
92
93
93
resource "google_compute_region_backend_service" "url_map" {
94
- name = "l7-ilb-backend-service"
94
+ name = "tf-test- l7-ilb-backend-service%{random_suffix} "
95
95
project = "%{project}"
96
96
region = "us-west1"
97
97
load_balancing_scheme = "INTERNAL_MANAGED"
@@ -100,7 +100,7 @@ resource "google_compute_region_backend_service" "url_map" {
100
100
}
101
101
102
102
resource "google_compute_forwarding_rule" "default" {
103
- name = "l7-ilb-forwarding-rule"
103
+ name = "tf-test- l7-ilb-forwarding-rule%{random_suffix} "
104
104
project = "%{project}"
105
105
region = "us-west1"
106
106
load_balancing_scheme = "INTERNAL_MANAGED"
@@ -115,21 +115,21 @@ resource "google_compute_forwarding_rule" "default" {
115
115
}
116
116
117
117
resource "google_compute_region_url_map" "default" {
118
- name = "l7-ilb-map"
118
+ name = "tf-test- l7-ilb-map%{random_suffix} "
119
119
project = "%{project}"
120
120
region = "us-west1"
121
121
default_service = google_compute_region_backend_service.url_map.id
122
122
}
123
123
124
124
resource "google_compute_region_target_http_proxy" "default" {
125
- name = "l7-ilb-proxy"
125
+ name = "tf-test- l7-ilb-proxy%{random_suffix} "
126
126
project = "%{project}"
127
127
region = "us-west1"
128
128
url_map = google_compute_region_url_map.default.id
129
129
}
130
130
131
131
resource "google_compute_region_backend_service" "default" {
132
- name = "authz-service"
132
+ name = "tf-test- authz-service%{random_suffix} "
133
133
project = "%{project}"
134
134
region = "us-west1"
135
135
@@ -139,7 +139,7 @@ resource "google_compute_region_backend_service" "default" {
139
139
}
140
140
141
141
resource "google_compute_region_backend_service" "updated" {
142
- name = "authz-service-updated"
142
+ name = "tf-test- authz-service-updated%{random_suffix} "
143
143
project = "%{project}"
144
144
region = "us-west1"
145
145
@@ -167,21 +167,21 @@ resource "google_network_services_authz_extension" "default" {
167
167
func testAccNetworkServicesAuthzExtension_update (context map [string ]interface {}) string {
168
168
return acctest .Nprintf (`
169
169
resource "google_compute_network" "default" {
170
- name = "lb-network"
170
+ name = "tf-test- lb-network%{random_suffix} "
171
171
project = "%{project}"
172
172
auto_create_subnetworks = false
173
173
}
174
174
175
175
resource "google_compute_subnetwork" "default" {
176
- name = "backend-subnet"
176
+ name = "tf-test- backend-subnet%{random_suffix} "
177
177
project = "%{project}"
178
178
region = "us-west1"
179
179
ip_cidr_range = "10.1.2.0/24"
180
180
network = google_compute_network.default.id
181
181
}
182
182
183
183
resource "google_compute_subnetwork" "proxy_only" {
184
- name = "proxy-only-subnet"
184
+ name = "tf-test- proxy-only-subnet%{random_suffix} "
185
185
project = "%{project}"
186
186
region = "us-west1"
187
187
ip_cidr_range = "10.129.0.0/23"
@@ -191,7 +191,7 @@ resource "google_compute_subnetwork" "proxy_only" {
191
191
}
192
192
193
193
resource "google_compute_address" "default" {
194
- name = "l7-ilb-ip-address"
194
+ name = "tf-test- l7-ilb-ip-address%{random_suffix} "
195
195
project = "%{project}"
196
196
region = "us-west1"
197
197
subnetwork = google_compute_subnetwork.default.id
@@ -200,7 +200,7 @@ resource "google_compute_address" "default" {
200
200
}
201
201
202
202
resource "google_compute_region_health_check" "default" {
203
- name = "l7-ilb-basic-check"
203
+ name = "tf-test- l7-ilb-basic-check%{random_suffix} "
204
204
project = "%{project}"
205
205
region = "us-west1"
206
206
@@ -210,7 +210,7 @@ resource "google_compute_region_health_check" "default" {
210
210
}
211
211
212
212
resource "google_compute_region_backend_service" "url_map" {
213
- name = "l7-ilb-backend-service"
213
+ name = "tf-test- l7-ilb-backend-service%{random_suffix} "
214
214
project = "%{project}"
215
215
region = "us-west1"
216
216
load_balancing_scheme = "INTERNAL_MANAGED"
@@ -219,7 +219,7 @@ resource "google_compute_region_backend_service" "url_map" {
219
219
}
220
220
221
221
resource "google_compute_forwarding_rule" "default" {
222
- name = "l7-ilb-forwarding-rule"
222
+ name = "tf-test- l7-ilb-forwarding-rule%{random_suffix} "
223
223
project = "%{project}"
224
224
region = "us-west1"
225
225
load_balancing_scheme = "INTERNAL_MANAGED"
@@ -234,21 +234,21 @@ resource "google_compute_forwarding_rule" "default" {
234
234
}
235
235
236
236
resource "google_compute_region_url_map" "default" {
237
- name = "l7-ilb-map"
237
+ name = "tf-test- l7-ilb-map%{random_suffix} "
238
238
project = "%{project}"
239
239
region = "us-west1"
240
240
default_service = google_compute_region_backend_service.url_map.id
241
241
}
242
242
243
243
resource "google_compute_region_target_http_proxy" "default" {
244
- name = "l7-ilb-proxy"
244
+ name = "tf-test- l7-ilb-proxy%{random_suffix} "
245
245
project = "%{project}"
246
246
region = "us-west1"
247
247
url_map = google_compute_region_url_map.default.id
248
248
}
249
249
250
250
resource "google_compute_region_backend_service" "default" {
251
- name = "authz-service"
251
+ name = "tf-test- authz-service%{random_suffix} "
252
252
project = "%{project}"
253
253
region = "us-west1"
254
254
@@ -258,7 +258,7 @@ resource "google_compute_region_backend_service" "default" {
258
258
}
259
259
260
260
resource "google_compute_region_backend_service" "updated" {
261
- name = "authz-service-updated"
261
+ name = "tf-test- authz-service-updated%{random_suffix} "
262
262
project = "%{project}"
263
263
region = "us-west1"
264
264
@@ -279,7 +279,6 @@ resource "google_network_services_authz_extension" "default" {
279
279
timeout = "0.1s"
280
280
fail_open = false
281
281
forward_headers = ["Authorization"]
282
- wire_format = "EXT_PROC_GRPC"
283
282
284
283
metadata = {
285
284
forwarding_rule_id = google_compute_forwarding_rule.default.id
0 commit comments