Skip to content

Commit 74b2199

Browse files
committed
remove unecessary headers
1 parent bd1ff53 commit 74b2199

18 files changed

+470
-9506
lines changed

.github/workflows/nightly.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,5 @@ jobs:
5252
${SLACK_WEBHOOK_NIGHTLY};
5353
env:
5454
SLACK_WEBHOOK_NIGHTLY: ${{ secrets.SLACK_WEBHOOK_NIGHTLY }}
55-
FAILED_PRODUCT: ${{ matrix.products }}
56-
57-
58-
59-
60-
55+
FAILED_PRODUCT: ${{ matrix
56+
.products }}

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

Lines changed: 53 additions & 93 deletions
Large diffs are not rendered by default.

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

Lines changed: 65 additions & 105 deletions
Large diffs are not rendered by default.

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

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,8 @@ interactions:
22
- request:
33
body: '{"project": "11111111-1111-1111-1111-111111111111", "type": "routed_ipv6"}'
44
headers:
5-
Accept-Encoding:
6-
- gzip, deflate
7-
Connection:
8-
- keep-alive
95
Content-Length:
106
- '74'
11-
Content-Type:
12-
- application/json; charset=utf-8
13-
accept:
14-
- application/json
157
user-agent:
168
- scaleway-sdk-python/2.0.0
179
method: POST
@@ -22,7 +14,7 @@ interactions:
2214
"prefix": "2001:bc8:710:ee8b::/64", "reverse": null, "server": null, "organization":
2315
"11111111-1111-1111-1111-111111111111", "project": "11111111-1111-1111-1111-111111111111",
2416
"zone": "fr-par-1", "type": "routed_ipv6", "state": "detached", "tags": [],
25-
"ipam_id": "d5cd0a83-faf8-42a9-b925-e6909ca5bc2c"}}'
17+
"ipam_id": "4238e232-1f35-40c2-b7cb-37e31660bb41"}}'
2618
headers:
2719
content-length:
2820
- '374'
@@ -31,33 +23,27 @@ interactions:
3123
content-type:
3224
- application/json
3325
date:
34-
- Thu, 28 Aug 2025 15:35:27 GMT
26+
- Fri, 29 Aug 2025 07:51:23 GMT
3527
location:
3628
- https://api.scaleway.com/instance/v1/zones/fr-par-1/ips/e49ad003-ea76-42b3-8154-1bba12b2413b
3729
server:
38-
- Scaleway API Gateway (fr-par-3;edge01)
30+
- Scaleway API Gateway (fr-par-2;edge02)
3931
strict-transport-security:
4032
- max-age=63072000
4133
x-content-type-options:
4234
- nosniff
4335
x-frame-options:
4436
- DENY
4537
x-request-id:
46-
- a912ae28-58f8-4906-963b-8de322df51f0
38+
- ff1ebf25-6289-442c-857b-469e50ab7ddd
4739
status:
4840
code: 201
4941
message: Created
5042
- request:
5143
body: '{}'
5244
headers:
53-
Accept-Encoding:
54-
- gzip, deflate
55-
Connection:
56-
- keep-alive
5745
Content-Length:
5846
- '2'
59-
accept:
60-
- application/json
6147
user-agent:
6248
- scaleway-sdk-python/2.0.0
6349
method: GET
@@ -68,7 +54,7 @@ interactions:
6854
null, "prefix": "2001:bc8:710:ee8b::/64", "reverse": null, "server": null,
6955
"organization": "11111111-1111-1111-1111-111111111111", "project": "11111111-1111-1111-1111-111111111111",
7056
"zone": "fr-par-1", "type": "routed_ipv6", "state": "detached", "tags": [],
71-
"ipam_id": "d5cd0a83-faf8-42a9-b925-e6909ca5bc2c"}, {"id": "5f331579-2541-490c-8ea6-bcd96d8511ae",
57+
"ipam_id": "4238e232-1f35-40c2-b7cb-37e31660bb41"}, {"id": "5f331579-2541-490c-8ea6-bcd96d8511ae",
7258
"address": null, "prefix": "2001:bc8:710:ee8a::/64", "reverse": null, "server":
7359
null, "organization": "11111111-1111-1111-1111-111111111111", "project": "11111111-1111-1111-1111-111111111111",
7460
"zone": "fr-par-1", "type": "routed_ipv6", "state": "detached", "tags": [],
@@ -184,20 +170,20 @@ interactions:
184170
content-type:
185171
- application/json
186172
date:
187-
- Thu, 28 Aug 2025 15:35:27 GMT
173+
- Fri, 29 Aug 2025 07:51:23 GMT
188174
link:
189175
- </ips?page=1&per_page=50&organization=d3520a52-2c75-4ba0-bda8-82dd087f07f2&project=d3520a52-2c75-4ba0-bda8-82dd087f07f2>;
190176
rel="last"
191177
server:
192-
- Scaleway API Gateway (fr-par-3;edge01)
178+
- Scaleway API Gateway (fr-par-2;edge02)
193179
strict-transport-security:
194180
- max-age=63072000
195181
x-content-type-options:
196182
- nosniff
197183
x-frame-options:
198184
- DENY
199185
x-request-id:
200-
- 6d166fd7-0ffc-4eff-99d7-5a2ef6fb19cf
186+
- 6de69f46-b397-4157-aea9-714062d96c75
201187
x-total-count:
202188
- '27'
203189
status:
@@ -206,14 +192,8 @@ interactions:
206192
- request:
207193
body: '{}'
208194
headers:
209-
Accept-Encoding:
210-
- gzip, deflate
211-
Connection:
212-
- keep-alive
213195
Content-Length:
214196
- '2'
215-
accept:
216-
- application/json
217197
user-agent:
218198
- scaleway-sdk-python/2.0.0
219199
method: DELETE
@@ -227,17 +207,17 @@ interactions:
227207
content-type:
228208
- application/json
229209
date:
230-
- Thu, 28 Aug 2025 15:35:28 GMT
210+
- Fri, 29 Aug 2025 07:51:23 GMT
231211
server:
232-
- Scaleway API Gateway (fr-par-3;edge02)
212+
- Scaleway API Gateway (fr-par-2;edge01)
233213
strict-transport-security:
234214
- max-age=63072000
235215
x-content-type-options:
236216
- nosniff
237217
x-frame-options:
238218
- DENY
239219
x-request-id:
240-
- 6d63c11c-79e2-421d-9ade-7e51a97666f1
220+
- 5ed4982a-140f-4e58-b6a0-1951369c7ac3
241221
status:
242222
code: 204
243223
message: No Content

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

Lines changed: 31 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,23 @@ interactions:
44
"DEV1-S", "name": "test-sdk-python-extra", "dynamic_ip_required": false, "volumes":
55
{}, "protected": false, "boot_type": "local"}'
66
headers:
7-
Accept-Encoding:
8-
- gzip, deflate
9-
Connection:
10-
- keep-alive
117
Content-Length:
128
- '200'
13-
Content-Type:
14-
- application/json; charset=utf-8
15-
accept:
16-
- application/json
179
user-agent:
1810
- scaleway-sdk-python/2.0.0
1911
method: POST
2012
uri: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers
2113
response:
2214
body:
23-
string: '{"server": {"id": "3b01db0e-b206-4e49-b8d5-e0032cab8d1c", "name": "test-sdk-python-extra",
15+
string: '{"server": {"id": "22573cab-2940-4695-be88-9c3fdf5d3a0e", "name": "test-sdk-python-extra",
2416
"arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization":
2517
"11111111-1111-1111-1111-111111111111", "project": "11111111-1111-1111-1111-111111111111",
2618
"hostname": "test-sdk-python-extra", "image": null, "volumes": {}, "tags":
2719
[], "state": "stopped", "protected": false, "state_detail": "", "public_ip":
28-
null, "public_ips": [], "mac_address": "de:00:00:c5:a9:a1", "routed_ip_enabled":
20+
null, "public_ips": [], "mac_address": "de:00:00:c5:be:8d", "routed_ip_enabled":
2921
true, "ipv6": null, "extra_networks": [], "dynamic_ip_required": false, "enable_ipv6":
30-
false, "private_ip": null, "creation_date": "2025-08-28T15:35:26.603254+00:00",
31-
"modification_date": "2025-08-28T15:35:26.603254+00:00", "bootscript": null,
22+
false, "private_ip": null, "creation_date": "2025-08-29T07:51:22.173987+00:00",
23+
"modification_date": "2025-08-29T07:51:22.173987+00:00", "bootscript": null,
3224
"security_group": {"id": "1c1fc99f-b2de-408d-9eb0-da801a3e2744", "name": "Default
3325
security group"}, "location": null, "maintenances": [], "allowed_actions":
3426
["poweron", "backup"], "placement_group": null, "private_nics": [], "zone":
@@ -41,53 +33,47 @@ interactions:
4133
content-type:
4234
- application/json
4335
date:
44-
- Thu, 28 Aug 2025 15:35:26 GMT
36+
- Fri, 29 Aug 2025 07:51:22 GMT
4537
location:
46-
- https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/3b01db0e-b206-4e49-b8d5-e0032cab8d1c
38+
- https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/22573cab-2940-4695-be88-9c3fdf5d3a0e
4739
server:
48-
- Scaleway API Gateway (fr-par-3;edge02)
40+
- Scaleway API Gateway (fr-par-2;edge02)
4941
strict-transport-security:
5042
- max-age=63072000
5143
x-content-type-options:
5244
- nosniff
5345
x-frame-options:
5446
- DENY
5547
x-request-id:
56-
- 7cfa624f-0a4a-4344-bb14-0d4a8825c4a3
48+
- a40c12ae-06f7-4538-a9df-09ea859b25e5
5749
status:
5850
code: 201
5951
message: Created
6052
- request:
6153
body: '{}'
6254
headers:
63-
Accept-Encoding:
64-
- gzip, deflate
65-
Connection:
66-
- keep-alive
6755
Content-Length:
6856
- '2'
69-
accept:
70-
- application/json
7157
user-agent:
7258
- scaleway-sdk-python/2.0.0
7359
method: GET
7460
uri: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers?organization=11111111-1111-1111-1111-111111111111&page=1&project=11111111-1111-1111-1111-111111111111
7561
response:
7662
body:
77-
string: '{"servers": [{"id": "3b01db0e-b206-4e49-b8d5-e0032cab8d1c", "name":
63+
string: '{"servers": [{"id": "22573cab-2940-4695-be88-9c3fdf5d3a0e", "name":
7864
"test-sdk-python-extra", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type":
7965
"local", "organization": "11111111-1111-1111-1111-111111111111", "project":
8066
"11111111-1111-1111-1111-111111111111", "hostname": "test-sdk-python-extra",
8167
"image": null, "volumes": {}, "tags": [], "state": "stopped", "protected":
8268
false, "state_detail": "", "public_ip": null, "public_ips": [], "mac_address":
83-
"de:00:00:c5:a9:a1", "routed_ip_enabled": true, "ipv6": null, "extra_networks":
69+
"de:00:00:c5:be:8d", "routed_ip_enabled": true, "ipv6": null, "extra_networks":
8470
[], "dynamic_ip_required": false, "enable_ipv6": false, "private_ip": null,
85-
"creation_date": "2025-08-28T15:35:26.603254+00:00", "modification_date":
86-
"2025-08-28T15:35:26.603254+00:00", "bootscript": null, "security_group":
71+
"creation_date": "2025-08-29T07:51:22.173987+00:00", "modification_date":
72+
"2025-08-29T07:51:22.173987+00:00", "bootscript": null, "security_group":
8773
{"id": "1c1fc99f-b2de-408d-9eb0-da801a3e2744", "name": "Default security group"},
8874
"location": null, "maintenances": [], "allowed_actions": ["poweron", "backup"],
8975
"placement_group": null, "private_nics": [], "zone": "fr-par-1", "filesystems":
90-
[], "end_of_service": false}, {"id": "a2e381f4-efa2-4e33-87a2-361fb81377f6",
76+
[], "end_of_service": false}, {"id": "71a1d133-0e17-4440-b305-b4e1dca55870",
9177
"name": "test-sdk-python-fixture", "arch": "x86_64", "commercial_type": "DEV1-S",
9278
"boot_type": "local", "organization": "11111111-1111-1111-1111-111111111111",
9379
"project": "11111111-1111-1111-1111-111111111111", "hostname": "test-sdk-python-fixture",
@@ -98,18 +84,18 @@ interactions:
9884
"extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": "2025-02-03T13:36:50.774356+00:00",
9985
"modification_date": "2025-02-03T13:36:50.774356+00:00", "default_bootscript":
10086
null, "from_server": "", "state": "available", "tags": [], "zone": "fr-par-1"},
101-
"volumes": {"0": {"boot": false, "id": "2586c808-eb32-436f-bd41-14f437bdf5f1",
87+
"volumes": {"0": {"boot": false, "id": "f8e5b903-085c-4d61-a894-9d69a11f59d2",
10288
"name": "Ubuntu 20.04 Focal Fossa", "volume_type": "l_ssd", "export_uri":
10389
null, "organization": "11111111-1111-1111-1111-111111111111", "project": "11111111-1111-1111-1111-111111111111",
104-
"server": {"id": "a2e381f4-efa2-4e33-87a2-361fb81377f6", "name": "test-sdk-python-fixture"},
105-
"size": 10000000000, "state": "available", "creation_date": "2025-08-28T15:35:22.726027+00:00",
106-
"modification_date": "2025-08-28T15:35:22.726027+00:00", "tags": [], "zone":
107-
"fr-par-1"}, "1": {"boot": false, "volume_type": "sbs_volume", "id": "670c8583-b924-41bc-a034-2284724d8512",
90+
"server": {"id": "71a1d133-0e17-4440-b305-b4e1dca55870", "name": "test-sdk-python-fixture"},
91+
"size": 10000000000, "state": "available", "creation_date": "2025-08-29T07:51:17.993882+00:00",
92+
"modification_date": "2025-08-29T07:51:17.993882+00:00", "tags": [], "zone":
93+
"fr-par-1"}, "1": {"boot": false, "volume_type": "sbs_volume", "id": "8b7d43ec-bb58-4d1b-9fd3-0fdfff049f32",
10894
"zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false,
109-
"state_detail": "", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:c5:a9:9f",
95+
"state_detail": "", "public_ip": null, "public_ips": [], "mac_address": "de:00:00:c5:be:8b",
11096
"routed_ip_enabled": true, "ipv6": null, "extra_networks": [], "dynamic_ip_required":
111-
false, "enable_ipv6": false, "private_ip": null, "creation_date": "2025-08-28T15:35:22.726027+00:00",
112-
"modification_date": "2025-08-28T15:35:22.726027+00:00", "bootscript": null,
97+
false, "enable_ipv6": false, "private_ip": null, "creation_date": "2025-08-29T07:51:17.993882+00:00",
98+
"modification_date": "2025-08-29T07:51:17.993882+00:00", "bootscript": null,
11399
"security_group": {"id": "1c1fc99f-b2de-408d-9eb0-da801a3e2744", "name": "Default
114100
security group"}, "location": null, "maintenances": [], "allowed_actions":
115101
["poweron", "backup"], "placement_group": null, "private_nics": [], "zone":
@@ -382,20 +368,20 @@ interactions:
382368
content-type:
383369
- application/json
384370
date:
385-
- Thu, 28 Aug 2025 15:35:26 GMT
371+
- Fri, 29 Aug 2025 07:51:22 GMT
386372
link:
387373
- </servers?page=1&per_page=50&organization=d3520a52-2c75-4ba0-bda8-82dd087f07f2&project=d3520a52-2c75-4ba0-bda8-82dd087f07f2>;
388374
rel="last"
389375
server:
390-
- Scaleway API Gateway (fr-par-3;edge02)
376+
- Scaleway API Gateway (fr-par-2;edge01)
391377
strict-transport-security:
392378
- max-age=63072000
393379
x-content-type-options:
394380
- nosniff
395381
x-frame-options:
396382
- DENY
397383
x-request-id:
398-
- 14b91f8b-8293-4449-a57a-c65c5370fe46
384+
- 7ffce2e0-c003-4064-9ad1-cd50342af225
399385
x-total-count:
400386
- '12'
401387
status:
@@ -404,14 +390,8 @@ interactions:
404390
- request:
405391
body: '{}'
406392
headers:
407-
Accept-Encoding:
408-
- gzip, deflate
409-
Connection:
410-
- keep-alive
411393
Content-Length:
412394
- '2'
413-
accept:
414-
- application/json
415395
user-agent:
416396
- scaleway-sdk-python/2.0.0
417397
method: GET
@@ -427,22 +407,22 @@ interactions:
427407
content-type:
428408
- application/json
429409
date:
430-
- Thu, 28 Aug 2025 15:35:27 GMT
410+
- Fri, 29 Aug 2025 07:51:22 GMT
431411
link:
432412
- </servers?page=1&per_page=50&organization=d3520a52-2c75-4ba0-bda8-82dd087f07f2&project=d3520a52-2c75-4ba0-bda8-82dd087f07f2>;
433413
rel="first",</servers?page=1&per_page=50&organization=d3520a52-2c75-4ba0-bda8-82dd087f07f2&project=d3520a52-2c75-4ba0-bda8-82dd087f07f2>;
434414
rel="previous",</servers?page=1&per_page=50&organization=d3520a52-2c75-4ba0-bda8-82dd087f07f2&project=d3520a52-2c75-4ba0-bda8-82dd087f07f2>;
435415
rel="last"
436416
server:
437-
- Scaleway API Gateway (fr-par-3;edge01)
417+
- Scaleway API Gateway (fr-par-2;edge02)
438418
strict-transport-security:
439419
- max-age=63072000
440420
x-content-type-options:
441421
- nosniff
442422
x-frame-options:
443423
- DENY
444424
x-request-id:
445-
- ba044a13-c4bc-42ee-9262-098d81de7b05
425+
- 47f2b1fb-f985-48c1-b362-f9a8d505327e
446426
x-total-count:
447427
- '12'
448428
status:
@@ -451,18 +431,12 @@ interactions:
451431
- request:
452432
body: '{}'
453433
headers:
454-
Accept-Encoding:
455-
- gzip, deflate
456-
Connection:
457-
- keep-alive
458434
Content-Length:
459435
- '2'
460-
accept:
461-
- application/json
462436
user-agent:
463437
- scaleway-sdk-python/2.0.0
464438
method: DELETE
465-
uri: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/3b01db0e-b206-4e49-b8d5-e0032cab8d1c
439+
uri: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/22573cab-2940-4695-be88-9c3fdf5d3a0e
466440
response:
467441
body:
468442
string: ''
@@ -472,17 +446,17 @@ interactions:
472446
content-type:
473447
- application/json
474448
date:
475-
- Thu, 28 Aug 2025 15:35:27 GMT
449+
- Fri, 29 Aug 2025 07:51:22 GMT
476450
server:
477-
- Scaleway API Gateway (fr-par-3;edge02)
451+
- Scaleway API Gateway (fr-par-2;edge02)
478452
strict-transport-security:
479453
- max-age=63072000
480454
x-content-type-options:
481455
- nosniff
482456
x-frame-options:
483457
- DENY
484458
x-request-id:
485-
- 7a1af82d-542e-4af9-8743-dab92c78b20d
459+
- 8efad637-bdf3-491a-b511-f16c70ed48b8
486460
status:
487461
code: 204
488462
message: No Content

0 commit comments

Comments
 (0)