Skip to content

Commit c794b0b

Browse files
committed
update golden
1 parent 034ccf9 commit c794b0b

File tree

3 files changed

+41
-5
lines changed

3 files changed

+41
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
version: 1
3+
interactions:
4+
- request:
5+
body: '{"message":"authentication is denied","method":"api_key","reason":"not_found","type":"denied_authentication"}'
6+
form: {}
7+
headers:
8+
User-Agent:
9+
- scaleway-sdk-go/v1.0.0-beta.32.0.20250319145910-2e85f595df2a (go1.24.1; darwin;
10+
amd64) cli-e2e-test
11+
url: https://api.scaleway.com/mongodb/v1alpha1/regions/fr-par/versions
12+
method: GET
13+
response:
14+
body: '{"message":"authentication is denied","method":"api_key","reason":"not_found","type":"denied_authentication"}'
15+
headers:
16+
Content-Length:
17+
- "109"
18+
Content-Security-Policy:
19+
- default-src 'none'; frame-ancestors 'none'
20+
Content-Type:
21+
- application/json
22+
Date:
23+
- Mon, 24 Mar 2025 14:30:10 GMT
24+
Server:
25+
- Scaleway API Gateway (fr-par-2;edge01)
26+
Strict-Transport-Security:
27+
- max-age=63072000
28+
X-Content-Type-Options:
29+
- nosniff
30+
X-Frame-Options:
31+
- DENY
32+
X-Request-Id:
33+
- a0f944b0-a8b6-43ad-8ddd-eb2ceee0c692
34+
status: 401 Unauthorized
35+
code: 401
36+
duration: ""

cmd/scw/testdata/test-all-usage-mongodb-instance-create-usage.golden

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ USAGE:
88
ARGS:
99
[project-id] Project ID to use. If none is passed the default project ID will be used
1010
[name=<generated>] Name of the Database Instance
11-
version Version of the MongoDB® engine
11+
version= Version of the MongoDB® engine
1212
[tags.{index}] Tags to apply to the Database Instance
13-
node-number Number of node to use for the Database Instance
13+
node-number=1 Number of node to use for the Database Instance
1414
node-type Type of node to use for the Database Instance
1515
user-name Username created when the Database Instance is created
1616
password Password of the initial user
17-
[volume.volume-size] Volume size
18-
[volume.volume-type] Type of volume where data is stored (unknown_type | sbs_5k | sbs_15k)
17+
[volume.volume-size=5GB] Volume size
18+
[volume.volume-type=sbs_5k] Type of volume where data is stored (unknown_type | sbs_5k | sbs_15k)
1919
[endpoints.{index}.private-network.private-network-id] UUID of the Private Network
2020
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
2121

internal/namespaces/mongodb/v1alpha1/custom_instance.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func fetchLatestEngine(ctx context.Context) (string, string) {
3939
if err != nil {
4040
return "", ""
4141
}
42-
42+
4343
return latestValueVersion.Version, latestValueVersion.Version
4444
}
4545

0 commit comments

Comments
 (0)