Skip to content

Commit 1f0d747

Browse files
committed
record cassettes
1 parent cbdbf70 commit 1f0d747

7 files changed

+421
-1524
lines changed

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

Lines changed: 48 additions & 365 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-busy-borg", "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+
- '116'
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":"f8a3d5dd-2c10-4438-a754-3bf1486d88fb","name":"vol-busy-borg","type":"sbs_5k","size":10000000000,"project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2","created_at":"2025-08-27T14:43:21.669866Z","updated_at":"2025-08-27T14:43:21.669866Z","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+
- '396'
26+
content-security-policy:
27+
- default-src 'none'; frame-ancestors 'none'
28+
content-type:
29+
- application/json
30+
date:
31+
- Wed, 27 Aug 2025 14:43:21 GMT
32+
server:
33+
- Scaleway API Gateway (fr-par-1;edge03)
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+
- 680d8009-1692-47e2-874e-b8572f8eaa1e
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/f8a3d5dd-2c10-4438-a754-3bf1486d88fb
60+
response:
61+
body:
62+
string: '{"id":"f8a3d5dd-2c10-4438-a754-3bf1486d88fb","name":"vol-busy-borg","type":"sbs_5k","size":10000000000,"project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2","created_at":"2025-08-27T14:43:21.669866Z","updated_at":"2025-08-27T14:43:21.669866Z","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+
- '397'
66+
content-security-policy:
67+
- default-src 'none'; frame-ancestors 'none'
68+
content-type:
69+
- application/json
70+
date:
71+
- Wed, 27 Aug 2025 14:43:22 GMT
72+
server:
73+
- Scaleway API Gateway (fr-par-1;edge02)
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+
- 4895524e-9cb5-4236-b287-c6492aa6f08d
82+
status:
83+
code: 200
84+
message: OK
85+
- request:
86+
body: '{"volume_id": "f8a3d5dd-2c10-4438-a754-3bf1486d88fb", "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/898b5865-442a-4f7e-871c-54cec406c810/attach-volume
102+
response:
103+
body:
104+
string: '{"server": {"id": "898b5865-442a-4f7e-871c-54cec406c810", "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": "f5943273-3643-4038-8894-38ca5dcb0dcf",
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": "898b5865-442a-4f7e-871c-54cec406c810", "name": "test-sdk-python-fixture"},
118+
"size": 10000000000, "state": "available", "creation_date": "2025-08-27T14:43:21.159683+00:00",
119+
"modification_date": "2025-08-27T14:43:21.159683+00:00", "tags": [], "zone":
120+
"fr-par-1"}, "1": {"boot": false, "volume_type": "sbs_volume", "id": "f8a3d5dd-2c10-4438-a754-3bf1486d88fb",
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:19",
123+
"routed_ip_enabled": true, "ipv6": null, "extra_networks": [], "dynamic_ip_required":
124+
false, "enable_ipv6": false, "private_ip": null, "creation_date": "2025-08-27T14:43:21.159683+00:00",
125+
"modification_date": "2025-08-27T14:43:21.159683+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 14:43:23 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+
- 738f0780-2c3f-4d16-bfd5-8b636c474e45
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/898b5865-442a-4f7e-871c-54cec406c810
167+
response:
168+
body:
169+
string: '{"server": {"id": "898b5865-442a-4f7e-871c-54cec406c810", "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": "f5943273-3643-4038-8894-38ca5dcb0dcf",
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": "898b5865-442a-4f7e-871c-54cec406c810", "name": "test-sdk-python-fixture"},
183+
"size": 10000000000, "state": "available", "creation_date": "2025-08-27T14:43:21.159683+00:00",
184+
"modification_date": "2025-08-27T14:43:21.159683+00:00", "tags": [], "zone":
185+
"fr-par-1"}, "1": {"boot": false, "volume_type": "sbs_volume", "id": "f8a3d5dd-2c10-4438-a754-3bf1486d88fb",
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:19",
188+
"routed_ip_enabled": true, "ipv6": null, "extra_networks": [], "dynamic_ip_required":
189+
false, "enable_ipv6": false, "private_ip": null, "creation_date": "2025-08-27T14:43:21.159683+00:00",
190+
"modification_date": "2025-08-27T14:43:21.159683+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 14:43:23 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+
- ff9e53ac-94b0-42e7-9aac-07e1117c9f1c
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/f8a3d5dd-2c10-4438-a754-3bf1486d88fb
232+
response:
233+
body:
234+
string: '{"id":"f8a3d5dd-2c10-4438-a754-3bf1486d88fb","name":"vol-busy-borg","type":"sbs_5k","size":10000000000,"project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2","created_at":"2025-08-27T14:43:21.669866Z","updated_at":"2025-08-27T14:43:22.890155Z","references":[{"id":"597ac70a-ccc4-4b55-8dc8-3fd09300bcd2","product_resource_type":"instance_server","product_resource_id":"898b5865-442a-4f7e-871c-54cec406c810","created_at":"2025-08-27T14:43:22.890155Z","type":"exclusive","status":"attaching"}],"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+
- '625'
238+
content-security-policy:
239+
- default-src 'none'; frame-ancestors 'none'
240+
content-type:
241+
- application/json
242+
date:
243+
- Wed, 27 Aug 2025 14:43:24 GMT
244+
server:
245+
- Scaleway API Gateway (fr-par-1;edge01)
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+
- 9427ce44-1e27-4f0b-bb67-a954b67ed68c
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/898b5865-442a-4f7e-871c-54cec406c810
272+
response:
273+
body:
274+
string: '{"server": {"id": "898b5865-442a-4f7e-871c-54cec406c810", "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": "f5943273-3643-4038-8894-38ca5dcb0dcf",
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": "898b5865-442a-4f7e-871c-54cec406c810", "name": "test-sdk-python-fixture"},
288+
"size": 10000000000, "state": "available", "creation_date": "2025-08-27T14:43:21.159683+00:00",
289+
"modification_date": "2025-08-27T14:43:21.159683+00:00", "tags": [], "zone":
290+
"fr-par-1"}, "1": {"boot": false, "volume_type": "sbs_volume", "id": "f8a3d5dd-2c10-4438-a754-3bf1486d88fb",
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:19",
293+
"routed_ip_enabled": true, "ipv6": null, "extra_networks": [], "dynamic_ip_required":
294+
false, "enable_ipv6": false, "private_ip": null, "creation_date": "2025-08-27T14:43:21.159683+00:00",
295+
"modification_date": "2025-08-27T14:43:21.159683+00:00", "bootscript": null,
296+
"security_group": {"id": "1c1fc99f-b2de-408d-9eb0-da801a3e2744", "name": "Default
297+
security group"}, "location": null, "maintenances": [], "allowed_actions":
298+
[], "placement_group": null, "private_nics": [], "zone": "fr-par-1", "filesystems":
299+
[], "end_of_service": false}}'
300+
headers:
301+
content-length:
302+
- '2261'
303+
content-security-policy:
304+
- default-src 'none'; frame-ancestors 'none'
305+
content-type:
306+
- application/json
307+
date:
308+
- Wed, 27 Aug 2025 14:43:24 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+
- c8c46d41-54ea-49c1-bb94-c28ebc371423
319+
status:
320+
code: 200
321+
message: OK
322+
version: 1

0 commit comments

Comments
 (0)