-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(init): activate first create profile (#3441)
- Loading branch information
Showing
4 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
.../namespaces/init/testdata/test-init-cl-iv2-config-default-profile-activated.cassette.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
version: 1 | ||
interactions: | ||
- request: | ||
body: '{"access_key":"SCWQN1ZYHWPFGJD28Q70", "secret_key":null, "description":"iam", | ||
"created_at":"2022-08-22T09:13:42.922733Z", "updated_at":"2022-10-20T08:29:52.752429Z", | ||
"expires_at":null, "default_project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", | ||
"editable":true, "creation_ip":"51.159.73.9", "user_id":"38d8ec28-dbee-4dbe-a4e8-56adcc285e8b"}' | ||
form: {} | ||
headers: | ||
User-Agent: | ||
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.1; linux; amd64) scaleway-cli/0.0.0+test | ||
url: https://api.scaleway.com/iam/v1alpha1/api-keys/SCWXXXXXXXXXXXXXXXXX | ||
method: GET | ||
response: | ||
body: '{"access_key":"SCWQN1ZYHWPFGJD28Q70", "secret_key":null, "description":"iam", | ||
"created_at":"2022-08-22T09:13:42.922733Z", "updated_at":"2022-10-20T08:29:52.752429Z", | ||
"expires_at":null, "default_project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", | ||
"editable":true, "creation_ip":"51.159.73.9", "user_id":"38d8ec28-dbee-4dbe-a4e8-56adcc285e8b"}' | ||
headers: | ||
Content-Length: | ||
- "341" | ||
Content-Security-Policy: | ||
- default-src 'none'; frame-ancestors 'none' | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Wed, 18 Oct 2023 12:53:51 GMT | ||
Server: | ||
- Scaleway API-Gateway | ||
Strict-Transport-Security: | ||
- max-age=63072000 | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- DENY | ||
X-Request-Id: | ||
- 3107e65a-7df2-4aa8-8e1e-883cc691e9af | ||
status: 200 OK | ||
code: 200 | ||
duration: "" |
8 changes: 8 additions & 0 deletions
8
internal/namespaces/init/testdata/test-init-cl-iv2-config-default-profile-activated.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
π²π²π² EXIT CODE: 0 π²π²π² | ||
π©π©π© STDOUTοΈ π©π©π©οΈ | ||
β Initialization completed with success. | ||
π©π©π© JSON STDOUT π©π©π© | ||
{ | ||
"message": "Initialization completed with success", | ||
"details": "" | ||
} |