Skip to content

Commit 35390f6

Browse files
committed
Fix
1 parent e5c450b commit 35390f6

4 files changed

Lines changed: 39 additions & 23 deletions

internal/namespaces/registry/v1/custom_docker_helper_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func TestRegistryInstallDockerHelperCommand(t *testing.T) {
3737
require.NoError(t, err)
3838
assert.JSONEq(
3939
t,
40-
"{\n \"credHelpers\": {\n \"rg.fr-par.scw.cloud\": \"scw\",\n \"rg.nl-ams.scw.cloud\": \"scw\",\n \"rg.pl-waw.scw.cloud\": \"scw\"\n }\n}\n",
40+
"{\n \"credHelpers\": {\n \"rg.fr-par.scw.cloud\": \"scw\",\n \"rg.it-mil.scw.cloud\": \"scw\",\n \"rg.nl-ams.scw.cloud\": \"scw\",\n \"rg.pl-waw.scw.cloud\": \"scw\"\n }\n}\n",
4141
string(dockerConfigContent),
4242
)
4343
},
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3-
{"rg.fr-par.scw.cloud":"scaleway","rg.nl-ams.scw.cloud":"scaleway","rg.pl-waw.scw.cloud":"scaleway"}🟩🟩🟩 JSON STDOUT 🟩🟩🟩
4-
{"rg.fr-par.scw.cloud":"scaleway","rg.nl-ams.scw.cloud":"scaleway","rg.pl-waw.scw.cloud":"scaleway"}
3+
{"rg.fr-par.scw.cloud":"scaleway","rg.it-mil.scw.cloud":"scaleway","rg.nl-ams.scw.cloud":"scaleway","rg.pl-waw.scw.cloud":"scaleway"}🟩🟩🟩 JSON STDOUT 🟩🟩🟩
4+
{"rg.fr-par.scw.cloud":"scaleway","rg.it-mil.scw.cloud":"scaleway","rg.nl-ams.scw.cloud":"scaleway","rg.pl-waw.scw.cloud":"scaleway"}

internal/namespaces/registry/v1/testdata/test-registry-install-docker-helper-command-simple.cassette.yaml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,42 @@
22
version: 1
33
interactions:
44
- request:
5-
body: '{"message":"authentication is denied","method":"api_key","reason":"not_found","type":"denied_authentication"}'
5+
body: '{"access_key":"SCW363CZ5SRN5YHQBGXY", "secret_key":null, "description":"rleone-macbook",
6+
"created_at":"2023-03-28T09:41:12.847132Z", "updated_at":"2025-09-08T15:21:36.563446Z",
7+
"expires_at":null, "default_project_id":"951df375-e094-4d26-97c1-ba548eeb9c42",
8+
"editable":true, "deletable":true, "managed":false, "creation_ip":"51.159.73.9",
9+
"user_id":"b49d82c1-ce3a-473f-9cef-420acc5256bf"}'
610
form: {}
711
headers:
812
User-Agent:
9-
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; linux; amd64) cli-e2e-test
10-
url: https://api.scaleway.com/iam/v1alpha1/api-keys/SCWXXXXXXXXXXXXXXXXX
13+
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.26.0; darwin; arm64) cli-e2e-test
14+
url: https://api.scaleway.com/iam/v1alpha1/api-keys/SCW363CZ5SRN5YHQBGXY
1115
method: GET
1216
response:
13-
body: '{"message":"authentication is denied","method":"api_key","reason":"not_found","type":"denied_authentication"}'
17+
body: '{"access_key":"SCW363CZ5SRN5YHQBGXY", "secret_key":null, "description":"rleone-macbook",
18+
"created_at":"2023-03-28T09:41:12.847132Z", "updated_at":"2025-09-08T15:21:36.563446Z",
19+
"expires_at":null, "default_project_id":"951df375-e094-4d26-97c1-ba548eeb9c42",
20+
"editable":true, "deletable":true, "managed":false, "creation_ip":"51.159.73.9",
21+
"user_id":"b49d82c1-ce3a-473f-9cef-420acc5256bf"}'
1422
headers:
1523
Content-Length:
16-
- "109"
24+
- "387"
1725
Content-Security-Policy:
1826
- default-src 'none'; frame-ancestors 'none'
1927
Content-Type:
2028
- application/json
2129
Date:
22-
- Thu, 14 Sep 2023 08:47:57 GMT
30+
- Tue, 24 Feb 2026 16:35:16 GMT
2331
Server:
24-
- Scaleway API-Gateway
32+
- Scaleway API Gateway (fr-par-1;edge01)
2533
Strict-Transport-Security:
2634
- max-age=63072000
2735
X-Content-Type-Options:
2836
- nosniff
2937
X-Frame-Options:
3038
- DENY
3139
X-Request-Id:
32-
- fa69b56e-0b6a-4363-9d0d-66048c5b20f3
33-
status: 401 Unauthorized
34-
code: 401
40+
- 4e7e444d-511b-48f2-b1d4-71ac907b519d
41+
status: 200 OK
42+
code: 200
3543
duration: ""

