Skip to content

Commit 02516af

Browse files
committed
test(inference): register cassettes
1 parent ac31d27 commit 02516af

6 files changed

+1136
-822
lines changed

β€Žinternal/namespaces/inference/v1/testdata/test-create-deployment-private-endpoint-create-deployment-private-endpoint.cassette.yamlβ€Ž

Lines changed: 76 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
version: 1
33
interactions:
44
- request:
5-
body: '{"id":"b7191d09-ea81-4a8d-93cc-bd4ead4f071c", "name":"cli-pn-compassionate-proskuriakova",
6-
"tags":[], "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2025-11-20T09:51:34.739580Z",
7-
"updated_at":"2025-11-20T09:51:34.739580Z", "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2",
8-
"subnets":[{"id":"b58fd3d1-4695-496d-8d80-85ced53039ce", "created_at":"2025-11-20T09:51:34.739580Z",
9-
"updated_at":"2025-11-20T09:51:34.739580Z", "subnet":"172.16.104.0/22", "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2",
10-
"private_network_id":"b7191d09-ea81-4a8d-93cc-bd4ead4f071c", "vpc_id":"e092f3d5-d85b-46fd-8d08-025e3282c8c1"},
11-
{"id":"83a233ea-5643-4683-87aa-6a35b8324b84", "created_at":"2025-11-20T09:51:34.739580Z",
12-
"updated_at":"2025-11-20T09:51:34.739580Z", "subnet":"fd64:badd:7710:c7ba::/64",
13-
"project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "private_network_id":"b7191d09-ea81-4a8d-93cc-bd4ead4f071c",
5+
body: '{"id":"1c4c5e18-4a6c-4c96-9a8b-e35160263bf1", "name":"cli-pn-friendly-goodall",
6+
"tags":[], "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2025-11-20T10:06:32.850520Z",
7+
"updated_at":"2025-11-20T10:06:32.850520Z", "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2",
8+
"subnets":[{"id":"c8b813e6-7397-4eef-9158-8f2f988e2d4e", "created_at":"2025-11-20T10:06:32.850520Z",
9+
"updated_at":"2025-11-20T10:06:32.850520Z", "subnet":"172.16.156.0/22", "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2",
10+
"private_network_id":"1c4c5e18-4a6c-4c96-9a8b-e35160263bf1", "vpc_id":"e092f3d5-d85b-46fd-8d08-025e3282c8c1"},
11+
{"id":"76c38ba2-e5a7-4112-9dc3-104ce37b3bb6", "created_at":"2025-11-20T10:06:32.850520Z",
12+
"updated_at":"2025-11-20T10:06:32.850520Z", "subnet":"fd64:badd:7710:8faa::/64",
13+
"project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "private_network_id":"1c4c5e18-4a6c-4c96-9a8b-e35160263bf1",
1414
"vpc_id":"e092f3d5-d85b-46fd-8d08-025e3282c8c1"}], "vpc_id":"e092f3d5-d85b-46fd-8d08-025e3282c8c1",
1515
"dhcp_enabled":true, "default_route_propagation_enabled":false, "region":"fr-par"}'
1616
form: {}
@@ -22,46 +22,46 @@ interactions:
2222
url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks
2323
method: POST
2424
response:
25-
body: '{"id":"b7191d09-ea81-4a8d-93cc-bd4ead4f071c", "name":"cli-pn-compassionate-proskuriakova",
26-
"tags":[], "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2025-11-20T09:51:34.739580Z",
27-
"updated_at":"2025-11-20T09:51:34.739580Z", "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2",
28-
"subnets":[{"id":"b58fd3d1-4695-496d-8d80-85ced53039ce", "created_at":"2025-11-20T09:51:34.739580Z",
29-
"updated_at":"2025-11-20T09:51:34.739580Z", "subnet":"172.16.104.0/22", "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2",
30-
"private_network_id":"b7191d09-ea81-4a8d-93cc-bd4ead4f071c", "vpc_id":"e092f3d5-d85b-46fd-8d08-025e3282c8c1"},
31-
{"id":"83a233ea-5643-4683-87aa-6a35b8324b84", "created_at":"2025-11-20T09:51:34.739580Z",
32-
"updated_at":"2025-11-20T09:51:34.739580Z", "subnet":"fd64:badd:7710:c7ba::/64",
33-
"project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "private_network_id":"b7191d09-ea81-4a8d-93cc-bd4ead4f071c",
25+
body: '{"id":"1c4c5e18-4a6c-4c96-9a8b-e35160263bf1", "name":"cli-pn-friendly-goodall",
26+
"tags":[], "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2025-11-20T10:06:32.850520Z",
27+
"updated_at":"2025-11-20T10:06:32.850520Z", "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2",
28+
"subnets":[{"id":"c8b813e6-7397-4eef-9158-8f2f988e2d4e", "created_at":"2025-11-20T10:06:32.850520Z",
29+
"updated_at":"2025-11-20T10:06:32.850520Z", "subnet":"172.16.156.0/22", "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2",
30+
"private_network_id":"1c4c5e18-4a6c-4c96-9a8b-e35160263bf1", "vpc_id":"e092f3d5-d85b-46fd-8d08-025e3282c8c1"},
31+
{"id":"76c38ba2-e5a7-4112-9dc3-104ce37b3bb6", "created_at":"2025-11-20T10:06:32.850520Z",
32+
"updated_at":"2025-11-20T10:06:32.850520Z", "subnet":"fd64:badd:7710:8faa::/64",
33+
"project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "private_network_id":"1c4c5e18-4a6c-4c96-9a8b-e35160263bf1",
3434
"vpc_id":"e092f3d5-d85b-46fd-8d08-025e3282c8c1"}], "vpc_id":"e092f3d5-d85b-46fd-8d08-025e3282c8c1",
3535
"dhcp_enabled":true, "default_route_propagation_enabled":false, "region":"fr-par"}'
3636
headers:
3737
Content-Length:
38-
- "1105"
38+
- "1094"
3939
Content-Security-Policy:
4040
- default-src 'none'; frame-ancestors 'none'
4141
Content-Type:
4242
- application/json
4343
Date:
44-
- Thu, 20 Nov 2025 09:51:35 GMT
44+
- Thu, 20 Nov 2025 10:06:33 GMT
4545
Server:
46-
- Scaleway API Gateway (fr-par-3;edge02)
46+
- Scaleway API Gateway (fr-par-3;edge03)
4747
Strict-Transport-Security:
4848
- max-age=63072000
4949
X-Content-Type-Options:
5050
- nosniff
5151
X-Frame-Options:
5252
- DENY
5353
X-Request-Id:
54-
- 9de4e21c-4d61-41e7-84ab-ae80a14417e2
54+
- 5c8bad5d-1bac-4cb4-a815-3085176af955
5555
status: 200 OK
5656
code: 200
5757
duration: ""
5858
- request:
59-
body: '{"id":"41214803-d53e-4c32-8840-919eb99fa79f", "name":"cli-inference-condescending-hopper",
59+
body: '{"id":"3ef4c2d3-9ea3-4d0c-9ff2-2a6015861957", "name":"cli-inference-recursing-heisenberg",
6060
"project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "status":"creating", "tags":[],
61-
"node_type_name":"H100-2", "endpoints":[{"id":"c4419cb0-dce7-4d21-aabe-69d9c967e86b",
62-
"url":"https://41214803-d53e-4c32-8840-919eb99fa79f.b7191d09-ea81-4a8d-93cc-bd4ead4f071c.internal",
63-
"private_network":{"private_network_id":"b7191d09-ea81-4a8d-93cc-bd4ead4f071c"},
64-
"disable_auth":false}], "size":0, "min_size":1, "max_size":1, "created_at":"2025-11-20T09:51:35.370629Z",
61+
"node_type_name":"H100-2", "endpoints":[{"id":"0665041b-f97a-4f5b-9a6f-f0121b57deca",
62+
"url":"https://3ef4c2d3-9ea3-4d0c-9ff2-2a6015861957.1c4c5e18-4a6c-4c96-9a8b-e35160263bf1.internal",
63+
"private_network":{"private_network_id":"1c4c5e18-4a6c-4c96-9a8b-e35160263bf1"},
64+
"disable_auth":false}], "size":0, "min_size":1, "max_size":1, "created_at":"2025-11-20T10:06:33.420752Z",
6565
"updated_at":null, "model_id":"739d51ae-4f1e-4193-a4bf-f7380c090d46", "quantization":{"bits":4},
6666
"model_name":"qwen/qwen3-235b-a22b-instruct-2507:awq", "region":"fr-par"}'
6767
form: {}
@@ -73,12 +73,12 @@ interactions:
7373
url: https://api.scaleway.com/inference/v1/regions/fr-par/deployments
7474
method: POST
7575
response:
76-
body: '{"id":"41214803-d53e-4c32-8840-919eb99fa79f", "name":"cli-inference-condescending-hopper",
76+
body: '{"id":"3ef4c2d3-9ea3-4d0c-9ff2-2a6015861957", "name":"cli-inference-recursing-heisenberg",
7777
"project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "status":"creating", "tags":[],
78-
"node_type_name":"H100-2", "endpoints":[{"id":"c4419cb0-dce7-4d21-aabe-69d9c967e86b",
79-
"url":"https://41214803-d53e-4c32-8840-919eb99fa79f.b7191d09-ea81-4a8d-93cc-bd4ead4f071c.internal",
80-
"private_network":{"private_network_id":"b7191d09-ea81-4a8d-93cc-bd4ead4f071c"},
81-
"disable_auth":false}], "size":0, "min_size":1, "max_size":1, "created_at":"2025-11-20T09:51:35.370629Z",
78+
"node_type_name":"H100-2", "endpoints":[{"id":"0665041b-f97a-4f5b-9a6f-f0121b57deca",
79+
"url":"https://3ef4c2d3-9ea3-4d0c-9ff2-2a6015861957.1c4c5e18-4a6c-4c96-9a8b-e35160263bf1.internal",
80+
"private_network":{"private_network_id":"1c4c5e18-4a6c-4c96-9a8b-e35160263bf1"},
81+
"disable_auth":false}], "size":0, "min_size":1, "max_size":1, "created_at":"2025-11-20T10:06:33.420752Z",
8282
"updated_at":null, "model_id":"739d51ae-4f1e-4193-a4bf-f7380c090d46", "quantization":{"bits":4},
8383
"model_name":"qwen/qwen3-235b-a22b-instruct-2507:awq", "region":"fr-par"}'
8484
headers:
@@ -89,49 +89,81 @@ interactions:
8989
Content-Type:
9090
- application/json
9191
Date:
92-
- Thu, 20 Nov 2025 09:51:35 GMT
92+
- Thu, 20 Nov 2025 10:06:33 GMT
9393
Server:
94-
- Scaleway API Gateway (fr-par-3;edge02)
94+
- Scaleway API Gateway (fr-par-3;edge03)
9595
Strict-Transport-Security:
9696
- max-age=63072000
9797
X-Content-Type-Options:
9898
- nosniff
9999
X-Frame-Options:
100100
- DENY
101101
X-Request-Id:
102-
- c39331f2-58b0-48cf-8ac1-6cbcf9f10e94
102+
- ef4c2155-9fc5-4b3c-bbf3-468ca2c33d7c
103103
status: 200 OK
104104
code: 200
105105
duration: ""
106106
- request:
107-
body: '{"message":"resource is not found","resource":"endpoint","resource_id":"41214803-d53e-4c32-8840-919eb99fa79f","type":"not_found"}'
107+
body: ""
108108
form: {}
109109
headers:
110110
User-Agent:
111111
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; arm64) cli-e2e-test
112-
url: https://api.scaleway.com/inference/v1/regions/fr-par/endpoints/41214803-d53e-4c32-8840-919eb99fa79f
112+
url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/1c4c5e18-4a6c-4c96-9a8b-e35160263bf1
113113
method: DELETE
114114
response:
115-
body: '{"message":"resource is not found","resource":"endpoint","resource_id":"41214803-d53e-4c32-8840-919eb99fa79f","type":"not_found"}'
115+
body: ""
116+
headers:
117+
Content-Security-Policy:
118+
- default-src 'none'; frame-ancestors 'none'
119+
Content-Type:
120+
- application/json
121+
Date:
122+
- Thu, 20 Nov 2025 10:06:35 GMT
123+
Server:
124+
- Scaleway API Gateway (fr-par-3;edge03)
125+
Strict-Transport-Security:
126+
- max-age=63072000
127+
X-Content-Type-Options:
128+
- nosniff
129+
X-Frame-Options:
130+
- DENY
131+
X-Request-Id:
132+
- 410c6a75-abd4-44e3-8899-50f2ae317fe3
133+
status: 204 No Content
134+
code: 204
135+
duration: ""
136+
- request:
137+
body: '{"details":[{"argument_name":"deployment_id","help_message":"value must
138+
be a valid UUID","reason":"format"}],"message":"invalid argument(s)","type":"invalid_arguments"}'
139+
form: {}
140+
headers:
141+
User-Agent:
142+
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.25.3; darwin; arm64) cli-e2e-test
143+
url: https://api.scaleway.com/inference/v1/regions/fr-par/deployments/%3Cno
144+
method: DELETE
145+
response:
146+
body: '{"details":[{"argument_name":"deployment_id","help_message":"value must
147+
be a valid UUID","reason":"format"}],"message":"invalid argument(s)","type":"invalid_arguments"}'
116148
headers:
117149
Content-Length:
118-
- "129"
150+
- "168"
119151
Content-Security-Policy:
120152
- default-src 'none'; frame-ancestors 'none'
121153
Content-Type:
122154
- application/json
123155
Date:
124-
- Thu, 20 Nov 2025 09:51:35 GMT
156+
- Thu, 20 Nov 2025 10:06:35 GMT
125157
Server:
126-
- Scaleway API Gateway (fr-par-3;edge02)
158+
- Scaleway API Gateway (fr-par-3;edge03)
127159
Strict-Transport-Security:
128160
- max-age=63072000
129161
X-Content-Type-Options:
130162
- nosniff
131163
X-Frame-Options:
132164
- DENY
133165
X-Request-Id:
134-
- 69258b9d-c07b-4a30-be43-e7d2a6196841
135-
status: 404 Not Found
136-
code: 404
166+
- 743f2425-2431-4018-9eba-23c7673fcb94
167+
status: 400 Bad Request
168+
code: 400
137169
duration: ""

