@@ -49,21 +49,21 @@ func TestAccNetworkServicesAuthzExtension_update(t *testing.T) {
49
49
func testAccNetworkServicesAuthzExtension_start (context map [string ]interface {}) string {
50
50
return acctest .Nprintf (`
51
51
resource "google_compute_network" "default" {
52
- name = "lb-network"
52
+ name = "tf-test- lb-network%{random_suffix} "
53
53
project = "%{project}"
54
54
auto_create_subnetworks = false
55
55
}
56
56
57
57
resource "google_compute_subnetwork" "default" {
58
- name = "backend-subnet"
58
+ name = "tf-test- backend-subnet%{random_suffix} "
59
59
project = "%{project}"
60
60
region = "us-west1"
61
61
ip_cidr_range = "10.1.2.0/24"
62
62
network = google_compute_network.default.id
63
63
}
64
64
65
65
resource "google_compute_subnetwork" "proxy_only" {
66
- name = "proxy-only-subnet"
66
+ name = "tf-test- proxy-only-subnet%{random_suffix} "
67
67
project = "%{project}"
68
68
region = "us-west1"
69
69
ip_cidr_range = "10.129.0.0/23"
@@ -73,7 +73,7 @@ resource "google_compute_subnetwork" "proxy_only" {
73
73
}
74
74
75
75
resource "google_compute_address" "default" {
76
- name = "l7-ilb-ip-address"
76
+ name = "tf-test- l7-ilb-ip-address%{random_suffix} "
77
77
project = "%{project}"
78
78
region = "us-west1"
79
79
subnetwork = google_compute_subnetwork.default.id
@@ -83,7 +83,7 @@ resource "google_compute_address" "default" {
83
83
84
84
85
85
resource "google_compute_region_health_check" "default" {
86
- name = "l7-ilb-basic-check"
86
+ name = "tf-test- l7-ilb-basic-check%{random_suffix} "
87
87
project = "%{project}"
88
88
region = "us-west1"
89
89
@@ -93,7 +93,7 @@ resource "google_compute_region_health_check" "default" {
93
93
}
94
94
95
95
resource "google_compute_region_backend_service" "url_map" {
96
- name = "l7-ilb-backend-service"
96
+ name = "tf-test- l7-ilb-backend-service%{random_suffix} "
97
97
project = "%{project}"
98
98
region = "us-west1"
99
99
load_balancing_scheme = "INTERNAL_MANAGED"
@@ -102,7 +102,7 @@ resource "google_compute_region_backend_service" "url_map" {
102
102
}
103
103
104
104
resource "google_compute_forwarding_rule" "default" {
105
- name = "l7-ilb-forwarding-rule"
105
+ name = "tf-test- l7-ilb-forwarding-rule%{random_suffix} "
106
106
project = "%{project}"
107
107
region = "us-west1"
108
108
load_balancing_scheme = "INTERNAL_MANAGED"
@@ -117,21 +117,21 @@ resource "google_compute_forwarding_rule" "default" {
117
117
}
118
118
119
119
resource "google_compute_region_url_map" "default" {
120
- name = "l7-ilb-map"
120
+ name = "tf-test- l7-ilb-map%{random_suffix} "
121
121
project = "%{project}"
122
122
region = "us-west1"
123
123
default_service = google_compute_region_backend_service.url_map.id
124
124
}
125
125
126
126
resource "google_compute_region_target_http_proxy" "default" {
127
- name = "l7-ilb-proxy"
127
+ name = "tf-test- l7-ilb-proxy%{random_suffix} "
128
128
project = "%{project}"
129
129
region = "us-west1"
130
130
url_map = google_compute_region_url_map.default.id
131
131
}
132
132
133
133
resource "google_compute_region_backend_service" "default" {
134
- name = "authz-service"
134
+ name = "tf-test- authz-service%{random_suffix} "
135
135
project = "%{project}"
136
136
region = "us-west1"
137
137
@@ -141,7 +141,7 @@ resource "google_compute_region_backend_service" "default" {
141
141
}
142
142
143
143
resource "google_compute_region_backend_service" "updated" {
144
- name = "authz-service-updated"
144
+ name = "tf-test- authz-service-updated%{random_suffix} "
145
145
project = "%{project}"
146
146
region = "us-west1"
147
147
@@ -169,21 +169,21 @@ resource "google_network_services_authz_extension" "default" {
169
169
func testAccNetworkServicesAuthzExtension_update (context map [string ]interface {}) string {
170
170
return acctest .Nprintf (`
171
171
resource "google_compute_network" "default" {
172
- name = "lb-network"
172
+ name = "tf-test- lb-network%{random_suffix} "
173
173
project = "%{project}"
174
174
auto_create_subnetworks = false
175
175
}
176
176
177
177
resource "google_compute_subnetwork" "default" {
178
- name = "backend-subnet"
178
+ name = "tf-test- backend-subnet%{random_suffix} "
179
179
project = "%{project}"
180
180
region = "us-west1"
181
181
ip_cidr_range = "10.1.2.0/24"
182
182
network = google_compute_network.default.id
183
183
}
184
184
185
185
resource "google_compute_subnetwork" "proxy_only" {
186
- name = "proxy-only-subnet"
186
+ name = "tf-test- proxy-only-subnet%{random_suffix} "
187
187
project = "%{project}"
188
188
region = "us-west1"
189
189
ip_cidr_range = "10.129.0.0/23"
@@ -193,7 +193,7 @@ resource "google_compute_subnetwork" "proxy_only" {
193
193
}
194
194
195
195
resource "google_compute_address" "default" {
196
- name = "l7-ilb-ip-address"
196
+ name = "tf-test- l7-ilb-ip-address%{random_suffix} "
197
197
project = "%{project}"
198
198
region = "us-west1"
199
199
subnetwork = google_compute_subnetwork.default.id
@@ -202,7 +202,7 @@ resource "google_compute_address" "default" {
202
202
}
203
203
204
204
resource "google_compute_region_health_check" "default" {
205
- name = "l7-ilb-basic-check"
205
+ name = "tf-test- l7-ilb-basic-check%{random_suffix} "
206
206
project = "%{project}"
207
207
region = "us-west1"
208
208
@@ -212,7 +212,7 @@ resource "google_compute_region_health_check" "default" {
212
212
}
213
213
214
214
resource "google_compute_region_backend_service" "url_map" {
215
- name = "l7-ilb-backend-service"
215
+ name = "tf-test- l7-ilb-backend-service%{random_suffix} "
216
216
project = "%{project}"
217
217
region = "us-west1"
218
218
load_balancing_scheme = "INTERNAL_MANAGED"
@@ -221,7 +221,7 @@ resource "google_compute_region_backend_service" "url_map" {
221
221
}
222
222
223
223
resource "google_compute_forwarding_rule" "default" {
224
- name = "l7-ilb-forwarding-rule"
224
+ name = "tf-test- l7-ilb-forwarding-rule%{random_suffix} "
225
225
project = "%{project}"
226
226
region = "us-west1"
227
227
load_balancing_scheme = "INTERNAL_MANAGED"
@@ -236,21 +236,21 @@ resource "google_compute_forwarding_rule" "default" {
236
236
}
237
237
238
238
resource "google_compute_region_url_map" "default" {
239
- name = "l7-ilb-map"
239
+ name = "tf-test- l7-ilb-map%{random_suffix} "
240
240
project = "%{project}"
241
241
region = "us-west1"
242
242
default_service = google_compute_region_backend_service.url_map.id
243
243
}
244
244
245
245
resource "google_compute_region_target_http_proxy" "default" {
246
- name = "l7-ilb-proxy"
246
+ name = "tf-test- l7-ilb-proxy%{random_suffix} "
247
247
project = "%{project}"
248
248
region = "us-west1"
249
249
url_map = google_compute_region_url_map.default.id
250
250
}
251
251
252
252
resource "google_compute_region_backend_service" "default" {
253
- name = "authz-service"
253
+ name = "tf-test- authz-service%{random_suffix} "
254
254
project = "%{project}"
255
255
region = "us-west1"
256
256
@@ -260,7 +260,7 @@ resource "google_compute_region_backend_service" "default" {
260
260
}
261
261
262
262
resource "google_compute_region_backend_service" "updated" {
263
- name = "authz-service-updated"
263
+ name = "tf-test- authz-service-updated%{random_suffix} "
264
264
project = "%{project}"
265
265
region = "us-west1"
266
266
@@ -281,7 +281,6 @@ resource "google_network_services_authz_extension" "default" {
281
281
timeout = "0.1s"
282
282
fail_open = false
283
283
forward_headers = ["Authorization"]
284
- wire_format = "EXT_PROC_GRPC"
285
284
286
285
metadata = {
287
286
forwarding_rule_id = google_compute_forwarding_rule.default.id
0 commit comments