internal/namespaces/registry/v1/testdata/test-registry-install-docker-helper-command-with-profile.cassette.yaml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,42 @@
22
version: 1
33
interactions:
44
- request:
5-
body: '{"message":"authentication is denied","method":"api_key","reason":"not_found","type":"denied_authentication"}'
5+
body: '{"access_key":"SCW363CZ5SRN5YHQBGXY", "secret_key":null, "description":"rleone-macbook",
6+
"created_at":"2023-03-28T09:41:12.847132Z", "updated_at":"2025-09-08T15:21:36.563446Z",
7+
"expires_at":null, "default_project_id":"951df375-e094-4d26-97c1-ba548eeb9c42",
8+
"editable":true, "deletable":true, "managed":false, "creation_ip":"51.159.73.9",
9+
"user_id":"b49d82c1-ce3a-473f-9cef-420acc5256bf"}'
610
form: {}
711
headers:
812
User-Agent:
9-
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.20.3; linux; amd64) cli-e2e-test
10-
url: https://api.scaleway.com/iam/v1alpha1/api-keys/SCWXXXXXXXXXXXXXXXXX
13+
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.26.0; darwin; arm64) cli-e2e-test
14+
url: https://api.scaleway.com/iam/v1alpha1/api-keys/SCW363CZ5SRN5YHQBGXY
1115
method: GET
1216
response:
13-
body: '{"message":"authentication is denied","method":"api_key","reason":"not_found","type":"denied_authentication"}'
17+
body: '{"access_key":"SCW363CZ5SRN5YHQBGXY", "secret_key":null, "description":"rleone-macbook",
18+
"created_at":"2023-03-28T09:41:12.847132Z", "updated_at":"2025-09-08T15:21:36.563446Z",
19+
"expires_at":null, "default_project_id":"951df375-e094-4d26-97c1-ba548eeb9c42",
20+
"editable":true, "deletable":true, "managed":false, "creation_ip":"51.159.73.9",
21+
"user_id":"b49d82c1-ce3a-473f-9cef-420acc5256bf"}'
1422
headers:
1523
Content-Length:
16-
- "109"
24+
- "387"
1725
Content-Security-Policy:
1826
- default-src 'none'; frame-ancestors 'none'
1927
Content-Type:
2028
- application/json
2129
Date:
22-
- Thu, 14 Sep 2023 08:47:57 GMT
30+
- Tue, 24 Feb 2026 16:35:16 GMT
2331
Server:
24-
- Scaleway API-Gateway
32+
- Scaleway API Gateway (fr-par-1;edge01)
2533
Strict-Transport-Security:
2634
- max-age=63072000
2735
X-Content-Type-Options:
2836
- nosniff
2937
X-Frame-Options:
3038
- DENY
3139
X-Request-Id:
32-
- b3066976-183a-4b60-9890-09fe02d647a5
33-
status: 401 Unauthorized
34-
code: 401
40+
- dc7798a4-4f6c-4504-ace8-25f2bef4116c
41+
status: 200 OK
42+
code: 200
3543
duration: ""

0 commit comments

Comments
 (0)