Skip to content

Commit 8926a2d

Browse files
committed
tests: replace uri in cassette
1 parent 9154d2c commit 8926a2d

18 files changed

+4210
-400
lines changed

scaleway/scaleway/instance/v1/tests/cassettes/instance_volume.cassette.yaml

Lines changed: 372 additions & 50 deletions
Large diffs are not rendered by default.

scaleway/scaleway/instance/v1/tests/cassettes/test_attach_additional_volume.cassette.yaml

Lines changed: 404 additions & 66 deletions
Large diffs are not rendered by default.

scaleway/scaleway/instance/v1/tests/cassettes/test_create_ip.cassette.yaml

Lines changed: 267 additions & 25 deletions
Large diffs are not rendered by default.

scaleway/scaleway/instance/v1/tests/cassettes/test_create_new_server.cassette.yaml

Lines changed: 523 additions & 36 deletions
Large diffs are not rendered by default.

scaleway/scaleway/instance/v1/tests/cassettes/test_list_server.cassette.yaml

Lines changed: 342 additions & 11 deletions
Large diffs are not rendered by default.

scaleway/scaleway/instance/v1/tests/test_instance_sdk.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
from typing import Generator
32

43
import pytest

scaleway/scaleway/k8s/v1/tests/cassettes/private_network.cassette.yaml