β€Žinternal/namespaces/inference/v1/testdata/test-create-deployment-private-endpoint-create-deployment-private-endpoint.goldenβ€Ž

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3-
ID 41214803-d53e-4c32-8840-919eb99fa79f
4-
Name cli-inference-condescending-hopper
3+
ID 3ef4c2d3-9ea3-4d0c-9ff2-2a6015861957
4+
Name cli-inference-recursing-heisenberg
55
ProjectID d3520a52-2c75-4ba0-bda8-82dd087f07f2
66
Status creating
77
NodeTypeName H100-2
@@ -16,21 +16,21 @@ Region fr-par
1616

1717
Endpoints:
1818
ID URL DISABLE AUTH
19-
c4419cb0-dce7-4d21-aabe-69d9c967e86b https://41214803-d53e-4c32-8840-919eb99fa79f.b7191d09-ea81-4a8d-93cc-bd4ead4f071c.internal false
19+
0665041b-f97a-4f5b-9a6f-f0121b57deca https://3ef4c2d3-9ea3-4d0c-9ff2-2a6015861957.1c4c5e18-4a6c-4c96-9a8b-e35160263bf1.internal false
2020
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
2121
{
22-
"id": "41214803-d53e-4c32-8840-919eb99fa79f",
23-
"name": "cli-inference-condescending-hopper",
22+
"id": "3ef4c2d3-9ea3-4d0c-9ff2-2a6015861957",
23+
"name": "cli-inference-recursing-heisenberg",
2424
"project_id": "d3520a52-2c75-4ba0-bda8-82dd087f07f2",
2525
"status": "creating",
2626
"tags": [],
2727
"node_type_name": "H100-2",
2828
"endpoints": [
2929
{
30-
"id": "c4419cb0-dce7-4d21-aabe-69d9c967e86b",
31-
"url": "https://41214803-d53e-4c32-8840-919eb99fa79f.b7191d09-ea81-4a8d-93cc-bd4ead4f071c.internal",
30+
"id": "0665041b-f97a-4f5b-9a6f-f0121b57deca",
31+
"url": "https://3ef4c2d3-9ea3-4d0c-9ff2-2a6015861957.1c4c5e18-4a6c-4c96-9a8b-e35160263bf1.internal",
3232
"private_network": {
33-
"private_network_id": "b7191d09-ea81-4a8d-93cc-bd4ead4f071c"
33+
"private_network_id": "1c4c5e18-4a6c-4c96-9a8b-e35160263bf1"
3434
},
3535
"disable_auth": false
3636
}

0 commit comments

Comments
Β (0)