Skip to content

Commit bb37714

Browse files
committed
update cassettes
1 parent 544a634 commit bb37714

12 files changed

+360
-8907
lines changed

internal/namespaces/k8s/v1/testdata/test-get-cluster-simple.cassette.yaml

Lines changed: 25 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@
22
version: 1
33
interactions:
44
- request:
5-
body: '{"project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","type":"","name":"cli-test","description":"","tags":null,"version":"1.17.3","cni":"cilium","enable_dashboard":false,"ingress":"unknown_ingress","pools":[{"name":"default","node_type":"DEV1-M","placement_group_id":null,"autoscaling":false,"size":1,"min_size":null,"max_size":null,"container_runtime":"unknown_runtime","autohealing":false,"tags":null,"kubelet_args":null,"upgrade_policy":null,"zone":""}],"autoscaler_config":null,"auto_upgrade":null,"feature_gates":null,"admission_plugins":null,"open_id_connect_config":null,"apiserver_cert_sans":null}'
5+
body: '{"id":"5e980a83-0ffe-4ae6-8c2d-15b89e91a280","name":"pn-magical-shockley","tags":["created-along-with-k8s-cluster","created-by-cli"],"organization_id":"fa1e3217-dc80-42ac-85c3-3f034b78b552","created_at":"2023-06-07T15:15:11.095910Z","updated_at":"2023-06-07T15:15:11.095910Z","project_id":"fa1e3217-dc80-42ac-85c3-3f034b78b552","subnets":[{"id":"9c208d1f-2276-4484-841f-90fca172c519","created_at":"2023-06-07T15:15:11.095910Z","updated_at":"2023-06-07T15:15:11.095910Z","subnet":"172.16.28.0/22"},{"id":"d8d1cd8b-3db7-424a-bc3d-ee8d73d6308e","created_at":"2023-06-07T15:15:11.095910Z","updated_at":"2023-06-07T15:15:11.095910Z","subnet":"fd63:256c:45f7:e9da::/64"}],"vpc_id":"1ec1ecb6-8f58-4f7c-92cc-53c2a5ae519c","region":"fr-par"}'
66
form: {}
77
headers:
88
Content-Type:
99
- application/json
1010
User-Agent:
11-
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
12-
url: https://api.scaleway.com/k8s/v1/regions/fr-par/clusters
11+
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.4; linux; amd64) cli-e2e-test
12+
url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks
1313
method: POST
1414
response:
15-
body: '{"region":"fr-par","id":"6e68d924-956f-4511-bfdb-1a796a190d33","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","created_at":"2021-09-16T13:20:30.618312535Z","updated_at":"2021-09-16T13:20:31.409645810Z","type":"kapsule","name":"cli-test","description":"","status":"creating","version":"1.17.3","cni":"cilium","tags":[],"cluster_url":"https://6e68d924-956f-4511-bfdb-1a796a190d33.api.k8s.fr-par.scw.cloud:6443","dns_wildcard":"*.6e68d924-956f-4511-bfdb-1a796a190d33.nodes.k8s.fr-par.scw.cloud","autoscaler_config":{"scale_down_disabled":false,"scale_down_delay_after_add":"10m","estimator":"binpacking","expander":"random","ignore_daemonsets_utilization":false,"balance_similar_node_groups":false,"expendable_pods_priority_cutoff":-10,"scale_down_unneeded_time":"10m","scale_down_utilization_threshold":0.5,"max_graceful_termination_sec":600},"dashboard_enabled":false,"ingress":"none","auto_upgrade":{"enabled":false,"maintenance_window":{"start_hour":0,"day":"any"}},"upgrade_available":true,"feature_gates":[],"admission_plugins":[],"open_id_connect_config":{"issuer_url":"","client_id":"","username_claim":"","username_prefix":"","groups_claim":[],"groups_prefix":"","required_claim":[]},"apiserver_cert_sans":[]}'
15+
body: '{"id":"5e980a83-0ffe-4ae6-8c2d-15b89e91a280","name":"pn-magical-shockley","tags":["created-along-with-k8s-cluster","created-by-cli"],"organization_id":"fa1e3217-dc80-42ac-85c3-3f034b78b552","created_at":"2023-06-07T15:15:11.095910Z","updated_at":"2023-06-07T15:15:11.095910Z","project_id":"fa1e3217-dc80-42ac-85c3-3f034b78b552","subnets":[{"id":"9c208d1f-2276-4484-841f-90fca172c519","created_at":"2023-06-07T15:15:11.095910Z","updated_at":"2023-06-07T15:15:11.095910Z","subnet":"172.16.28.0/22"},{"id":"d8d1cd8b-3db7-424a-bc3d-ee8d73d6308e","created_at":"2023-06-07T15:15:11.095910Z","updated_at":"2023-06-07T15:15:11.095910Z","subnet":"fd63:256c:45f7:e9da::/64"}],"vpc_id":"1ec1ecb6-8f58-4f7c-92cc-53c2a5ae519c","region":"fr-par"}'
1616
headers:
1717
Content-Length:
18-
- "1277"
18+
- "732"
1919
Content-Security-Policy:
2020
- default-src 'none'; frame-ancestors 'none'
2121
Content-Type:
2222
- application/json
2323
Date:
24-
- Thu, 16 Sep 2021 13:20:31 GMT
24+
- Wed, 07 Jun 2023 15:15:11 GMT
2525
Server:
2626
- Scaleway API-Gateway
2727
Strict-Transport-Security:
@@ -31,61 +31,33 @@ interactions:
3131
X-Frame-Options:
3232
- DENY
3333
X-Request-Id:
34-
- 6595c4f6-271a-4422-9c1c-0c2bc26b4e6b
34+
- 8b964a16-6bc4-4de0-b052-7df73a621cdd
3535
status: 200 OK
3636
code: 200
3737
duration: ""
3838
- request:
39-
body: ""
39+
body: '{"details":[{"argument_name":"version","help_message":"this version is
40+
not available","reason":"constraint"}],"message":"invalid argument(s)","type":"invalid_arguments"}'
4041
form: {}
4142
headers:
42-
User-Agent:
43-
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
44-
url: https://api.scaleway.com/k8s/v1/regions/fr-par/clusters/6e68d924-956f-4511-bfdb-1a796a190d33
45-
method: GET
46-
response:
47-
body: '{"region":"fr-par","id":"6e68d924-956f-4511-bfdb-1a796a190d33","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","created_at":"2021-09-16T13:20:30.618313Z","updated_at":"2021-09-16T13:20:31.409646Z","type":"kapsule","name":"cli-test","description":"","status":"creating","version":"1.17.3","cni":"cilium","tags":[],"cluster_url":"https://6e68d924-956f-4511-bfdb-1a796a190d33.api.k8s.fr-par.scw.cloud:6443","dns_wildcard":"*.6e68d924-956f-4511-bfdb-1a796a190d33.nodes.k8s.fr-par.scw.cloud","autoscaler_config":{"scale_down_disabled":false,"scale_down_delay_after_add":"10m","estimator":"binpacking","expander":"random","ignore_daemonsets_utilization":false,"balance_similar_node_groups":false,"expendable_pods_priority_cutoff":-10,"scale_down_unneeded_time":"10m","scale_down_utilization_threshold":0.5,"max_graceful_termination_sec":600},"dashboard_enabled":false,"ingress":"none","auto_upgrade":{"enabled":false,"maintenance_window":{"start_hour":0,"day":"any"}},"upgrade_available":true,"feature_gates":[],"admission_plugins":[],"open_id_connect_config":{"issuer_url":"","client_id":"","username_claim":"","username_prefix":"","groups_claim":[],"groups_prefix":"","required_claim":[]},"apiserver_cert_sans":[]}'
48-
headers:
49-
Content-Length:
50-
- "1271"
51-
Content-Security-Policy:
52-
- default-src 'none'; frame-ancestors 'none'
5343
Content-Type:
5444
- application/json
55-
Date:
56-
- Thu, 16 Sep 2021 13:20:31 GMT
57-
Server:
58-
- Scaleway API-Gateway
59-
Strict-Transport-Security:
60-
- max-age=63072000
61-
X-Content-Type-Options:
62-
- nosniff
63-
X-Frame-Options:
64-
- DENY
65-
X-Request-Id:
66-
- 938df522-b936-4782-8f31-1cedc2ffe80b
67-
status: 200 OK
68-
code: 200
69-
duration: ""
70-
- request:
71-
body: ""
72-
form: {}
73-
headers:
7445
User-Agent:
75-
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
76-
url: https://api.scaleway.com/k8s/v1/regions/fr-par/clusters/6e68d924-956f-4511-bfdb-1a796a190d33/pools?order_by=created_at_asc&status=unknown
77-
method: GET
46+
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.4; linux; amd64) cli-e2e-test
47+
url: https://api.scaleway.com/k8s/v1/regions/fr-par/clusters
48+
method: POST
7849
response:
79-
body: '{"total_count":1,"pools":[{"region":"fr-par","id":"42b228cf-ad4b-458e-b69b-046f8aa3c10c","cluster_id":"6e68d924-956f-4511-bfdb-1a796a190d33","created_at":"2021-09-16T13:20:30.663565Z","updated_at":"2021-09-16T13:20:30.672992Z","name":"default","status":"scaling","version":"1.17.3","node_type":"dev1_m","autoscaling":false,"size":1,"min_size":0,"max_size":1,"container_runtime":"containerd","autohealing":false,"tags":[],"placement_group_id":null,"kubelet_args":{},"upgrade_policy":{"max_unavailable":1,"max_surge":0},"zone":"fr-par-1"}]}'
50+
body: '{"details":[{"argument_name":"version","help_message":"this version is
51+
not available","reason":"constraint"}],"message":"invalid argument(s)","type":"invalid_arguments"}'
8052
headers:
8153
Content-Length:
82-
- "538"
54+
- "169"
8355
Content-Security-Policy:
8456
- default-src 'none'; frame-ancestors 'none'
8557
Content-Type:
8658
- application/json
8759
Date:
88-
- Thu, 16 Sep 2021 13:20:31 GMT
60+
- Wed, 07 Jun 2023 15:15:11 GMT
8961
Server:
9062
- Scaleway API-Gateway
9163
Strict-Transport-Security:
@@ -95,93 +67,27 @@ interactions:
9567
X-Frame-Options:
9668
- DENY
9769
X-Request-Id:
98-
- a1b1bfb5-90d1-4d53-9bb8-d7287882bdfd
99-
status: 200 OK
100-
code: 200
70+
- 6edcece1-e08b-4f0e-812d-820d36fa288f
71+
status: 400 Bad Request
72+
code: 400
10173
duration: ""
10274
- request:
10375
body: ""
10476
form: {}
10577
headers:
10678
User-Agent:
107-
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
108-
url: https://api.scaleway.com/k8s/v1/regions/fr-par/clusters/6e68d924-956f-4511-bfdb-1a796a190d33?with_additional_resources=false
79+
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.4; linux; amd64) cli-e2e-test
80+
url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/5e980a83-0ffe-4ae6-8c2d-15b89e91a280
10981
method: DELETE
11082
response:
111-
body: '{"region":"fr-par","id":"6e68d924-956f-4511-bfdb-1a796a190d33","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","created_at":"2021-09-16T13:20:30.618313Z","updated_at":"2021-09-16T13:20:31.654866950Z","type":"kapsule","name":"cli-test","description":"","status":"deleting","version":"1.17.3","cni":"cilium","tags":[],"cluster_url":"https://6e68d924-956f-4511-bfdb-1a796a190d33.api.k8s.fr-par.scw.cloud:6443","dns_wildcard":"*.6e68d924-956f-4511-bfdb-1a796a190d33.nodes.k8s.fr-par.scw.cloud","autoscaler_config":{"scale_down_disabled":false,"scale_down_delay_after_add":"10m","estimator":"binpacking","expander":"random","ignore_daemonsets_utilization":false,"balance_similar_node_groups":false,"expendable_pods_priority_cutoff":-10,"scale_down_unneeded_time":"10m","scale_down_utilization_threshold":0.5,"max_graceful_termination_sec":600},"dashboard_enabled":false,"ingress":"none","auto_upgrade":{"enabled":false,"maintenance_window":{"start_hour":0,"day":"any"}},"upgrade_available":true,"feature_gates":[],"admission_plugins":[],"open_id_connect_config":{"issuer_url":"","client_id":"","username_claim":"","username_prefix":"","groups_claim":[],"groups_prefix":"","required_claim":[]},"apiserver_cert_sans":[]}'
112-
headers:
113-
Content-Length:
114-
- "1274"
115-
Content-Security-Policy:
116-
- default-src 'none'; frame-ancestors 'none'
117-
Content-Type:
118-
- application/json
119-
Date:
120-
- Thu, 16 Sep 2021 13:20:31 GMT
121-
Server:
122-
- Scaleway API-Gateway
123-
Strict-Transport-Security:
124-
- max-age=63072000
125-
X-Content-Type-Options:
126-
- nosniff
127-
X-Frame-Options:
128-
- DENY
129-
X-Request-Id:
130-
- 33b3a51b-a4ec-4634-8d8d-a3b9f1181e3b
131-
status: 200 OK
132-
code: 200
133-
duration: ""
134-
- request:
13583
body: ""
136-
form: {}
13784
headers:
138-
User-Agent:
139-
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
140-
url: https://api.scaleway.com/k8s/v1/regions/fr-par/clusters/6e68d924-956f-4511-bfdb-1a796a190d33
141-
method: GET
142-
response:
143-
body: '{"region":"fr-par","id":"6e68d924-956f-4511-bfdb-1a796a190d33","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","project_id":"951df375-e094-4d26-97c1-ba548eeb9c42","created_at":"2021-09-16T13:20:30.618313Z","updated_at":"2021-09-16T13:20:31.654867Z","type":"kapsule","name":"cli-test","description":"","status":"deleting","version":"1.17.3","cni":"cilium","tags":[],"cluster_url":"https://6e68d924-956f-4511-bfdb-1a796a190d33.api.k8s.fr-par.scw.cloud:6443","dns_wildcard":"*.6e68d924-956f-4511-bfdb-1a796a190d33.nodes.k8s.fr-par.scw.cloud","autoscaler_config":{"scale_down_disabled":false,"scale_down_delay_after_add":"10m","estimator":"binpacking","expander":"random","ignore_daemonsets_utilization":false,"balance_similar_node_groups":false,"expendable_pods_priority_cutoff":-10,"scale_down_unneeded_time":"10m","scale_down_utilization_threshold":0.5,"max_graceful_termination_sec":600},"dashboard_enabled":false,"ingress":"none","auto_upgrade":{"enabled":false,"maintenance_window":{"start_hour":0,"day":"any"}},"upgrade_available":true,"feature_gates":[],"admission_plugins":[],"open_id_connect_config":{"issuer_url":"","client_id":"","username_claim":"","username_prefix":"","groups_claim":[],"groups_prefix":"","required_claim":[]},"apiserver_cert_sans":[]}'
144-
headers:
145-
Content-Length:
146-
- "1271"
147-
Content-Security-Policy:
148-
- default-src 'none'; frame-ancestors 'none'
149-
Content-Type:
150-
- application/json
151-
Date:
152-
- Thu, 16 Sep 2021 13:20:31 GMT
153-
Server:
154-
- Scaleway API-Gateway
155-
Strict-Transport-Security:
156-
- max-age=63072000
157-
X-Content-Type-Options:
158-
- nosniff
159-
X-Frame-Options:
160-
- DENY
161-
X-Request-Id:
162-
- 31b0a6a1-98c4-4fe2-897c-d03ca6be37fe
163-
status: 200 OK
164-
code: 200
165-
duration: ""
166-
- request:
167-
body: ""
168-
form: {}
169-
headers:
170-
User-Agent:
171-
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17; darwin; amd64) cli-e2e-test
172-
url: https://api.scaleway.com/k8s/v1/regions/fr-par/clusters/6e68d924-956f-4511-bfdb-1a796a190d33
173-
method: GET
174-
response:
175-
body: '{"message":"resource is not found","resource":"cluster","resource_id":"6e68d924-956f-4511-bfdb-1a796a190d33","type":"not_found"}'
176-
headers:
177-
Content-Length:
178-
- "128"
17985
Content-Security-Policy:
18086
- default-src 'none'; frame-ancestors 'none'
18187
Content-Type:
18288
- application/json
18389
Date:
184-
- Thu, 16 Sep 2021 13:20:36 GMT
90+
- Wed, 07 Jun 2023 15:15:11 GMT
18591
Server:
18692
- Scaleway API-Gateway
18793
Strict-Transport-Security:
@@ -191,7 +97,7 @@ interactions:
19197
X-Frame-Options:
19298
- DENY
19399
X-Request-Id:
194-
- c4fa49c6-352a-44fb-a945-c82260a8adde
195-
status: 404 Not Found
196-
code: 404
100+
- 99a91bd1-bd27-4aab-b3d5-6097f3fedd86
101+
status: 204 No Content
102+
code: 204
197103
duration: ""

0 commit comments

Comments
 (0)