Lines changed: 166 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interactions:
1515
user-agent:
1616
- scaleway-sdk-python/2.0.0
1717
method: POST
18-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs
18+
uri: hello
1919
response:
2020
body:
2121
string: '{"id": "6013eb6d-13a7-4995-a632-800c9e5045e1", "name": "vpc-hardcore-euler",
@@ -63,7 +63,7 @@ interactions:
6363
user-agent:
6464
- scaleway-sdk-python/2.0.0
6565
method: POST
66-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks
66+
uri: hello
6767
response:
6868
body:
6969
string: '{"id": "c2548d2e-8d35-4d20-bb37-6b218dcb6559", "name": "pn-pensive-grothendieck",
@@ -118,7 +118,7 @@ interactions:
118118
user-agent:
119119
- scaleway-sdk-python/2.0.0
120120
method: POST
121-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs
121+
uri: hello
122122
response:
123123
body:
124124
string: '{"id": "163fafdc-352d-4a88-a1cd-01544b7364e1", "name": "vpc-musing-shockley",
@@ -166,7 +166,7 @@ interactions:
166166
user-agent:
167167
- scaleway-sdk-python/2.0.0
168168
method: POST
169-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks
169+
uri: hello
170170
response:
171171
body:
172172
string: '{"id": "cdf39c85-d633-4f16-92e0-bbf2ab5e23b2", "name": "pn-agitated-hertz",
@@ -221,7 +221,7 @@ interactions:
221221
user-agent:
222222
- scaleway-sdk-python/2.0.0
223223
method: POST
224-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs
224+
uri: hello
225225
response:
226226
body:
227227
string: '{"id": "15703a97-178b-41d7-a215-1ae05d7da768", "name": "vpc-distracted-thompson",
@@ -269,7 +269,7 @@ interactions:
269269
user-agent:
270270
- scaleway-sdk-python/2.0.0
271271
method: POST
272-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks
272+
uri: hello
273273
response:
274274
body:
275275
string: '{"id": "b2573395-d1c9-4bfd-9d08-ff261dcf2760", "name": "pn-eager-poitras",
@@ -323,7 +323,7 @@ interactions:
323323
user-agent:
324324
- scaleway-sdk-python/2.0.0
325325
method: POST
326-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs
326+
uri: hello
327327
response:
328328
body:
329329
string: '{"id": "7f7bd042-4432-4959-b107-6fea1c927252", "name": "vpc-wizardly-kare",
@@ -371,7 +371,7 @@ interactions:
371371
user-agent:
372372
- scaleway-sdk-python/2.0.0
373373
method: POST
374-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks
374+
uri: hello
375375
response:
376376
body:
377377
string: '{"id": "7163f988-1c17-4f45-9663-181aeeb942c4", "name": "pn-amazing-clarke",
@@ -426,7 +426,7 @@ interactions:
426426
user-agent:
427427
- scaleway-sdk-python/2.0.0
428428
method: POST
429-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs
429+
uri: hello
430430
response:
431431
body:
432432
string: '{"id": "71857cb0-2695-4b79-9f2f-3c6729a2a2d5", "name": "vpc-compassionate-beaver",
@@ -474,7 +474,7 @@ interactions:
474474
user-agent:
475475
- scaleway-sdk-python/2.0.0
476476
method: POST
477-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks
477+
uri: hello
478478
response:
479479
body:
480480
string: '{"id": "1645ed50-bfe7-4be4-aa6c-4ea03bdc0328", "name": "pn-elastic-almeida",
@@ -528,7 +528,7 @@ interactions:
528528
user-agent:
529529
- scaleway-sdk-python/2.0.0
530530
method: POST
531-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs
531+
uri: hello
532532
response:
533533
body:
534534
string: '{"id": "f1a8dff4-d054-47da-b319-f4babf28dab2", "name": "vpc-crazy-faraday",
@@ -576,7 +576,7 @@ interactions:
576576
user-agent:
577577
- scaleway-sdk-python/2.0.0
578578
method: POST
579-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks
579+
uri: hello
580580
response:
581581
body:
582582
string: '{"id": "c2abd22e-fe37-4441-94c6-886201629199", "name": "pn-sad-hofstadter",
@@ -630,7 +630,7 @@ interactions:
630630
user-agent:
631631
- scaleway-sdk-python/2.0.0
632632
method: POST
633-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs
633+
uri: hello
634634
response:
635635
body:
636636
string: '{"id": "2135442c-2787-4b4b-80eb-569760a2a08b", "name": "vpc-sweet-babbage",
@@ -678,7 +678,7 @@ interactions:
678678
user-agent:
679679
- scaleway-sdk-python/2.0.0
680680
method: POST
681-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks
681+
uri: hello
682682
response:
683683
body:
684684
string: '{"id": "74f7ed95-6e53-4d45-a4ab-18797792b989", "name": "pn-inspiring-perlman",
@@ -733,7 +733,7 @@ interactions:
733733
user-agent:
734734
- scaleway-sdk-python/2.0.0
735735
method: POST
736-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs
736+
uri: hello
737737
response:
738738
body:
739739
string: '{"id": "d5b30302-be55-4ca9-879f-c508e9fe86af", "name": "vpc-xenodochial-meitner",
@@ -781,7 +781,7 @@ interactions:
781781
user-agent:
782782
- scaleway-sdk-python/2.0.0
783783
method: POST
784-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks
784+
uri: hello
785785
response:
786786
body:
787787
string: '{"id": "a6ff1574-71d5-4216-853f-eb4ab70cd145", "name": "pn-youthful-hellman",
@@ -835,7 +835,7 @@ interactions:
835835
user-agent:
836836
- scaleway-sdk-python/2.0.0
837837
method: POST
838-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs
838+
uri: hello
839839
response:
840840
body:
841841
string: '{"id": "7bb567e4-a490-408e-8fc9-5bc9412d3be5", "name": "vpc-keen-shamir",
@@ -883,7 +883,7 @@ interactions:
883883
user-agent:
884884
- scaleway-sdk-python/2.0.0
885885
method: POST
886-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks
886+
uri: hello
887887
response:
888888
body:
889889
string: '{"id": "aece76c2-94e3-4c93-aa65-2dbb9cbbd460", "name": "pn-reverent-brahmagupta",
@@ -935,7 +935,7 @@ interactions:
935935
user-agent:
936936
- scaleway-sdk-python/2.0.0
937937
method: DELETE
938-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/7bb567e4-a490-408e-8fc9-5bc9412d3be5
938+
uri: hello
939939
response:
940940
body:
941941
string: ''
@@ -976,7 +976,7 @@ interactions:
976976
user-agent:
977977
- scaleway-sdk-python/2.0.0
978978
method: POST
979-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs
979+
uri: hello
980980
response:
981981
body:
982982
string: '{"id": "c092cda2-b289-4211-adf3-64dfa2bb8ccc", "name": "vpc-suspicious-kirch",
@@ -1024,7 +1024,7 @@ interactions:
10241024
user-agent:
10251025
- scaleway-sdk-python/2.0.0
10261026
method: POST
1027-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks
1027+
uri: hello
10281028
response:
10291029
body:
10301030
string: '{"id": "f0c01252-afd0-467b-b883-af32860d7d0e", "name": "pn-funny-tereshkova",
@@ -1076,7 +1076,7 @@ interactions:
10761076
user-agent:
10771077
- scaleway-sdk-python/2.0.0
10781078
method: DELETE
1079-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/c092cda2-b289-4211-adf3-64dfa2bb8ccc
1079+
uri: hello
10801080
response:
10811081
body:
10821082
string: ''
@@ -1116,7 +1116,7 @@ interactions:
11161116
user-agent:
11171117
- scaleway-sdk-python/2.0.0
11181118
method: POST
1119-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs
1119+
uri: hello
11201120
response:
11211121
body:
11221122
string: '{"id": "652ef756-f9b9-45c3-a041-cd65c7f665e8", "name": "vpc-sweet-edison",
@@ -1164,7 +1164,7 @@ interactions:
11641164
user-agent:
11651165
- scaleway-sdk-python/2.0.0
11661166
method: POST
1167-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks
1167+
uri: hello
11681168
response:
11691169
body:
11701170
string: '{"id": "f37f7f14-88c4-4851-aa42-d01ccc251be3", "name": "pn-beautiful-wright",
@@ -1216,7 +1216,7 @@ interactions:
12161216
user-agent:
12171217
- scaleway-sdk-python/2.0.0
12181218
method: DELETE
1219-
uri: https://api.scaleway.com/vpc/v2/regions/fr-par/vpcs/652ef756-f9b9-45c3-a041-cd65c7f665e8
1219+
uri: hello
12201220
response:
12211221
body:
12221222
string: ''
@@ -1240,4 +1240,145 @@ interactions:
12401240
status:
12411241
code: 204
12421242
message: No Content
1243+
- request:
1244+
body: '{"enable_routing": false, "name": "vpc-objective-heisenberg", "project_id":
1245+
"11111111-1111-1111-1111-111111111111"}'
1246+
headers:
1247+
Accept-Encoding:
1248+
- gzip, deflate
1249+
Connection:
1250+
- keep-alive
1251+
Content-Length:
1252+
- '115'
1253+
Content-Type:
1254+
- application/json; charset=utf-8
1255+
accept:
1256+
- application/json
1257+
user-agent:
1258+
- scaleway-sdk-python/2.0.0
1259+
method: POST
1260+
uri: hello
1261+
response:
1262+
body:
1263+
string: '{"id": "8ec02d88-018e-4922-bdad-2f08859d5c9f", "name": "vpc-objective-heisenberg",
1264+
"tags": [], "organization_id": "11111111-1111-1111-1111-111111111111", "created_at":
1265+
"2025-08-28T13:23:27.786408Z", "updated_at": "2025-08-28T13:23:27.786408Z",
1266+
"project_id": "11111111-1111-1111-1111-111111111111", "is_default": false,
1267+
"private_network_count": 0, "routing_enabled": true, "custom_routes_propagation_enabled":
1268+
true, "region": "fr-par"}'
1269+
headers:
1270+
content-length:
1271+
- '411'
1272+
content-security-policy:
1273+
- default-src 'none'; frame-ancestors 'none'
1274+
content-type:
1275+
- application/json
1276+
date:
1277+
- Thu, 28 Aug 2025 13:23:27 GMT
1278+
server:
1279+
- Scaleway API Gateway (fr-par-2;edge02)
1280+
strict-transport-security:
1281+
- max-age=63072000
1282+
x-content-type-options:
1283+
- nosniff
1284+
x-frame-options:
1285+
- DENY
1286+
x-request-id:
1287+
- bf6a7828-e3d0-485f-8db3-159083eb19b0
1288+
status:
1289+
code: 200
1290+
message: OK
1291+
- request:
1292+
body: '{"default_route_propagation_enabled": true, "name": "pn-relaxed-montalcini",
1293+
"project_id": "11111111-1111-1111-1111-111111111111", "vpc_id": "8ec02d88-018e-4922-bdad-2f08859d5c9f"}'
1294+
headers:
1295+
Accept-Encoding:
1296+
- gzip, deflate
1297+
Connection:
1298+
- keep-alive
1299+
Content-Length:
1300+
- '180'
1301+
Content-Type:
1302+
- application/json; charset=utf-8
1303+
accept:
1304+
- application/json
1305+
user-agent:
1306+
- scaleway-sdk-python/2.0.0
1307+
method: POST
1308+
uri: hello
1309+
response:
1310+
body:
1311+
string: '{"id": "805fa631-97d4-48c4-973e-f83ef4bec606", "name": "pn-relaxed-montalcini",
1312+
"tags": [], "organization_id": "11111111-1111-1111-1111-111111111111", "created_at":
1313+
"2025-08-28T13:23:27.901856Z", "updated_at": "2025-08-28T13:23:27.901856Z",
1314+
"project_id": "11111111-1111-1111-1111-111111111111", "subnets": [{"id": "fb21c94f-cb59-4c8a-ad3b-3212b91e4161",
1315+
"created_at": "2025-08-28T13:23:27.901856Z", "updated_at": "2025-08-28T13:23:27.901856Z",
1316+
"subnet": "172.16.156.0/22", "project_id": "11111111-1111-1111-1111-111111111111",
1317+
"private_network_id": "805fa631-97d4-48c4-973e-f83ef4bec606", "vpc_id": "8ec02d88-018e-4922-bdad-2f08859d5c9f"},
1318+
{"id": "8ff64464-3de6-4cde-a562-d297b46a6bd3", "created_at": "2025-08-28T13:23:27.901856Z",
1319+
"updated_at": "2025-08-28T13:23:27.901856Z", "subnet": "fd64:badd:7710:7049::/64",
1320+
"project_id": "11111111-1111-1111-1111-111111111111", "private_network_id":
1321+
"805fa631-97d4-48c4-973e-f83ef4bec606", "vpc_id": "8ec02d88-018e-4922-bdad-2f08859d5c9f"}],
1322+
"vpc_id": "8ec02d88-018e-4922-bdad-2f08859d5c9f", "dhcp_enabled": true, "default_route_propagation_enabled":
1323+
true, "region": "fr-par"}'
1324+
headers:
1325+
content-length:
1326+
- '1067'
1327+
content-security-policy:
1328+
- default-src 'none'; frame-ancestors 'none'
1329+
content-type:
1330+
- application/json
1331+
date:
1332+
- Thu, 28 Aug 2025 13:23:28 GMT
1333+
server:
1334+
- Scaleway API Gateway (fr-par-2;edge03)
1335+
strict-transport-security:
1336+
- max-age=63072000
1337+
x-content-type-options:
1338+
- nosniff
1339+
x-frame-options:
1340+
- DENY
1341+
x-request-id:
1342+
- 2e061eeb-393a-4ba4-9a0b-fc0704b6630c
1343+
status:
1344+
code: 200
1345+
message: OK
1346+
- request:
1347+
body: '{}'
1348+
headers:
1349+
Accept-Encoding:
1350+
- gzip, deflate
1351+
Connection:
1352+
- keep-alive
1353+
Content-Length:
1354+
- '2'
1355+
accept:
1356+
- application/json
1357+
user-agent:
1358+
- scaleway-sdk-python/2.0.0
1359+
method: DELETE
1360+
uri: hello
1361+
response:
1362+
body:
1363+
string: ''
1364+
headers:
1365+
content-security-policy:
1366+
- default-src 'none'; frame-ancestors 'none'
1367+
content-type:
1368+
- application/json
1369+
date:
1370+
- Thu, 28 Aug 2025 13:23:52 GMT
1371+
server:
1372+
- Scaleway API Gateway (fr-par-2;edge02)
1373+
strict-transport-security:
1374+
- max-age=63072000
1375+
x-content-type-options:
1376+
- nosniff
1377+
x-frame-options:
1378+
- DENY
1379+
x-request-id:
1380+
- 8c01a367-ff51-4ae3-8f50-caec5e7cd09d
1381+
status:
1382+
code: 204
1383+
message: No Content
12431384
version: 1

0 commit comments

Comments
 (0)