Skip to content

Commit 61ef6b7

Browse files
committed
rename test
1 parent a42d06d commit 61ef6b7

File tree

2 files changed

+34
-34
lines changed

2 files changed

+34
-34
lines changed

internal/services/vpc/testdata/vpc-import-by-identity.cassette.yaml renamed to internal/services/vpc/testdata/vpc-by-identity.cassette.yaml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ interactions:
2929
trailer: {}
3030
content_length: 402
3131
uncompressed: false
32-
body: '{"created_at":"2025-09-08T19:34:16.635250Z","custom_routes_propagation_enabled":true,"id":"090d68b4-0cb0-48b0-9d9f-235b5f337746","is_default":false,"name":"test-vpc-import","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","routing_enabled":true,"tags":[],"updated_at":"2025-09-08T19:34:16.635250Z"}'
32+
body: '{"created_at":"2025-09-09T07:33:09.773062Z","custom_routes_propagation_enabled":true,"id":"1a7f903a-ce49-4146-ae09-ed96d8b962b6","is_default":false,"name":"test-vpc-import","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","routing_enabled":true,"tags":[],"updated_at":"2025-09-09T07:33:09.773062Z"}'
3333
headers:
3434
Content-Length:
3535
- "402"
@@ -38,7 +38,7 @@ interactions:
3838
Content-Type:
3939
- application/json
4040
Date:
41-
- Mon, 08 Sep 2025 19:34:16 GMT
41+
- Tue, 09 Sep 2025 07:33:09 GMT
4242
Server:
4343
- Scaleway API Gateway (fr-par-3;edge02)
4444
Strict-Transport-Security:
@@ -48,10 +48,10 @@ interactions:
4848
X-Frame-Options:
4949
- DENY
5050
X-Request-Id:
51-
- a8cb8ed2-8e2b-4845-b25d-e54d98bab213
51+
- d57e77ca-3927-4636-8f40-35e5d443de8a
5252
status: 200 OK
5353
code: 200
54-
duration: 239.305042ms
54+
duration: 219.512333ms
5555
- id: 1
5656
request:
5757
proto: HTTP/1.1
@@ -68,7 +68,7 @@ interactions:
6868
headers:
6969
User-Agent:
7070
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.4; darwin; arm64) terraform-provider/develop terraform/terraform-tests
71-
url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/090d68b4-0cb0-48b0-9d9f-235b5f337746
71+
url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/1a7f903a-ce49-4146-ae09-ed96d8b962b6
7272
method: GET
7373
response:
7474
proto: HTTP/2.0
@@ -78,7 +78,7 @@ interactions:
7878
trailer: {}
7979
content_length: 402
8080
uncompressed: false
81-
body: '{"created_at":"2025-09-08T19:34:16.635250Z","custom_routes_propagation_enabled":true,"id":"090d68b4-0cb0-48b0-9d9f-235b5f337746","is_default":false,"name":"test-vpc-import","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","routing_enabled":true,"tags":[],"updated_at":"2025-09-08T19:34:16.635250Z"}'
81+
body: '{"created_at":"2025-09-09T07:33:09.773062Z","custom_routes_propagation_enabled":true,"id":"1a7f903a-ce49-4146-ae09-ed96d8b962b6","is_default":false,"name":"test-vpc-import","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","routing_enabled":true,"tags":[],"updated_at":"2025-09-09T07:33:09.773062Z"}'
8282
headers:
8383
Content-Length:
8484
- "402"
@@ -87,7 +87,7 @@ interactions:
8787
Content-Type:
8888
- application/json
8989
Date:
90-
- Mon, 08 Sep 2025 19:34:16 GMT
90+
- Tue, 09 Sep 2025 07:33:09 GMT
9191
Server:
9292
- Scaleway API Gateway (fr-par-3;edge02)
9393
Strict-Transport-Security:
@@ -97,10 +97,10 @@ interactions:
9797
X-Frame-Options:
9898
- DENY
9999
X-Request-Id:
100-
- 91eed587-90d0-4b15-95fb-1d3562c937c6
100+
- 78e49a99-516c-43e2-b292-bc494f3dc43f
101101
status: 200 OK
102102
code: 200
103-
duration: 67.381584ms
103+
duration: 190.115834ms
104104
- id: 2
105105
request:
106106
proto: HTTP/1.1
@@ -117,7 +117,7 @@ interactions:
117117
headers:
118118
User-Agent:
119119
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.4; darwin; arm64) terraform-provider/develop terraform/terraform-tests
120-
url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/090d68b4-0cb0-48b0-9d9f-235b5f337746
120+
url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/1a7f903a-ce49-4146-ae09-ed96d8b962b6
121121
method: GET
122122
response:
123123
proto: HTTP/2.0
@@ -127,7 +127,7 @@ interactions:
127127
trailer: {}
128128
content_length: 402
129129
uncompressed: false
130-
body: '{"created_at":"2025-09-08T19:34:16.635250Z","custom_routes_propagation_enabled":true,"id":"090d68b4-0cb0-48b0-9d9f-235b5f337746","is_default":false,"name":"test-vpc-import","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","routing_enabled":true,"tags":[],"updated_at":"2025-09-08T19:34:16.635250Z"}'
130+
body: '{"created_at":"2025-09-09T07:33:09.773062Z","custom_routes_propagation_enabled":true,"id":"1a7f903a-ce49-4146-ae09-ed96d8b962b6","is_default":false,"name":"test-vpc-import","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","routing_enabled":true,"tags":[],"updated_at":"2025-09-09T07:33:09.773062Z"}'
131131
headers:
132132
Content-Length:
133133
- "402"
@@ -136,7 +136,7 @@ interactions:
136136
Content-Type:
137137
- application/json
138138
Date:
139-
- Mon, 08 Sep 2025 19:34:16 GMT
139+
- Tue, 09 Sep 2025 07:33:10 GMT
140140
Server:
141141
- Scaleway API Gateway (fr-par-3;edge02)
142142
Strict-Transport-Security:
@@ -146,10 +146,10 @@ interactions:
146146
X-Frame-Options:
147147
- DENY
148148
X-Request-Id:
149-
- 18052567-b9a1-4f6f-9d33-2c67a8fd7bbe
149+
- 2804e8ad-a055-4c3a-9ee1-61634b2a5650
150150
status: 200 OK
151151
code: 200
152-
duration: 59.546792ms
152+
duration: 25.1385ms
153153
- id: 3
154154
request:
155155
proto: HTTP/1.1
@@ -166,7 +166,7 @@ interactions:
166166
headers:
167167
User-Agent:
168168
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.4; darwin; arm64) terraform-provider/develop terraform/terraform-tests
169-
url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/090d68b4-0cb0-48b0-9d9f-235b5f337746
169+
url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/1a7f903a-ce49-4146-ae09-ed96d8b962b6
170170
method: GET
171171
response:
172172
proto: HTTP/2.0
@@ -176,7 +176,7 @@ interactions:
176176
trailer: {}
177177
content_length: 402
178178
uncompressed: false
179-
body: '{"created_at":"2025-09-08T19:34:16.635250Z","custom_routes_propagation_enabled":true,"id":"090d68b4-0cb0-48b0-9d9f-235b5f337746","is_default":false,"name":"test-vpc-import","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","routing_enabled":true,"tags":[],"updated_at":"2025-09-08T19:34:16.635250Z"}'
179+
body: '{"created_at":"2025-09-09T07:33:09.773062Z","custom_routes_propagation_enabled":true,"id":"1a7f903a-ce49-4146-ae09-ed96d8b962b6","is_default":false,"name":"test-vpc-import","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","routing_enabled":true,"tags":[],"updated_at":"2025-09-09T07:33:09.773062Z"}'
180180
headers:
181181
Content-Length:
182182
- "402"
@@ -185,7 +185,7 @@ interactions:
185185
Content-Type:
186186
- application/json
187187
Date:
188-
- Mon, 08 Sep 2025 19:34:17 GMT
188+
- Tue, 09 Sep 2025 07:33:10 GMT
189189
Server:
190190
- Scaleway API Gateway (fr-par-3;edge02)
191191
Strict-Transport-Security:
@@ -195,10 +195,10 @@ interactions:
195195
X-Frame-Options:
196196
- DENY
197197
X-Request-Id:
198-
- 312f0c6a-ca13-45cf-a551-9050fa2b7b71
198+
- a028f7c1-96c9-4486-bb2b-c316748550f3
199199
status: 200 OK
200200
code: 200
201-
duration: 27.413833ms
201+
duration: 28.649583ms
202202
- id: 4
203203
request:
204204
proto: HTTP/1.1
@@ -215,7 +215,7 @@ interactions:
215215
headers:
216216
User-Agent:
217217
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.4; darwin; arm64) terraform-provider/develop terraform/terraform-tests
218-
url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/090d68b4-0cb0-48b0-9d9f-235b5f337746
218+
url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/1a7f903a-ce49-4146-ae09-ed96d8b962b6
219219
method: GET
220220
response:
221221
proto: HTTP/2.0
@@ -225,7 +225,7 @@ interactions:
225225
trailer: {}
226226
content_length: 402
227227
uncompressed: false
228-
body: '{"created_at":"2025-09-08T19:34:16.635250Z","custom_routes_propagation_enabled":true,"id":"090d68b4-0cb0-48b0-9d9f-235b5f337746","is_default":false,"name":"test-vpc-import","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","routing_enabled":true,"tags":[],"updated_at":"2025-09-08T19:34:16.635250Z"}'
228+
body: '{"created_at":"2025-09-09T07:33:09.773062Z","custom_routes_propagation_enabled":true,"id":"1a7f903a-ce49-4146-ae09-ed96d8b962b6","is_default":false,"name":"test-vpc-import","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","private_network_count":0,"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","region":"fr-par","routing_enabled":true,"tags":[],"updated_at":"2025-09-09T07:33:09.773062Z"}'
229229
headers:
230230
Content-Length:
231231
- "402"
@@ -234,7 +234,7 @@ interactions:
234234
Content-Type:
235235
- application/json
236236
Date:
237-
- Mon, 08 Sep 2025 19:34:17 GMT
237+
- Tue, 09 Sep 2025 07:33:10 GMT
238238
Server:
239239
- Scaleway API Gateway (fr-par-3;edge02)
240240
Strict-Transport-Security:
@@ -244,10 +244,10 @@ interactions:
244244
X-Frame-Options:
245245
- DENY
246246
X-Request-Id:
247-
- 4ab4acca-9106-4ebf-8b3e-ebb94570f657
247+
- 43ec540d-c279-40b2-91e2-448cabe98986
248248
status: 200 OK
249249
code: 200
250-
duration: 28.409666ms
250+
duration: 49.092125ms
251251
- id: 5
252252
request:
253253
proto: HTTP/1.1
@@ -264,7 +264,7 @@ interactions:
264264
headers:
265265
User-Agent:
266266
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.4; darwin; arm64) terraform-provider/develop terraform/terraform-tests
267-
url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/090d68b4-0cb0-48b0-9d9f-235b5f337746
267+
url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/1a7f903a-ce49-4146-ae09-ed96d8b962b6
268268
method: DELETE
269269
response:
270270
proto: HTTP/2.0
@@ -281,7 +281,7 @@ interactions:
281281
Content-Type:
282282
- application/json
283283
Date:
284-
- Mon, 08 Sep 2025 19:34:17 GMT
284+
- Tue, 09 Sep 2025 07:33:11 GMT
285285
Server:
286286
- Scaleway API Gateway (fr-par-3;edge02)
287287
Strict-Transport-Security:
@@ -291,10 +291,10 @@ interactions:
291291
X-Frame-Options:
292292
- DENY
293293
X-Request-Id:
294-
- 10bf3c2b-582d-443c-88a1-473510ed9d7b
294+
- b033489c-edf6-418e-a7c0-22da740f018f
295295
status: 204 No Content
296296
code: 204
297-
duration: 150.545ms
297+
duration: 169.184708ms
298298
- id: 6
299299
request:
300300
proto: HTTP/1.1
@@ -311,7 +311,7 @@ interactions:
311311
headers:
312312
User-Agent:
313313
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.24.4; darwin; arm64) terraform-provider/develop terraform/terraform-tests
314-
url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/090d68b4-0cb0-48b0-9d9f-235b5f337746
314+
url: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/1a7f903a-ce49-4146-ae09-ed96d8b962b6
315315
method: GET
316316
response:
317317
proto: HTTP/2.0
@@ -321,7 +321,7 @@ interactions:
321321
trailer: {}
322322
content_length: 124
323323
uncompressed: false
324-
body: '{"message":"resource is not found","resource":"vpc","resource_id":"090d68b4-0cb0-48b0-9d9f-235b5f337746","type":"not_found"}'
324+
body: '{"message":"resource is not found","resource":"vpc","resource_id":"1a7f903a-ce49-4146-ae09-ed96d8b962b6","type":"not_found"}'
325325
headers:
326326
Content-Length:
327327
- "124"
@@ -330,7 +330,7 @@ interactions:
330330
Content-Type:
331331
- application/json
332332
Date:
333-
- Mon, 08 Sep 2025 19:34:17 GMT
333+
- Tue, 09 Sep 2025 07:33:11 GMT
334334
Server:
335335
- Scaleway API Gateway (fr-par-3;edge02)
336336
Strict-Transport-Security:
@@ -340,7 +340,7 @@ interactions:
340340
X-Frame-Options:
341341
- DENY
342342
X-Request-Id:
343-
- 201b719b-e8a8-48a2-ba73-cc6f5056494f
343+
- 2a8f255f-d868-45f8-ab02-3e4d15ec533c
344344
status: 404 Not Found
345345
code: 404
346-
duration: 24.397375ms
346+
duration: 28.5965ms

internal/services/vpc/vpc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func TestAccVPC_DisableRouting(t *testing.T) {
151151
})
152152
}
153153

154-
func TestAccVPC_ImportByIdentity(t *testing.T) {
154+
func TestAccVPC_ByIdentity(t *testing.T) {
155155
tt := acctest.NewTestTools(t)
156156
defer tt.Cleanup()
157157

0 commit comments

Comments
 (0)