Skip to content

Commit 091c9ae

Browse files
committed
record cassettes
1 parent cbdbf70 commit 091c9ae

File tree

7 files changed

+582
-1489
lines changed

7 files changed

+582
-1489
lines changed

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

Lines changed: 49 additions & 366 deletions
Large diffs are not rendered by default.
Lines changed: 322 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,322 @@
1+
interactions:
2+
- request:
3+
body: '{"from_empty": {"size": 10000000000}, "name": "vol-cranky-lovelace", "project_id":
4+
"d3520a52-2c75-4ba0-bda8-82dd087f07f2"}'
5+
headers:
6+
Accept-Encoding:
7+
- gzip, deflate
8+
Connection:
9+
- keep-alive
10+
Content-Length:
11+
- '122'
12+
Content-Type:
13+
- application/json; charset=utf-8
14+
accept:
15+
- application/json
16+
user-agent:
17+
- scaleway-sdk-python/2.0.0
18+
method: POST
19+
uri: https://api.scaleway.com/block/v1alpha1/zones/fr-par-1/volumes
20+
response:
21+
body:
22+
string: '{"id":"67bff869-1e1f-4642-a5c2-6c599d6a5868","name":"vol-cranky-lovelace","type":"sbs_5k","size":10000000000,"project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2","created_at":"2025-08-27T15:00:30.205016Z","updated_at":"2025-08-27T15:00:30.205016Z","references":[],"parent_snapshot_id":null,"status":"creating","tags":[],"specs":{"perf_iops":5000,"class":"sbs"},"last_detached_at":null,"zone":"fr-par-1"}'
23+
headers:
24+
content-length:
25+
- '402'
26+
content-security-policy:
27+
- default-src 'none'; frame-ancestors 'none'
28+
content-type:
29+
- application/json
30+
date:
31+
- Wed, 27 Aug 2025 15:00:30 GMT
32+
server:
33+
- Scaleway API Gateway (fr-par-1;edge01)
34+
strict-transport-security:
35+
- max-age=63072000
36+
x-content-type-options:
37+
- nosniff
38+
x-frame-options:
39+
- DENY
40+
x-request-id:
41+
- 2e295ae6-0f30-4f46-be4d-8820520c2f7b
42+
status:
43+
code: 200
44+
message: OK
45+
- request:
46+
body: '{}'
47+
headers:
48+
Accept-Encoding:
49+
- gzip, deflate
50+
Connection:
51+
- keep-alive
52+
Content-Length:
53+
- '2'
54+
accept:
55+
- application/json
56+
user-agent:
57+
- scaleway-sdk-python/2.0.0
58+
method: GET
59+
uri: https://api.scaleway.com/block/v1alpha1/zones/fr-par-1/volumes/67bff869-1e1f-4642-a5c2-6c599d6a5868
60+
response:
61+
body:
62+
string: '{"id":"67bff869-1e1f-4642-a5c2-6c599d6a5868","name":"vol-cranky-lovelace","type":"sbs_5k","size":10000000000,"project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2","created_at":"2025-08-27T15:00:30.205016Z","updated_at":"2025-08-27T15:00:30.205016Z","references":[],"parent_snapshot_id":null,"status":"available","tags":[],"specs":{"perf_iops":5000,"class":"sbs"},"last_detached_at":null,"zone":"fr-par-1"}'
63+
headers:
64+
content-length:
65+
- '403'
66+
content-security-policy:
67+
- default-src 'none'; frame-ancestors 'none'
68+
content-type:
69+
- application/json
70+
date:
71+
- Wed, 27 Aug 2025 15:00:31 GMT
72+
server:
73+
- Scaleway API Gateway (fr-par-1;edge01)
74+
strict-transport-security:
75+
- max-age=63072000
76+
x-content-type-options:
77+
- nosniff
78+
x-frame-options:
79+
- DENY
80+
x-request-id:
81+
- d8b10a79-718a-4441-9f3a-7ecd884b2c83
82+
status:
83+
code: 200
84+
message: OK
85+
- request:
86+
body: '{"volume_id": "67bff869-1e1f-4642-a5c2-6c599d6a5868", "volume_type": "sbs_volume"}'
87+
headers:
88+
Accept-Encoding:
89+
- gzip, deflate
90+
Connection:
91+
- keep-alive
92+
Content-Length:
93+
- '82'
94+
Content-Type:
95+
- application/json; charset=utf-8
96+
accept:
97+
- application/json
98+
user-agent:
99+
- scaleway-sdk-python/2.0.0
100+
method: POST
101+
uri: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/9ffe9c9a-a3d7-47ec-9618-74d697cbbe03/attach-volume
102+
response:
103+
body:
104+
string: '{"server": {"id": "9ffe9c9a-a3d7-47ec-9618-74d697cbbe03", "name": "test-sdk-python-fixture",
105+
"arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization":
106+
"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "project": "d3520a52-2c75-4ba0-bda8-82dd087f07f2",
107+
"hostname": "test-sdk-python-fixture", "image": {"id": "c00ae53c-1e29-4087-a384-47f3c5c1cd84",
108+
"name": "Ubuntu 20.04 Focal Fossa", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db",
109+
"project": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "6644dfd6-0731-45cc-a581-62f561eff7bf",
110+
"name": "Ubuntu 20.04 Focal Fossa", "volume_type": "l_ssd", "size": 10000000000},
111+
"extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2025-02-03T13:36:50.774356+00:00",
112+
"modification_date": "2025-02-03T13:36:50.774356+00:00", "default_bootscript":
113+
null, "from_server": "", "state": "available", "tags": [], "zone": "fr-par-1"},
114+
"volumes": {"0": {"boot": false, "id": "6026d56e-ff7a-4485-939d-bf6a27e058f2",
115+
"name": "Ubuntu 20.04 Focal Fossa", "volume_type": "l_ssd", "export_uri":
116+
null, "organization": "d3520a52-2c75-4ba0-bda8-82dd087f07f2", "project": "d3520a52-2c75-4ba0-bda8-82dd087f07f2",
117+
"server": {"id": "9ffe9c9a-a3d7-47ec-9618-74d697cbbe03", "name": "test-sdk-python-fixture"},
118+
"size": 10000000000, "state": "available", "creation_date": "2025-08-27T15:00:29.570756+00:00",
119+
"modification_date": "2025-08-27T15:00:29.570756+00:00", "tags": [], "zone":
120+
"fr-par-1"}, "1": {"boot": false, "volume_type": "sbs_volume", "id": "67bff869-1e1f-4642-a5c2-6c599d6a5868",
121+
"zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false,
122+
"state_detail": "", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:c5:77:af",
123+
"routed_ip_enabled": true, "ipv6": null, "extra_networks": [], "dynamic_ip_required":
124+
false, "enable_ipv6": false, "private_ip": null, "creation_date": "2025-08-27T15:00:29.570756+00:00",
125+
"modification_date": "2025-08-27T15:00:29.570756+00:00", "bootscript": null,
126+
"security_group": {"id": "1c1fc99f-b2de-408d-9eb0-da801a3e2744", "name": "Default
127+
security group"}, "location": null, "maintenances": [], "allowed_actions":
128+
[], "placement_group": null, "private_nics": [], "zone": "fr-par-1", "filesystems":
129+
[], "end_of_service": false}}'
130+
headers:
131+
content-length:
132+
- '2261'
133+
content-security-policy:
134+
- default-src 'none'; frame-ancestors 'none'
135+
content-type:
136+
- application/json
137+
date:
138+
- Wed, 27 Aug 2025 15:00:32 GMT
139+
server:
140+
- Scaleway API Gateway (fr-par-1;edge02)
141+
strict-transport-security:
142+
- max-age=63072000
143+
x-content-type-options:
144+
- nosniff
145+
x-frame-options:
146+
- DENY
147+
x-request-id:
148+
- 615a1234-8cb0-43ea-af56-7afd620c1652
149+
status:
150+
code: 200
151+
message: OK
152+
- request:
153+
body: '{}'
154+
headers:
155+
Accept-Encoding:
156+
- gzip, deflate
157+
Connection:
158+
- keep-alive
159+
Content-Length:
160+
- '2'
161+
accept:
162+
- application/json
163+
user-agent:
164+
- scaleway-sdk-python/2.0.0
165+
method: GET
166+
uri: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/9ffe9c9a-a3d7-47ec-9618-74d697cbbe03
167+
response:
168+
body:
169+
string: '{"server": {"id": "9ffe9c9a-a3d7-47ec-9618-74d697cbbe03", "name": "test-sdk-python-fixture",
170+
"arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization":
171+
"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "project": "d3520a52-2c75-4ba0-bda8-82dd087f07f2",
172+
"hostname": "test-sdk-python-fixture", "image": {"id": "c00ae53c-1e29-4087-a384-47f3c5c1cd84",
173+
"name": "Ubuntu 20.04 Focal Fossa", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db",
174+
"project": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "6644dfd6-0731-45cc-a581-62f561eff7bf",
175+
"name": "Ubuntu 20.04 Focal Fossa", "volume_type": "l_ssd", "size": 10000000000},
176+
"extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2025-02-03T13:36:50.774356+00:00",
177+
"modification_date": "2025-02-03T13:36:50.774356+00:00", "default_bootscript":
178+
null, "from_server": "", "state": "available", "tags": [], "zone": "fr-par-1"},
179+
"volumes": {"0": {"boot": false, "id": "6026d56e-ff7a-4485-939d-bf6a27e058f2",
180+
"name": "Ubuntu 20.04 Focal Fossa", "volume_type": "l_ssd", "export_uri":
181+
null, "organization": "d3520a52-2c75-4ba0-bda8-82dd087f07f2", "project": "d3520a52-2c75-4ba0-bda8-82dd087f07f2",
182+
"server": {"id": "9ffe9c9a-a3d7-47ec-9618-74d697cbbe03", "name": "test-sdk-python-fixture"},
183+
"size": 10000000000, "state": "available", "creation_date": "2025-08-27T15:00:29.570756+00:00",
184+
"modification_date": "2025-08-27T15:00:29.570756+00:00", "tags": [], "zone":
185+
"fr-par-1"}, "1": {"boot": false, "volume_type": "sbs_volume", "id": "67bff869-1e1f-4642-a5c2-6c599d6a5868",
186+
"zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false,
187+
"state_detail": "", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:c5:77:af",
188+
"routed_ip_enabled": true, "ipv6": null, "extra_networks": [], "dynamic_ip_required":
189+
false, "enable_ipv6": false, "private_ip": null, "creation_date": "2025-08-27T15:00:29.570756+00:00",
190+
"modification_date": "2025-08-27T15:00:29.570756+00:00", "bootscript": null,
191+
"security_group": {"id": "1c1fc99f-b2de-408d-9eb0-da801a3e2744", "name": "Default
192+
security group"}, "location": null, "maintenances": [], "allowed_actions":
193+
[], "placement_group": null, "private_nics": [], "zone": "fr-par-1", "filesystems":
194+
[], "end_of_service": false}}'
195+
headers:
196+
content-length:
197+
- '2261'
198+
content-security-policy:
199+
- default-src 'none'; frame-ancestors 'none'
200+
content-type:
201+
- application/json
202+
date:
203+
- Wed, 27 Aug 2025 15:00:32 GMT
204+
server:
205+
- Scaleway API Gateway (fr-par-1;edge02)
206+
strict-transport-security:
207+
- max-age=63072000
208+
x-content-type-options:
209+
- nosniff
210+
x-frame-options:
211+
- DENY
212+
x-request-id:
213+
- f16670dc-1ad3-4a06-940a-7ff4f3cfe0cc
214+
status:
215+
code: 200
216+
message: OK
217+
- request:
218+
body: '{}'
219+
headers:
220+
Accept-Encoding:
221+
- gzip, deflate
222+
Connection:
223+
- keep-alive
224+
Content-Length:
225+
- '2'
226+
accept:
227+
- application/json
228+
user-agent:
229+
- scaleway-sdk-python/2.0.0
230+
method: GET
231+
uri: https://api.scaleway.com/block/v1alpha1/zones/fr-par-1/volumes/67bff869-1e1f-4642-a5c2-6c599d6a5868
232+
response:
233+
body:
234+
string: '{"id":"67bff869-1e1f-4642-a5c2-6c599d6a5868","name":"vol-cranky-lovelace","type":"sbs_5k","size":10000000000,"project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2","created_at":"2025-08-27T15:00:30.205016Z","updated_at":"2025-08-27T15:00:31.523897Z","references":[{"id":"fd617ca5-8830-4bf7-8bc6-6e0e1b67d4d5","product_resource_type":"instance_server","product_resource_id":"9ffe9c9a-a3d7-47ec-9618-74d697cbbe03","created_at":"2025-08-27T15:00:31.523897Z","type":"exclusive","status":"attached"}],"parent_snapshot_id":null,"status":"in_use","tags":[],"specs":{"perf_iops":5000,"class":"sbs"},"last_detached_at":null,"zone":"fr-par-1"}'
235+
headers:
236+
content-length:
237+
- '630'
238+
content-security-policy:
239+
- default-src 'none'; frame-ancestors 'none'
240+
content-type:
241+
- application/json
242+
date:
243+
- Wed, 27 Aug 2025 15:00:33 GMT
244+
server:
245+
- Scaleway API Gateway (fr-par-1;edge02)
246+
strict-transport-security:
247+
- max-age=63072000
248+
x-content-type-options:
249+
- nosniff
250+
x-frame-options:
251+
- DENY
252+
x-request-id:
253+
- 4fe1d259-9e87-4395-a4a8-696d1dc92aaa
254+
status:
255+
code: 200
256+
message: OK
257+
- request:
258+
body: '{}'
259+
headers:
260+
Accept-Encoding:
261+
- gzip, deflate
262+
Connection:
263+
- keep-alive
264+
Content-Length:
265+
- '2'
266+
accept:
267+
- application/json
268+
user-agent:
269+
- scaleway-sdk-python/2.0.0
270+
method: GET
271+
uri: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/9ffe9c9a-a3d7-47ec-9618-74d697cbbe03
272+
response:
273+
body:
274+
string: '{"server": {"id": "9ffe9c9a-a3d7-47ec-9618-74d697cbbe03", "name": "test-sdk-python-fixture",
275+
"arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization":
276+
"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "project": "d3520a52-2c75-4ba0-bda8-82dd087f07f2",
277+
"hostname": "test-sdk-python-fixture", "image": {"id": "c00ae53c-1e29-4087-a384-47f3c5c1cd84",
278+
"name": "Ubuntu 20.04 Focal Fossa", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db",
279+
"project": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"id": "6644dfd6-0731-45cc-a581-62f561eff7bf",
280+
"name": "Ubuntu 20.04 Focal Fossa", "volume_type": "l_ssd", "size": 10000000000},
281+
"extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2025-02-03T13:36:50.774356+00:00",
282+
"modification_date": "2025-02-03T13:36:50.774356+00:00", "default_bootscript":
283+
null, "from_server": "", "state": "available", "tags": [], "zone": "fr-par-1"},
284+
"volumes": {"0": {"boot": false, "id": "6026d56e-ff7a-4485-939d-bf6a27e058f2",
285+
"name": "Ubuntu 20.04 Focal Fossa", "volume_type": "l_ssd", "export_uri":
286+
null, "organization": "d3520a52-2c75-4ba0-bda8-82dd087f07f2", "project": "d3520a52-2c75-4ba0-bda8-82dd087f07f2",
287+
"server": {"id": "9ffe9c9a-a3d7-47ec-9618-74d697cbbe03", "name": "test-sdk-python-fixture"},
288+
"size": 10000000000, "state": "available", "creation_date": "2025-08-27T15:00:29.570756+00:00",
289+
"modification_date": "2025-08-27T15:00:29.570756+00:00", "tags": [], "zone":
290+
"fr-par-1"}, "1": {"boot": false, "volume_type": "sbs_volume", "id": "67bff869-1e1f-4642-a5c2-6c599d6a5868",
291+
"zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false,
292+
"state_detail": "", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:c5:77:af",
293+
"routed_ip_enabled": true, "ipv6": null, "extra_networks": [], "dynamic_ip_required":
294+
false, "enable_ipv6": false, "private_ip": null, "creation_date": "2025-08-27T15:00:29.570756+00:00",
295+
"modification_date": "2025-08-27T15:00:29.570756+00:00", "bootscript": null,
296+
"security_group": {"id": "1c1fc99f-b2de-408d-9eb0-da801a3e2744", "name": "Default
297+
security group"}, "location": null, "maintenances": [], "allowed_actions":
298+
["poweron", "backup"], "placement_group": null, "private_nics": [], "zone":
299+
"fr-par-1", "filesystems": [], "end_of_service": false}}'
300+
headers:
301+
content-length:
302+
- '2280'
303+
content-security-policy:
304+
- default-src 'none'; frame-ancestors 'none'
305+
content-type:
306+
- application/json
307+
date:
308+
- Wed, 27 Aug 2025 15:00:33 GMT
309+
server:
310+
- Scaleway API Gateway (fr-par-1;edge01)
311+
strict-transport-security:
312+
- max-age=63072000
313+
x-content-type-options:
314+
- nosniff
315+
x-frame-options:
316+
- DENY
317+
x-request-id:
318+
- 1e34a138-8da8-440c-be9a-ee00283a93c9
319+
status:
320+
code: 200
321+
message: OK
322+
version: 1

0 commit comments

Comments
 (0)