From f7c01497be173be92fee3f0350f4b387ccd52303 Mon Sep 17 00:00:00 2001 From: Yacine FODIL Date: Tue, 16 May 2023 09:32:51 +0200 Subject: [PATCH 1/3] fix --- ...all-usage-rdb-instance-create-usage.golden | 3 +- ...est-all-usage-rdb-user-create-usage.golden | 11 +- ...est-all-usage-rdb-user-update-usage.golden | 11 +- docs/commands/rdb.md | 5 +- internal/namespaces/rdb/v1/custom.go | 3 + internal/namespaces/rdb/v1/custom_instance.go | 101 +- .../namespaces/rdb/v1/custom_instance_test.go | 7 + internal/namespaces/rdb/v1/custom_user.go | 110 +++ .../namespaces/rdb/v1/custom_user_test.go | 43 + .../test-create-instance-simple.cassette.yaml | 498 +++++++--- .../test-create-instance-simple.golden | 83 +- ...ance-with-password-generator.cassette.yaml | 623 +++++++++++++ ...te-instance-with-password-generator.golden | 118 +++ .../test-create-user-simple.cassette.yaml | 657 +++++++++++++ .../testdata/test-create-user-simple.golden | 11 + ...user-with-password-generator.cassette.yaml | 611 ++++++++++++ ...create-user-with-password-generator.golden | 11 + .../test-update-user-simple.cassette.yaml | 875 ++++++++++++++++++ .../testdata/test-update-user-simple.golden | 11 + ...user-with-password-generator.cassette.yaml | 691 ++++++++++++++ ...update-user-with-password-generator.golden | 11 + .../passwordgenerator/password_generator.go | 83 ++ .../password_generator_test.go | 59 ++ 23 files changed, 4427 insertions(+), 209 deletions(-) create mode 100644 internal/namespaces/rdb/v1/testdata/test-create-instance-with-password-generator.cassette.yaml create mode 100644 internal/namespaces/rdb/v1/testdata/test-create-instance-with-password-generator.golden create mode 100644 internal/namespaces/rdb/v1/testdata/test-create-user-simple.cassette.yaml create mode 100644 internal/namespaces/rdb/v1/testdata/test-create-user-simple.golden create mode 100644 internal/namespaces/rdb/v1/testdata/test-create-user-with-password-generator.cassette.yaml create mode 100644 internal/namespaces/rdb/v1/testdata/test-create-user-with-password-generator.golden create mode 100644 internal/namespaces/rdb/v1/testdata/test-update-user-simple.cassette.yaml create mode 100644 internal/namespaces/rdb/v1/testdata/test-update-user-simple.golden create mode 100644 internal/namespaces/rdb/v1/testdata/test-update-user-with-password-generator.cassette.yaml create mode 100644 internal/namespaces/rdb/v1/testdata/test-update-user-with-password-generator.golden create mode 100644 internal/passwordgenerator/password_generator.go create mode 100644 internal/passwordgenerator/password_generator_test.go diff --git a/cmd/scw/testdata/test-all-usage-rdb-instance-create-usage.golden b/cmd/scw/testdata/test-all-usage-rdb-instance-create-usage.golden index f6683802ee..f606894e1a 100644 --- a/cmd/scw/testdata/test-all-usage-rdb-instance-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-rdb-instance-create-usage.golden @@ -10,7 +10,8 @@ ARGS: [name=] Name of the Database Instance engine Database engine of the Database Instance (PostgreSQL, MySQL, ...) user-name Username created when the Database Instance is created - password Password of the user + [generate-password=true] Will generate a 21 character-length password that contains a mix of upper/lower case letters, numbers and special symbols + [password] Password of the user node-type=DB-DEV-S Type of node to use for the Database Instance [is-ha-cluster] Defines whether or not High-Availability is enabled [disable-backup] Defines whether or not backups are disabled diff --git a/cmd/scw/testdata/test-all-usage-rdb-user-create-usage.golden b/cmd/scw/testdata/test-all-usage-rdb-user-create-usage.golden index 68c598ce1b..348ccc5419 100644 --- a/cmd/scw/testdata/test-all-usage-rdb-user-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-rdb-user-create-usage.golden @@ -6,11 +6,12 @@ USAGE: scw rdb user create [arg=value ...] ARGS: - instance-id UUID of the Database Instance in which you want to create a user - [name] Name of the user you want to create - [password] Password of the user you want to create - [is-admin] Defines whether the user will have administrative privileges - [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) + instance-id UUID of the Database Instance in which you want to create a user + [name] Name of the user you want to create + [password] Password of the user you want to create + [generate-password=true] Will generate a 21 character-length password that contains a mix of upper/lower case letters, numbers and special symbols + [is-admin] Defines whether the user will have administrative privileges + [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) FLAGS: -h, --help help for create diff --git a/cmd/scw/testdata/test-all-usage-rdb-user-update-usage.golden b/cmd/scw/testdata/test-all-usage-rdb-user-update-usage.golden index dbac7d98b0..85833a1bfb 100644 --- a/cmd/scw/testdata/test-all-usage-rdb-user-update-usage.golden +++ b/cmd/scw/testdata/test-all-usage-rdb-user-update-usage.golden @@ -6,11 +6,12 @@ USAGE: scw rdb user update [arg=value ...] ARGS: - instance-id UUID of the Database Instance the user belongs to - name Name of the database user - [password] Password of the database user - [is-admin] Defines whether or not this user got administrative privileges - [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) + instance-id UUID of the Database Instance the user belongs to + name Name of the database user + [password] Password of the database user + [generate-password=true] Will generate a 21 character-length password that contains a mix of upper/lower case letters, numbers and special symbols + [is-admin] Defines whether or not this user got administrative privileges + [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) FLAGS: -h, --help help for update diff --git a/docs/commands/rdb.md b/docs/commands/rdb.md index 2b91488116..8ceef8fa12 100644 --- a/docs/commands/rdb.md +++ b/docs/commands/rdb.md @@ -688,7 +688,8 @@ scw rdb instance create [arg=value ...] | name | Default: `` | Name of the Database Instance | | engine | Required | Database engine of the Database Instance (PostgreSQL, MySQL, ...) | | user-name | Required | Username created when the Database Instance is created | -| password | Required | Password of the user | +| generate-password | Default: `true` | Will generate a 21 character-length password that contains a mix of upper/lower case letters, numbers and special symbols | +| password | | Password of the user | | node-type | Required
Default: `DB-DEV-S` | Type of node to use for the Database Instance | | is-ha-cluster | | Defines whether or not High-Availability is enabled | | disable-backup | | Defines whether or not backups are disabled | @@ -1514,6 +1515,7 @@ scw rdb user create [arg=value ...] | instance-id | Required | UUID of the Database Instance in which you want to create a user | | name | | Name of the user you want to create | | password | | Password of the user you want to create | +| generate-password | Default: `true` | Will generate a 21 character-length password that contains a mix of upper/lower case letters, numbers and special symbols | | is-admin | | Defines whether the user will have administrative privileges | | region | Default: `fr-par`
One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config | @@ -1580,6 +1582,7 @@ scw rdb user update [arg=value ...] | instance-id | Required | UUID of the Database Instance the user belongs to | | name | Required | Name of the database user | | password | | Password of the database user | +| generate-password | Default: `true` | Will generate a 21 character-length password that contains a mix of upper/lower case letters, numbers and special symbols | | is-admin | | Defines whether or not this user got administrative privileges | | region | Default: `fr-par`
One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config | diff --git a/internal/namespaces/rdb/v1/custom.go b/internal/namespaces/rdb/v1/custom.go index 294988c445..146bbf1751 100644 --- a/internal/namespaces/rdb/v1/custom.go +++ b/internal/namespaces/rdb/v1/custom.go @@ -12,6 +12,7 @@ func GetCommands() *core.Commands { human.RegisterMarshalerFunc(rdb.Instance{}, instanceMarshalerFunc) human.RegisterMarshalerFunc(rdb.BackupSchedule{}, backupScheduleMarshalerFunc) human.RegisterMarshalerFunc(backupDownloadResult{}, backupResultMarshallerFunc) + human.RegisterMarshalerFunc(createInstanceResult{}, createInstanceResultMarshalerFunc) human.RegisterMarshalerFunc(rdb.InstanceStatus(""), human.EnumMarshalFunc(instanceStatusMarshalSpecs)) human.RegisterMarshalerFunc(rdb.DatabaseBackupStatus(""), human.EnumMarshalFunc(backupStatusMarshalSpecs)) @@ -41,6 +42,8 @@ func GetCommands() *core.Commands { cmds.MustFind("rdb", "engine", "list").Override(engineListBuilder) cmds.MustFind("rdb", "user", "list").Override(userListBuilder) + cmds.MustFind("rdb", "user", "create").Override(userCreateBuilder) + cmds.MustFind("rdb", "user", "update").Override(userUpdateBuilder) cmds.MustFind("rdb", "backup", "list").Override(backupListBuilder) diff --git a/internal/namespaces/rdb/v1/custom_instance.go b/internal/namespaces/rdb/v1/custom_instance.go index 6dbdc004f3..a2626ec97b 100644 --- a/internal/namespaces/rdb/v1/custom_instance.go +++ b/internal/namespaces/rdb/v1/custom_instance.go @@ -15,6 +15,8 @@ import ( "github.com/scaleway/scaleway-cli/v2/internal/core" "github.com/scaleway/scaleway-cli/v2/internal/human" "github.com/scaleway/scaleway-cli/v2/internal/interactive" + "github.com/scaleway/scaleway-cli/v2/internal/passwordgenerator" + "github.com/scaleway/scaleway-cli/v2/internal/terminal" "github.com/scaleway/scaleway-sdk-go/api/rdb/v1" "github.com/scaleway/scaleway-sdk-go/scw" ) @@ -48,6 +50,40 @@ type serverWaitRequest struct { Timeout time.Duration } +type createInstanceResult struct { + *rdb.Instance + Password string +} + +func createInstanceResultMarshalerFunc(i interface{}, opt *human.MarshalOpt) (string, error) { + instanceResult := i.(createInstanceResult) + + opt.Sections = []*human.MarshalSection{ + { + FieldName: "Endpoint", + }, + { + FieldName: "Volume", + }, + { + FieldName: "BackupSchedule", + }, + { + FieldName: "Settings", + }, + } + + instanceStr, err := human.Marshal(instanceResult.Instance, opt) + if err != nil { + return "", err + } + + return strings.Join([]string{ + instanceStr, + terminal.Style("Password: ", color.Bold) + "\n" + instanceResult.Password, + }, "\n\n"), nil +} + func instanceMarshalerFunc(i interface{}, opt *human.MarshalOpt) (string, error) { // To avoid recursion of human.Marshal we create a dummy type type tmp rdb.Instance @@ -154,22 +190,79 @@ func autoCompleteNodeType(ctx context.Context, prefix string) core.AutocompleteS } func instanceCreateBuilder(c *core.Command) *core.Command { + type rdbCreateInstanceRequestCustom struct { + *rdb.CreateInstanceRequest + GeneratePassword bool + } + + c.ArgSpecs.AddBefore("password", &core.ArgSpec{ + Name: "generate-password", + Short: `Will generate a 21 character-length password that contains a mix of upper/lower case letters, numbers and special symbols`, + Required: false, + Deprecated: false, + Positional: false, + Default: core.DefaultValueSetter("true"), + }) + c.ArgSpecs.GetByName("password").Required = false c.ArgSpecs.GetByName("node-type").Default = core.DefaultValueSetter("DB-DEV-S") c.ArgSpecs.GetByName("node-type").AutoCompleteFunc = autoCompleteNodeType + c.ArgsType = reflect.TypeOf(rdbCreateInstanceRequestCustom{}) + c.WaitFunc = func(ctx context.Context, argsI, respI interface{}) (interface{}, error) { api := rdb.NewAPI(core.ExtractClient(ctx)) - return api.WaitForInstance(&rdb.WaitForInstanceRequest{ - InstanceID: respI.(*rdb.Instance).ID, - Region: respI.(*rdb.Instance).Region, + instance, err := api.WaitForInstance(&rdb.WaitForInstanceRequest{ + InstanceID: respI.(createInstanceResult).Instance.ID, + Region: respI.(createInstanceResult).Instance.Region, Timeout: scw.TimeDurationPtr(instanceActionTimeout), RetryInterval: core.DefaultRetryInterval, }) + if err != nil { + return nil, err + } + + result := createInstanceResult{ + Instance: instance, + Password: respI.(createInstanceResult).Password, + } + + return result, nil + } + + c.Run = func(ctx context.Context, argsI interface{}) (interface{}, error) { + client := core.ExtractClient(ctx) + api := rdb.NewAPI(client) + + customRequest := argsI.(*rdbCreateInstanceRequestCustom) + createInstanceRequest := customRequest.CreateInstanceRequest + + var err error + createInstanceRequest.NodeType = strings.ToLower(createInstanceRequest.NodeType) + if customRequest.GeneratePassword && customRequest.Password == "" { + createInstanceRequest.Password, err = passwordgenerator.GeneratePassword(21, 1, 1, 1, 1) + if err != nil { + return nil, err + } + fmt.Printf("Your generated password is %s \n", createInstanceRequest.Password) + fmt.Printf("\n") + } + + instance, err := api.CreateInstance(createInstanceRequest) + if err != nil { + return nil, err + } + + result := createInstanceResult{ + Instance: instance, + Password: createInstanceRequest.Password, + } + + return result, nil } // Waiting for API to accept uppercase node-type c.Interceptor = func(ctx context.Context, argsI interface{}, runner core.CommandRunner) (interface{}, error) { - args := argsI.(*rdb.CreateInstanceRequest) + args := argsI.(*rdbCreateInstanceRequestCustom) args.NodeType = strings.ToLower(args.NodeType) return runner(ctx, args) } diff --git a/internal/namespaces/rdb/v1/custom_instance_test.go b/internal/namespaces/rdb/v1/custom_instance_test.go index 09d6ab2bf2..b33b062aa7 100644 --- a/internal/namespaces/rdb/v1/custom_instance_test.go +++ b/internal/namespaces/rdb/v1/custom_instance_test.go @@ -36,6 +36,13 @@ func Test_CreateInstance(t *testing.T) { Check: core.TestCheckGolden(), AfterFunc: core.ExecAfterCmd("scw rdb instance delete {{ .CmdResult.ID }}"), })) + + t.Run("With password generator", core.Test(&core.TestConfig{ + Commands: GetCommands(), + Cmd: fmt.Sprintf("scw rdb instance create node-type=DB-DEV-S is-ha-cluster=false name=%s engine=%s user-name=%s generate-password=true --wait", name, engine, user), + Check: core.TestCheckGolden(), + AfterFunc: core.ExecAfterCmd("scw rdb instance delete {{ .CmdResult.ID }}"), + })) } func Test_GetInstance(t *testing.T) { diff --git a/internal/namespaces/rdb/v1/custom_user.go b/internal/namespaces/rdb/v1/custom_user.go index d330769835..4103cc1b64 100644 --- a/internal/namespaces/rdb/v1/custom_user.go +++ b/internal/namespaces/rdb/v1/custom_user.go @@ -2,8 +2,11 @@ package rdb import ( "context" + "fmt" + "reflect" "github.com/scaleway/scaleway-cli/v2/internal/core" + "github.com/scaleway/scaleway-cli/v2/internal/passwordgenerator" "github.com/scaleway/scaleway-sdk-go/api/rdb/v1" "github.com/scaleway/scaleway-sdk-go/scw" ) @@ -80,3 +83,110 @@ func userListBuilder(c *core.Command) *core.Command { return c } + +func userCreateBuilder(c *core.Command) *core.Command { + type rdbCreateUserRequestCustom struct { + *rdb.CreateUserRequest + GeneratePassword bool + } + + type rdbCreateUserResponseCustom struct { + *rdb.User + Password string + } + + c.ArgSpecs.AddBefore("is-admin", &core.ArgSpec{ + Name: "generate-password", + Short: `Will generate a 21 character-length password that contains a mix of upper/lower case letters, numbers and special symbols`, + Required: false, + Deprecated: false, + Positional: false, + Default: core.DefaultValueSetter("true"), + }) + c.ArgsType = reflect.TypeOf(rdbCreateUserRequestCustom{}) + + c.Run = func(ctx context.Context, argsI interface{}) (interface{}, error) { + client := core.ExtractClient(ctx) + api := rdb.NewAPI(client) + + customRequest := argsI.(*rdbCreateUserRequestCustom) + createUserRequest := customRequest.CreateUserRequest + + var err error + if customRequest.GeneratePassword && customRequest.Password == "" { + createUserRequest.Password, err = passwordgenerator.GeneratePassword(21, 1, 1, 1, 1) + if err != nil { + return nil, err + } + fmt.Printf("Your generated password is %s \n", createUserRequest.Password) + fmt.Printf("\n") + } + + user, err := api.CreateUser(createUserRequest) + if err != nil { + return nil, err + } + + result := rdbCreateUserResponseCustom{ + User: user, + Password: createUserRequest.Password, + } + + return result, nil + } + + return c +} + +func userUpdateBuilder(c *core.Command) *core.Command { + type rdbUpdateUserRequestCustom struct { + *rdb.UpdateUserRequest + GeneratePassword bool + } + + type rdbUpdateUserResponseCustom struct { + *rdb.User + Password string + } + + c.ArgSpecs.AddBefore("is-admin", &core.ArgSpec{ + Name: "generate-password", + Short: `Will generate a 21 character-length password that contains a mix of upper/lower case letters, numbers and special symbols`, + Required: false, + Deprecated: false, + Positional: false, + Default: core.DefaultValueSetter("true"), + }) + c.ArgsType = reflect.TypeOf(rdbUpdateUserRequestCustom{}) + + c.Run = func(ctx context.Context, argsI interface{}) (interface{}, error) { + client := core.ExtractClient(ctx) + api := rdb.NewAPI(client) + + customRequest := argsI.(*rdbUpdateUserRequestCustom) + + updateUserRequest := customRequest.UpdateUserRequest + + var err error + if customRequest.GeneratePassword && customRequest.Password == nil { + updateUserRequest.Password = new(string) + *updateUserRequest.Password, err = passwordgenerator.GeneratePassword(21, 1, 1, 1, 1) + fmt.Printf("Your generated password is %v \n", *updateUserRequest.Password) + fmt.Printf("\n") + } + + user, err := api.UpdateUser(updateUserRequest) + if err != nil { + return nil, err + } + + result := rdbUpdateUserResponseCustom{ + User: user, + Password: *updateUserRequest.Password, + } + + return result, nil + } + + return c +} diff --git a/internal/namespaces/rdb/v1/custom_user_test.go b/internal/namespaces/rdb/v1/custom_user_test.go index 9c7ffb22b1..da6efda5d2 100644 --- a/internal/namespaces/rdb/v1/custom_user_test.go +++ b/internal/namespaces/rdb/v1/custom_user_test.go @@ -1,6 +1,7 @@ package rdb import ( + "fmt" "testing" "github.com/scaleway/scaleway-cli/v2/internal/core" @@ -15,3 +16,45 @@ func Test_ListUser(t *testing.T) { AfterFunc: deleteInstance(), })) } + +func Test_CreateUser(t *testing.T) { + t.Run("Simple", core.Test(&core.TestConfig{ + Commands: GetCommands(), + BeforeFunc: createInstance("PostgreSQL-12"), + Cmd: fmt.Sprintf("scw rdb user create instance-id={{ $.Instance.Instance.ID }} name=%s password=%s", name, password), + Check: core.TestCheckGolden(), + AfterFunc: deleteInstance(), + })) + + t.Run("With password generator", core.Test(&core.TestConfig{ + Commands: GetCommands(), + BeforeFunc: createInstance("PostgreSQL-12"), + Cmd: fmt.Sprintf("scw rdb user create instance-id={{ $.Instance.Instance.ID }} name=%s generate-password=true", name), + Check: core.TestCheckGolden(), + AfterFunc: deleteInstance(), + })) +} + +func Test_UpdateUser(t *testing.T) { + t.Run("Simple", core.Test(&core.TestConfig{ + Commands: GetCommands(), + BeforeFunc: core.BeforeFuncCombine( + createInstance("PostgreSQL-12"), + core.ExecBeforeCmd(fmt.Sprintf("scw rdb user create instance-id={{ $.Instance.Instance.ID }} name=%s password=%s", name, password)), + ), + Cmd: fmt.Sprintf("scw rdb user update instance-id={{ $.Instance.Instance.ID }} name=%s password=Newp1ssw0rd! is-admin=true", name), + Check: core.TestCheckGolden(), + AfterFunc: deleteInstance(), + })) + + t.Run("With password generator", core.Test(&core.TestConfig{ + Commands: GetCommands(), + BeforeFunc: core.BeforeFuncCombine( + createInstance("PostgreSQL-12"), + core.ExecBeforeCmd(fmt.Sprintf("scw rdb user create instance-id={{ $.Instance.Instance.ID }} name=%s password=%s", name, password)), + ), + Cmd: fmt.Sprintf("scw rdb user update instance-id={{ $.Instance.Instance.ID }} name=%s generate-password=true is-admin=true", name), + Check: core.TestCheckGolden(), + AfterFunc: deleteInstance(), + })) +} diff --git a/internal/namespaces/rdb/v1/testdata/test-create-instance-simple.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-create-instance-simple.cassette.yaml index 55f9b3d7b7..da0196546d 100644 --- a/internal/namespaces/rdb/v1/testdata/test-create-instance-simple.cassette.yaml +++ b/internal/namespaces/rdb/v1/testdata/test-create-instance-simple.cassette.yaml @@ -2,26 +2,40 @@ version: 1 interactions: - request: - body: '{"project_id":"105bdce1-64c0-48ab-899d-868455867ecf","name":"cli-test","engine":"PostgreSQL-12","user_name":"foobar","password":"{4xdl*#QOoP+\u00263XRkGA)]","node_type":"db-dev-s","is_ha_cluster":false,"disable_backup":false,"tags":null,"init_settings":null,"volume_type":"lssd","volume_size":0,"init_endpoints":null,"backup_same_region":false}' + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19; darwin; amd64) cli-e2e-test + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances method: POST response: - body: '{"id":"61458ec3-4378-457f-b3f1-4dcd40f9d3ac","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"provisioning","engine":"PostgreSQL-12","upgradable_version":[{"id":"91550da0-b896-4f3a-aa4d-aa30893d0a89","name":"PostgreSQL-14","version":"14","minor_version":"14.6"},{"id":"46701e85-b5f4-479f-a92d-cc4f31a9eeb9","name":"PostgreSQL-13","version":"13","minor_version":"13.9"}],"endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-01-24T10:17:17.075310Z","region":"fr-par"}' + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' headers: Content-Length: - - "878" + - "690" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 24 Jan 2023 10:17:17 GMT + - Mon, 15 May 2023 21:17:58 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -31,29 +45,43 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 531f463e-f997-4487-9496-427dc424c762 + - eb080ef5-d6ce-451f-9308-00ad481097a7 status: 200 OK code: 200 duration: "" - request: - body: "" + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61458ec3-4378-457f-b3f1-4dcd40f9d3ac + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c method: GET response: - body: '{"id":"61458ec3-4378-457f-b3f1-4dcd40f9d3ac","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"provisioning","engine":"PostgreSQL-12","upgradable_version":[{"id":"91550da0-b896-4f3a-aa4d-aa30893d0a89","name":"PostgreSQL-14","version":"14","minor_version":"14.6"},{"id":"46701e85-b5f4-479f-a92d-cc4f31a9eeb9","name":"PostgreSQL-13","version":"13","minor_version":"13.9"}],"endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-01-24T10:17:17.075310Z","region":"fr-par"}' + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' headers: Content-Length: - - "878" + - "690" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 24 Jan 2023 10:17:18 GMT + - Mon, 15 May 2023 21:17:58 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -63,29 +91,43 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 8c483a05-0159-479d-958a-173ad6c746b4 + - 049e4074-fe53-4aee-a528-4f37e8adff9a status: 200 OK code: 200 duration: "" - request: - body: "" + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61458ec3-4378-457f-b3f1-4dcd40f9d3ac + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c method: GET response: - body: '{"id":"61458ec3-4378-457f-b3f1-4dcd40f9d3ac","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"provisioning","engine":"PostgreSQL-12","upgradable_version":[{"id":"91550da0-b896-4f3a-aa4d-aa30893d0a89","name":"PostgreSQL-14","version":"14","minor_version":"14.6"},{"id":"46701e85-b5f4-479f-a92d-cc4f31a9eeb9","name":"PostgreSQL-13","version":"13","minor_version":"13.9"}],"endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-01-24T10:17:17.075310Z","region":"fr-par"}' + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' headers: Content-Length: - - "878" + - "690" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 24 Jan 2023 10:17:33 GMT + - Mon, 15 May 2023 21:18:13 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -95,29 +137,43 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 54107a89-68f0-401c-b2a9-100656d03ed4 + - 14e0ae70-f9ca-4c73-b92d-85cea3610b26 status: 200 OK code: 200 duration: "" - request: - body: "" + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61458ec3-4378-457f-b3f1-4dcd40f9d3ac + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c method: GET response: - body: '{"id":"61458ec3-4378-457f-b3f1-4dcd40f9d3ac","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"provisioning","engine":"PostgreSQL-12","upgradable_version":[{"id":"91550da0-b896-4f3a-aa4d-aa30893d0a89","name":"PostgreSQL-14","version":"14","minor_version":"14.6"},{"id":"46701e85-b5f4-479f-a92d-cc4f31a9eeb9","name":"PostgreSQL-13","version":"13","minor_version":"13.9"}],"endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-01-24T10:17:17.075310Z","region":"fr-par"}' + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' headers: Content-Length: - - "878" + - "690" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 24 Jan 2023 10:17:48 GMT + - Mon, 15 May 2023 21:18:28 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -127,29 +183,43 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - b01c4e05-629a-4c69-9e8e-d620b5eca2c5 + - b2af7ff6-9487-4a4b-a0db-c3dab68cd411 status: 200 OK code: 200 duration: "" - request: - body: "" + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61458ec3-4378-457f-b3f1-4dcd40f9d3ac + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c method: GET response: - body: '{"id":"61458ec3-4378-457f-b3f1-4dcd40f9d3ac","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"provisioning","engine":"PostgreSQL-12","upgradable_version":[{"id":"91550da0-b896-4f3a-aa4d-aa30893d0a89","name":"PostgreSQL-14","version":"14","minor_version":"14.6"},{"id":"46701e85-b5f4-479f-a92d-cc4f31a9eeb9","name":"PostgreSQL-13","version":"13","minor_version":"13.9"}],"endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-01-24T10:17:17.075310Z","region":"fr-par"}' + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' headers: Content-Length: - - "878" + - "690" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 24 Jan 2023 10:18:03 GMT + - Mon, 15 May 2023 21:18:43 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -159,29 +229,43 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 033c3216-7283-4917-97c3-e4a8734da9f6 + - d7d503dc-ab66-4000-84ee-94160004bde6 status: 200 OK code: 200 duration: "" - request: - body: "" + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61458ec3-4378-457f-b3f1-4dcd40f9d3ac + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c method: GET response: - body: '{"id":"61458ec3-4378-457f-b3f1-4dcd40f9d3ac","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-12","upgradable_version":[{"id":"91550da0-b896-4f3a-aa4d-aa30893d0a89","name":"PostgreSQL-14","version":"14","minor_version":"14.6"},{"id":"46701e85-b5f4-479f-a92d-cc4f31a9eeb9","name":"PostgreSQL-13","version":"13","minor_version":"13.9"}],"endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-01-24T10:17:17.075310Z","region":"fr-par"}' + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' headers: Content-Length: - - "878" + - "690" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 24 Jan 2023 10:18:18 GMT + - Mon, 15 May 2023 21:18:58 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -191,29 +275,43 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - de4958fb-a8f0-4dd3-bb48-53688dd5151f + - 0cec057c-b5a1-43db-b7c4-b9f43814650a status: 200 OK code: 200 duration: "" - request: - body: "" + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61458ec3-4378-457f-b3f1-4dcd40f9d3ac + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c method: GET response: - body: '{"id":"61458ec3-4378-457f-b3f1-4dcd40f9d3ac","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-12","upgradable_version":[{"id":"91550da0-b896-4f3a-aa4d-aa30893d0a89","name":"PostgreSQL-14","version":"14","minor_version":"14.6"},{"id":"46701e85-b5f4-479f-a92d-cc4f31a9eeb9","name":"PostgreSQL-13","version":"13","minor_version":"13.9"}],"endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-01-24T10:17:17.075310Z","region":"fr-par"}' + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' headers: Content-Length: - - "878" + - "690" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 24 Jan 2023 10:18:33 GMT + - Mon, 15 May 2023 21:19:14 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -223,29 +321,43 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 2a0943e2-51b8-46bb-bdcb-3ff0a45a3fbd + - 6e69e793-c80b-48dd-84d4-cfe26eaa5513 status: 200 OK code: 200 duration: "" - request: - body: "" + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61458ec3-4378-457f-b3f1-4dcd40f9d3ac + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c method: GET response: - body: '{"id":"61458ec3-4378-457f-b3f1-4dcd40f9d3ac","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-12","upgradable_version":[{"id":"91550da0-b896-4f3a-aa4d-aa30893d0a89","name":"PostgreSQL-14","version":"14","minor_version":"14.6"},{"id":"46701e85-b5f4-479f-a92d-cc4f31a9eeb9","name":"PostgreSQL-13","version":"13","minor_version":"13.9"}],"endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-01-24T10:17:17.075310Z","region":"fr-par"}' + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' headers: Content-Length: - - "878" + - "690" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 24 Jan 2023 10:18:48 GMT + - Mon, 15 May 2023 21:19:29 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -255,29 +367,43 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 9587ded1-eacc-48c3-b042-a1a7bb158ba7 + - 064dd58e-50bd-47f8-98f7-e134a2386bb8 status: 200 OK code: 200 duration: "" - request: - body: "" + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61458ec3-4378-457f-b3f1-4dcd40f9d3ac + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c method: GET response: - body: '{"id":"61458ec3-4378-457f-b3f1-4dcd40f9d3ac","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-12","upgradable_version":[{"id":"91550da0-b896-4f3a-aa4d-aa30893d0a89","name":"PostgreSQL-14","version":"14","minor_version":"14.6"},{"id":"46701e85-b5f4-479f-a92d-cc4f31a9eeb9","name":"PostgreSQL-13","version":"13","minor_version":"13.9"}],"endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-01-24T10:17:17.075310Z","region":"fr-par"}' + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' headers: Content-Length: - - "878" + - "690" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 24 Jan 2023 10:19:04 GMT + - Mon, 15 May 2023 21:19:44 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -287,29 +413,43 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f9a76884-ffe2-4860-84fa-e48cec037104 + - 7f7ff8f3-ead3-4e1a-93d8-5b102730d48f status: 200 OK code: 200 duration: "" - request: - body: "" + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61458ec3-4378-457f-b3f1-4dcd40f9d3ac + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c method: GET response: - body: '{"id":"61458ec3-4378-457f-b3f1-4dcd40f9d3ac","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-12","upgradable_version":[{"id":"91550da0-b896-4f3a-aa4d-aa30893d0a89","name":"PostgreSQL-14","version":"14","minor_version":"14.6"},{"id":"46701e85-b5f4-479f-a92d-cc4f31a9eeb9","name":"PostgreSQL-13","version":"13","minor_version":"13.9"}],"endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-01-24T10:17:17.075310Z","region":"fr-par"}' + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' headers: Content-Length: - - "878" + - "690" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 24 Jan 2023 10:19:19 GMT + - Mon, 15 May 2023 21:19:59 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -319,29 +459,43 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 5021efe7-eab4-461f-ad47-333a89f6e744 + - 399d9bf7-10b9-49a2-8d7c-b742f2bfd526 status: 200 OK code: 200 duration: "" - request: - body: "" + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61458ec3-4378-457f-b3f1-4dcd40f9d3ac + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c method: GET response: - body: '{"id":"61458ec3-4378-457f-b3f1-4dcd40f9d3ac","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-12","upgradable_version":[{"id":"91550da0-b896-4f3a-aa4d-aa30893d0a89","name":"PostgreSQL-14","version":"14","minor_version":"14.6"},{"id":"46701e85-b5f4-479f-a92d-cc4f31a9eeb9","name":"PostgreSQL-13","version":"13","minor_version":"13.9"}],"endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-01-24T10:17:17.075310Z","region":"fr-par"}' + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' headers: Content-Length: - - "878" + - "690" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 24 Jan 2023 10:19:34 GMT + - Mon, 15 May 2023 21:20:14 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -351,29 +505,43 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 348d7ebb-5a97-4424-a041-d496c983ca67 + - cc05f9ec-441e-4cdd-8f75-f2cd9a6a022d status: 200 OK code: 200 duration: "" - request: - body: "" + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61458ec3-4378-457f-b3f1-4dcd40f9d3ac + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c method: GET response: - body: '{"id":"61458ec3-4378-457f-b3f1-4dcd40f9d3ac","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-12","upgradable_version":[{"id":"91550da0-b896-4f3a-aa4d-aa30893d0a89","name":"PostgreSQL-14","version":"14","minor_version":"14.6"},{"id":"46701e85-b5f4-479f-a92d-cc4f31a9eeb9","name":"PostgreSQL-13","version":"13","minor_version":"13.9"}],"endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-01-24T10:17:17.075310Z","region":"fr-par"}' + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' headers: Content-Length: - - "878" + - "690" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 24 Jan 2023 10:19:49 GMT + - Mon, 15 May 2023 21:20:29 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -383,29 +551,43 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 770ec192-9432-453a-ba15-e4899da539dc + - ec875c2e-317c-433f-b7a9-a46f5adfaede status: 200 OK code: 200 duration: "" - request: - body: "" + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61458ec3-4378-457f-b3f1-4dcd40f9d3ac + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c method: GET response: - body: '{"id":"61458ec3-4378-457f-b3f1-4dcd40f9d3ac","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-12","upgradable_version":[{"id":"91550da0-b896-4f3a-aa4d-aa30893d0a89","name":"PostgreSQL-14","version":"14","minor_version":"14.6"},{"id":"46701e85-b5f4-479f-a92d-cc4f31a9eeb9","name":"PostgreSQL-13","version":"13","minor_version":"13.9"}],"endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-01-24T10:17:17.075310Z","region":"fr-par"}' + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' headers: Content-Length: - - "878" + - "690" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 24 Jan 2023 10:20:05 GMT + - Mon, 15 May 2023 21:20:44 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -415,29 +597,43 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c2e7b9e1-8189-4057-a42d-43579923ab5b + - 52a84cbd-1c4c-422f-8607-4ad7a6a4b9f7 status: 200 OK code: 200 duration: "" - request: - body: "" + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61458ec3-4378-457f-b3f1-4dcd40f9d3ac + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c method: GET response: - body: '{"id":"61458ec3-4378-457f-b3f1-4dcd40f9d3ac","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-12","upgradable_version":[{"id":"91550da0-b896-4f3a-aa4d-aa30893d0a89","name":"PostgreSQL-14","version":"14","minor_version":"14.6"},{"id":"46701e85-b5f4-479f-a92d-cc4f31a9eeb9","name":"PostgreSQL-13","version":"13","minor_version":"13.9"}],"endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-01-24T10:17:17.075310Z","region":"fr-par"}' + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' headers: Content-Length: - - "878" + - "690" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 24 Jan 2023 10:20:20 GMT + - Mon, 15 May 2023 21:20:59 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -447,29 +643,53 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f449c414-7fde-4b1a-b027-fd7ab5986a43 + - d3ba1d7d-2233-402c-9cfd-0e9fcd0b1574 status: 200 OK code: 200 duration: "" - request: - body: "" + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"ready", "engine":"PostgreSQL-12", + "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":23092, "name":null, + "id":"e1992a87-05be-4ce2-a515-92d19c255977", "load_balancer":{}}, "tags":[], + "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", + "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", + "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", + "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", + "port":23092, "name":null, "id":"e1992a87-05be-4ce2-a515-92d19c255977", "load_balancer":{}}], + "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, + "maintenances":[], "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61458ec3-4378-457f-b3f1-4dcd40f9d3ac + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c method: GET response: - body: '{"id":"61458ec3-4378-457f-b3f1-4dcd40f9d3ac","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"initializing","engine":"PostgreSQL-12","upgradable_version":[{"id":"91550da0-b896-4f3a-aa4d-aa30893d0a89","name":"PostgreSQL-14","version":"14","minor_version":"14.6"},{"id":"46701e85-b5f4-479f-a92d-cc4f31a9eeb9","name":"PostgreSQL-13","version":"13","minor_version":"13.9"}],"endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-01-24T10:17:17.075310Z","region":"fr-par"}' + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"ready", "engine":"PostgreSQL-12", + "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":23092, "name":null, + "id":"e1992a87-05be-4ce2-a515-92d19c255977", "load_balancer":{}}, "tags":[], + "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", + "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", + "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", + "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", + "port":23092, "name":null, "id":"e1992a87-05be-4ce2-a515-92d19c255977", "load_balancer":{}}], + "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, + "maintenances":[], "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' headers: Content-Length: - - "878" + - "1184" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 24 Jan 2023 10:20:35 GMT + - Mon, 15 May 2023 21:21:14 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -479,61 +699,53 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 54b992f0-2db9-4940-b103-0e9ac5e429bd + - 11224aff-de07-4c51-9022-bbdf4ad0d388 status: 200 OK code: 200 duration: "" - request: - body: "" + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"deleting", "engine":"PostgreSQL-12", + "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":23092, "name":null, + "id":"e1992a87-05be-4ce2-a515-92d19c255977", "load_balancer":{}}, "tags":[], + "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", + "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", + "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", + "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", + "port":23092, "name":null, "id":"e1992a87-05be-4ce2-a515-92d19c255977", "load_balancer":{}}], + "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, + "maintenances":[], "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61458ec3-4378-457f-b3f1-4dcd40f9d3ac - method: GET - response: - body: '{"id":"61458ec3-4378-457f-b3f1-4dcd40f9d3ac","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"ready","engine":"PostgreSQL-12","upgradable_version":[{"id":"91550da0-b896-4f3a-aa4d-aa30893d0a89","name":"PostgreSQL-14","version":"14","minor_version":"14.6"},{"id":"46701e85-b5f4-479f-a92d-cc4f31a9eeb9","name":"PostgreSQL-13","version":"13","minor_version":"13.9"}],"endpoint":{"ip":"195.154.70.133","port":42461,"name":null,"id":"07f5898a-b8ff-4fa2-85fb-ab3fe2da163b","load_balancer":{}},"tags":[],"settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"195.154.70.133","port":42461,"name":null,"id":"07f5898a-b8ff-4fa2-85fb-ab3fe2da163b","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-01-24T10:17:17.075310Z","region":"fr-par"}' - headers: - Content-Length: - - "1353" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Tue, 24 Jan 2023 10:20:50 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 373613b6-2ebe-4fef-93c8-a4226f49f3a7 - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61458ec3-4378-457f-b3f1-4dcd40f9d3ac + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c method: DELETE response: - body: '{"id":"61458ec3-4378-457f-b3f1-4dcd40f9d3ac","name":"cli-test","organization_id":"105bdce1-64c0-48ab-899d-868455867ecf","project_id":"105bdce1-64c0-48ab-899d-868455867ecf","status":"deleting","engine":"PostgreSQL-12","upgradable_version":[{"id":"91550da0-b896-4f3a-aa4d-aa30893d0a89","name":"PostgreSQL-14","version":"14","minor_version":"14.6"},{"id":"46701e85-b5f4-479f-a92d-cc4f31a9eeb9","name":"PostgreSQL-13","version":"13","minor_version":"13.9"}],"endpoint":{"ip":"195.154.70.133","port":42461,"name":null,"id":"07f5898a-b8ff-4fa2-85fb-ab3fe2da163b","load_balancer":{}},"tags":[],"settings":[{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_connections","value":"100"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"},{"name":"work_mem","value":"4"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[{"ip":"195.154.70.133","port":42461,"name":null,"id":"07f5898a-b8ff-4fa2-85fb-ab3fe2da163b","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2023-01-24T10:17:17.075310Z","region":"fr-par"}' + body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"deleting", "engine":"PostgreSQL-12", + "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":23092, "name":null, + "id":"e1992a87-05be-4ce2-a515-92d19c255977", "load_balancer":{}}, "tags":[], + "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", + "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", + "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", + "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", + "port":23092, "name":null, "id":"e1992a87-05be-4ce2-a515-92d19c255977", "load_balancer":{}}], + "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, + "maintenances":[], "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' headers: Content-Length: - - "1356" + - "1187" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 24 Jan 2023 10:20:51 GMT + - Mon, 15 May 2023 21:21:15 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -543,7 +755,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1e07fd96-759e-4d76-bfee-7fc87ed70c53 + - ceb5b782-e1f4-4a3a-96b3-15d6d39db602 status: 200 OK code: 200 duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-create-instance-simple.golden b/internal/namespaces/rdb/v1/testdata/test-create-instance-simple.golden index d9b290de39..4924b07708 100644 --- a/internal/namespaces/rdb/v1/testdata/test-create-instance-simple.golden +++ b/internal/namespaces/rdb/v1/testdata/test-create-instance-simple.golden @@ -1,33 +1,25 @@ 🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 🟩🟩🟩 STDOUT️ 🟩🟩🟩️ -CreatedAt few seconds ago -Region fr-par -ID 61458ec3-4378-457f-b3f1-4dcd40f9d3ac -Name cli-test -OrganizationID 105bdce1-64c0-48ab-899d-868455867ecf -ProjectID 105bdce1-64c0-48ab-899d-868455867ecf -Status ready -Engine PostgreSQL-12 -UpgradableVersion.0.ID 91550da0-b896-4f3a-aa4d-aa30893d0a89 -UpgradableVersion.0.Name PostgreSQL-14 -UpgradableVersion.0.Version 14 -UpgradableVersion.0.MinorVersion 14.6 -UpgradableVersion.1.ID 46701e85-b5f4-479f-a92d-cc4f31a9eeb9 -UpgradableVersion.1.Name PostgreSQL-13 -UpgradableVersion.1.Version 13 -UpgradableVersion.1.MinorVersion 13.9 -IsHaCluster false -NodeType db-dev-s -Endpoints.0.ID 07f5898a-b8ff-4fa2-85fb-ab3fe2da163b -Endpoints.0.IP 195.154.70.133 -Endpoints.0.Port 42461 -LogsPolicy.MaxAgeRetention 30 -BackupSameRegion false +CreatedAt few seconds ago +Region fr-par +ID 74e25138-7a48-4da1-ab36-ad538ada116c +Name cli-test +OrganizationID 564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5 +ProjectID 564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5 +Status ready +Engine PostgreSQL-12 +IsHaCluster false +NodeType db-dev-s +Endpoints.0.ID e1992a87-05be-4ce2-a515-92d19c255977 +Endpoints.0.IP 51.159.112.115 +Endpoints.0.Port 23092 +LogsPolicy.MaxAgeRetention 30 +BackupSameRegion false Endpoint: -ID 07f5898a-b8ff-4fa2-85fb-ab3fe2da163b -IP 195.154.70.133 -Port 42461 +ID e1992a87-05be-4ce2-a515-92d19c255977 +IP 51.159.112.115 +Port 23092 Volume: Type lssd @@ -46,6 +38,9 @@ max_connections 100 max_parallel_workers 0 max_parallel_workers_per_gather 0 work_mem 4 + +Password: +{4xdl*#QOoP+&3XRkGA)] 🟩🟩🟩 JSON STDOUT 🟩🟩🟩 { "created_at": "1970-01-01T00:00:00.0Z", @@ -54,30 +49,17 @@ work_mem 4 "size": 5000000000 }, "region": "fr-par", - "id": "61458ec3-4378-457f-b3f1-4dcd40f9d3ac", + "id": "74e25138-7a48-4da1-ab36-ad538ada116c", "name": "cli-test", - "organization_id": "105bdce1-64c0-48ab-899d-868455867ecf", - "project_id": "105bdce1-64c0-48ab-899d-868455867ecf", + "organization_id": "564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id": "564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status": "ready", "engine": "PostgreSQL-12", - "upgradable_version": [ - { - "id": "91550da0-b896-4f3a-aa4d-aa30893d0a89", - "name": "PostgreSQL-14", - "version": "14", - "minor_version": "14.6" - }, - { - "id": "46701e85-b5f4-479f-a92d-cc4f31a9eeb9", - "name": "PostgreSQL-13", - "version": "13", - "minor_version": "13.9" - } - ], + "upgradable_version": [], "endpoint": { - "id": "07f5898a-b8ff-4fa2-85fb-ab3fe2da163b", - "ip": "195.154.70.133", - "port": 42461, + "id": "e1992a87-05be-4ce2-a515-92d19c255977", + "ip": "51.159.112.115", + "port": 23092, "name": null, "load_balancer": {} }, @@ -119,9 +101,9 @@ work_mem 4 "init_settings": [], "endpoints": [ { - "id": "07f5898a-b8ff-4fa2-85fb-ab3fe2da163b", - "ip": "195.154.70.133", - "port": 42461, + "id": "e1992a87-05be-4ce2-a515-92d19c255977", + "ip": "51.159.112.115", + "port": 23092, "name": null, "load_balancer": {} } @@ -131,5 +113,6 @@ work_mem 4 "total_disk_retention": null }, "backup_same_region": false, - "maintenances": [] + "maintenances": [], + "Password": "{4xdl*#QOoP+\u00263XRkGA)]" } diff --git a/internal/namespaces/rdb/v1/testdata/test-create-instance-with-password-generator.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-create-instance-with-password-generator.cassette.yaml new file mode 100644 index 0000000000..7b54769790 --- /dev/null +++ b/internal/namespaces/rdb/v1/testdata/test-create-instance-with-password-generator.cassette.yaml @@ -0,0 +1,623 @@ +--- +version: 1 +interactions: +- request: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances + method: POST + response: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:14:27 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 38ae073a-a55b-4e57-96e2-c32c99a011c0 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/520896f3-b9d4-4b06-8f34-6b10f89bad26 + method: GET + response: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:14:27 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7c85e021-5776-463e-9705-31b4a3479be3 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/520896f3-b9d4-4b06-8f34-6b10f89bad26 + method: GET + response: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:14:43 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a8807053-e96f-444a-8290-0101c49f3f55 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/520896f3-b9d4-4b06-8f34-6b10f89bad26 + method: GET + response: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:14:58 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 98c5fac7-1a01-4c9c-970c-e7a37952e1a5 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/520896f3-b9d4-4b06-8f34-6b10f89bad26 + method: GET + response: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:15:13 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ff067ab1-9071-49e1-bfc5-13eeb7ab5a2f + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/520896f3-b9d4-4b06-8f34-6b10f89bad26 + method: GET + response: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:15:28 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c2d74ea6-d072-430f-9b1a-037cab9a86bc + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/520896f3-b9d4-4b06-8f34-6b10f89bad26 + method: GET + response: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:15:43 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1e0dbceb-d5f6-4538-8f1d-77511ee2ea0f + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/520896f3-b9d4-4b06-8f34-6b10f89bad26 + method: GET + response: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:15:58 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 958a03ec-53f1-48bb-9fac-59e76feca623 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/520896f3-b9d4-4b06-8f34-6b10f89bad26 + method: GET + response: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:16:13 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0f6b5ac9-3d70-4970-b296-10d26bf07031 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/520896f3-b9d4-4b06-8f34-6b10f89bad26 + method: GET + response: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:16:28 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5ef34b33-0fab-4766-994e-e6bcef6974e6 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/520896f3-b9d4-4b06-8f34-6b10f89bad26 + method: GET + response: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:16:43 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ffd81f42-926a-450e-aa32-71d5f43ff79c + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"ready", "engine":"PostgreSQL-12", + "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":19276, "name":null, + "id":"90b9b9cd-b83a-4da8-a6ee-3425cc98fea5", "load_balancer":{}}, "tags":[], + "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", + "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", + "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", + "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", + "port":19276, "name":null, "id":"90b9b9cd-b83a-4da8-a6ee-3425cc98fea5", "load_balancer":{}}], + "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, + "maintenances":[], "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/520896f3-b9d4-4b06-8f34-6b10f89bad26 + method: GET + response: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"ready", "engine":"PostgreSQL-12", + "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":19276, "name":null, + "id":"90b9b9cd-b83a-4da8-a6ee-3425cc98fea5", "load_balancer":{}}, "tags":[], + "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", + "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", + "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", + "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", + "port":19276, "name":null, "id":"90b9b9cd-b83a-4da8-a6ee-3425cc98fea5", "load_balancer":{}}], + "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, + "maintenances":[], "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + headers: + Content-Length: + - "1184" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:16:59 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a338acc7-8e62-4061-9aff-78f3faefae7b + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"deleting", "engine":"PostgreSQL-12", + "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":19276, "name":null, + "id":"90b9b9cd-b83a-4da8-a6ee-3425cc98fea5", "load_balancer":{}}, "tags":[], + "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", + "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", + "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", + "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", + "port":19276, "name":null, "id":"90b9b9cd-b83a-4da8-a6ee-3425cc98fea5", "load_balancer":{}}], + "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, + "maintenances":[], "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/520896f3-b9d4-4b06-8f34-6b10f89bad26 + method: DELETE + response: + body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"deleting", "engine":"PostgreSQL-12", + "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":19276, "name":null, + "id":"90b9b9cd-b83a-4da8-a6ee-3425cc98fea5", "load_balancer":{}}, "tags":[], + "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", + "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", + "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", + "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", + "port":19276, "name":null, "id":"90b9b9cd-b83a-4da8-a6ee-3425cc98fea5", "load_balancer":{}}], + "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, + "maintenances":[], "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + headers: + Content-Length: + - "1187" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:16:59 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c1fa1da3-4263-4cab-af25-56b6da0b14db + status: 200 OK + code: 200 + duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-create-instance-with-password-generator.golden b/internal/namespaces/rdb/v1/testdata/test-create-instance-with-password-generator.golden new file mode 100644 index 0000000000..df1902a942 --- /dev/null +++ b/internal/namespaces/rdb/v1/testdata/test-create-instance-with-password-generator.golden @@ -0,0 +1,118 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +🟩🟩🟩 STDOUT️ 🟩🟩🟩️ +CreatedAt few seconds ago +Region fr-par +ID 520896f3-b9d4-4b06-8f34-6b10f89bad26 +Name cli-test +OrganizationID 564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5 +ProjectID 564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5 +Status ready +Engine PostgreSQL-12 +IsHaCluster false +NodeType db-dev-s +Endpoints.0.ID 90b9b9cd-b83a-4da8-a6ee-3425cc98fea5 +Endpoints.0.IP 51.159.112.115 +Endpoints.0.Port 19276 +LogsPolicy.MaxAgeRetention 30 +BackupSameRegion false + +Endpoint: +ID 90b9b9cd-b83a-4da8-a6ee-3425cc98fea5 +IP 51.159.112.115 +Port 19276 + +Volume: +Type lssd +Size 5.0 GB + +Backup Schedule: +Disabled false +Frequency 1 days +Retention 7 days + +Settings: +NAME VALUE +effective_cache_size 1300 +maintenance_work_mem 150 +max_connections 100 +max_parallel_workers 0 +max_parallel_workers_per_gather 0 +work_mem 4 + +Password: +8284SF7jf<($D)gZ?D/tA +🟩🟩🟩 JSON STDOUT 🟩🟩🟩 +{ + "created_at": "1970-01-01T00:00:00.0Z", + "volume": { + "type": "lssd", + "size": 5000000000 + }, + "region": "fr-par", + "id": "520896f3-b9d4-4b06-8f34-6b10f89bad26", + "name": "cli-test", + "organization_id": "564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id": "564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "status": "ready", + "engine": "PostgreSQL-12", + "upgradable_version": [], + "endpoint": { + "id": "90b9b9cd-b83a-4da8-a6ee-3425cc98fea5", + "ip": "51.159.112.115", + "port": 19276, + "name": null, + "load_balancer": {} + }, + "tags": [], + "settings": [ + { + "name": "effective_cache_size", + "value": "1300" + }, + { + "name": "maintenance_work_mem", + "value": "150" + }, + { + "name": "max_connections", + "value": "100" + }, + { + "name": "max_parallel_workers", + "value": "0" + }, + { + "name": "max_parallel_workers_per_gather", + "value": "0" + }, + { + "name": "work_mem", + "value": "4" + } + ], + "backup_schedule": { + "frequency": 24, + "retention": 7, + "disabled": false + }, + "is_ha_cluster": false, + "read_replicas": [], + "node_type": "db-dev-s", + "init_settings": [], + "endpoints": [ + { + "id": "90b9b9cd-b83a-4da8-a6ee-3425cc98fea5", + "ip": "51.159.112.115", + "port": 19276, + "name": null, + "load_balancer": {} + } + ], + "logs_policy": { + "max_age_retention": 30, + "total_disk_retention": null + }, + "backup_same_region": false, + "maintenances": [], + "Password": "8284SF7jf\u003c($D)gZ?D/tA" +} diff --git a/internal/namespaces/rdb/v1/testdata/test-create-user-simple.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-create-user-simple.cassette.yaml new file mode 100644 index 0000000000..09b1689230 --- /dev/null +++ b/internal/namespaces/rdb/v1/testdata/test-create-user-simple.cassette.yaml @@ -0,0 +1,657 @@ +--- +version: 1 +interactions: +- request: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances + method: POST + response: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:28:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d41bae65-cb99-489d-ae2e-dbbaebd41e85 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce + method: GET + response: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:28:34 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 54d61eb0-2115-4dc0-b216-1bfb302c5861 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce + method: GET + response: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:28:49 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 966bf1f2-af26-49b9-9333-92328d5a6dba + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce + method: GET + response: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:29:05 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 20013bd8-3907-40f8-b90d-8160df2976da + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce + method: GET + response: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:29:21 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8cf6da3b-fd40-4745-b629-3d59ecf9185b + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce + method: GET + response: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:29:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4513fc6b-bd80-4c2e-8b40-528b1953b74f + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce + method: GET + response: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:29:51 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c87c25ed-35cd-41d1-8fbe-2c0fe1563367 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce + method: GET + response: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:30:06 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8ae8eb79-b516-4dac-be94-494ed5232042 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce + method: GET + response: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:30:22 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6b205d39-4313-41c3-9491-6c43ea9d1a8b + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce + method: GET + response: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:30:37 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 81ccef8b-b83a-46fd-a328-bff2356392ff + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce + method: GET + response: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:30:52 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c5e20b0c-eb30-48a7-8552-acbc7550d645 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"ready", "engine":"PostgreSQL-12", + "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":19566, "name":null, + "id":"faabacb1-a38f-4700-b42c-d33ecd22055b", "load_balancer":{}}, "tags":[], + "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", + "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", + "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", + "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", + "port":19566, "name":null, "id":"faabacb1-a38f-4700-b42c-d33ecd22055b", "load_balancer":{}}], + "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, + "maintenances":[], "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce + method: GET + response: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"ready", "engine":"PostgreSQL-12", + "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":19566, "name":null, + "id":"faabacb1-a38f-4700-b42c-d33ecd22055b", "load_balancer":{}}, "tags":[], + "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", + "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", + "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", + "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", + "port":19566, "name":null, "id":"faabacb1-a38f-4700-b42c-d33ecd22055b", "load_balancer":{}}], + "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, + "maintenances":[], "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + headers: + Content-Length: + - "1184" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:31:07 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c0df606f-8459-4c1f-a72f-54b1639f989f + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"name":"cli-test", "is_admin":false}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce/users + method: POST + response: + body: '{"name":"cli-test", "is_admin":false}' + headers: + Content-Length: + - "37" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:31:07 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 80c9172c-73fc-4e4e-86d1-c957f4217a32 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"deleting", "engine":"PostgreSQL-12", + "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":19566, "name":null, + "id":"faabacb1-a38f-4700-b42c-d33ecd22055b", "load_balancer":{}}, "tags":[], + "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", + "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", + "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", + "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", + "port":19566, "name":null, "id":"faabacb1-a38f-4700-b42c-d33ecd22055b", "load_balancer":{}}], + "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, + "maintenances":[], "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce + method: DELETE + response: + body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"deleting", "engine":"PostgreSQL-12", + "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":19566, "name":null, + "id":"faabacb1-a38f-4700-b42c-d33ecd22055b", "load_balancer":{}}, "tags":[], + "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", + "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", + "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", + "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", + "port":19566, "name":null, "id":"faabacb1-a38f-4700-b42c-d33ecd22055b", "load_balancer":{}}], + "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, + "maintenances":[], "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + headers: + Content-Length: + - "1187" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:31:08 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cbc109eb-02e5-4451-92aa-ec9d817e2e89 + status: 200 OK + code: 200 + duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-create-user-simple.golden b/internal/namespaces/rdb/v1/testdata/test-create-user-simple.golden new file mode 100644 index 0000000000..7d54bfa1c1 --- /dev/null +++ b/internal/namespaces/rdb/v1/testdata/test-create-user-simple.golden @@ -0,0 +1,11 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +🟩🟩🟩 STDOUT️ 🟩🟩🟩️ +Name cli-test +IsAdmin false +Password {4xdl*#QOoP+&3XRkGA)] +🟩🟩🟩 JSON STDOUT 🟩🟩🟩 +{ + "name": "cli-test", + "is_admin": false, + "Password": "{4xdl*#QOoP+\u00263XRkGA)]" +} diff --git a/internal/namespaces/rdb/v1/testdata/test-create-user-with-password-generator.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-create-user-with-password-generator.cassette.yaml new file mode 100644 index 0000000000..6a5e17ef5a --- /dev/null +++ b/internal/namespaces/rdb/v1/testdata/test-create-user-with-password-generator.cassette.yaml @@ -0,0 +1,611 @@ +--- +version: 1 +interactions: +- request: + body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances + method: POST + response: + body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:31:50 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4c41ed0a-522b-4691-99bf-c98062b8cc7d + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1ad978a8-69c3-4c90-bbb7-f6a5e92061df + method: GET + response: + body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:31:50 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 972e3026-7e8d-483f-a083-a7c06a12d646 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1ad978a8-69c3-4c90-bbb7-f6a5e92061df + method: GET + response: + body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:32:05 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5cd2e57b-04eb-4e03-96ce-628d4d6004c5 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1ad978a8-69c3-4c90-bbb7-f6a5e92061df + method: GET + response: + body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:32:21 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 353eaca8-dd2c-4613-91db-1572cb4c6607 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1ad978a8-69c3-4c90-bbb7-f6a5e92061df + method: GET + response: + body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:32:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 32de8b69-47b9-410c-a35a-42b1904137f7 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1ad978a8-69c3-4c90-bbb7-f6a5e92061df + method: GET + response: + body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:32:51 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d838ba48-b816-4f6e-9a29-0328d4ca780a + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1ad978a8-69c3-4c90-bbb7-f6a5e92061df + method: GET + response: + body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:33:06 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 10a81f2e-75d7-4856-974c-229e1b43f6d9 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1ad978a8-69c3-4c90-bbb7-f6a5e92061df + method: GET + response: + body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:33:21 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 68d7176c-1a1b-4e10-80c0-29d227de2c60 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1ad978a8-69c3-4c90-bbb7-f6a5e92061df + method: GET + response: + body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:33:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8d699b12-91ff-4861-8a2e-d33b8f44b632 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1ad978a8-69c3-4c90-bbb7-f6a5e92061df + method: GET + response: + body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:33:51 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 931c7894-c3af-429b-a116-bee11a5e5fd8 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"ready", "engine":"PostgreSQL-12", + "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":5384, "name":null, + "id":"e409d560-cda3-4db1-8aa0-e80fa8ab796c", "load_balancer":{}}, "tags":[], + "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", + "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", + "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", + "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", + "port":5384, "name":null, "id":"e409d560-cda3-4db1-8aa0-e80fa8ab796c", "load_balancer":{}}], + "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, + "maintenances":[], "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1ad978a8-69c3-4c90-bbb7-f6a5e92061df + method: GET + response: + body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"ready", "engine":"PostgreSQL-12", + "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":5384, "name":null, + "id":"e409d560-cda3-4db1-8aa0-e80fa8ab796c", "load_balancer":{}}, "tags":[], + "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", + "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", + "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", + "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", + "port":5384, "name":null, "id":"e409d560-cda3-4db1-8aa0-e80fa8ab796c", "load_balancer":{}}], + "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, + "maintenances":[], "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + headers: + Content-Length: + - "1182" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:34:07 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cd7fb871-625e-4287-8753-b8fbe74547cb + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"name":"cli-test", "is_admin":false}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1ad978a8-69c3-4c90-bbb7-f6a5e92061df/users + method: POST + response: + body: '{"name":"cli-test", "is_admin":false}' + headers: + Content-Length: + - "37" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:34:07 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a38a433a-f659-420b-8e76-abf5d963af37 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"deleting", "engine":"PostgreSQL-12", + "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":5384, "name":null, + "id":"e409d560-cda3-4db1-8aa0-e80fa8ab796c", "load_balancer":{}}, "tags":[], + "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", + "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", + "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", + "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", + "port":5384, "name":null, "id":"e409d560-cda3-4db1-8aa0-e80fa8ab796c", "load_balancer":{}}], + "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, + "maintenances":[], "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1ad978a8-69c3-4c90-bbb7-f6a5e92061df + method: DELETE + response: + body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"deleting", "engine":"PostgreSQL-12", + "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":5384, "name":null, + "id":"e409d560-cda3-4db1-8aa0-e80fa8ab796c", "load_balancer":{}}, "tags":[], + "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", + "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", + "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", + "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", + "port":5384, "name":null, "id":"e409d560-cda3-4db1-8aa0-e80fa8ab796c", "load_balancer":{}}], + "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, + "maintenances":[], "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + headers: + Content-Length: + - "1185" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:34:07 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bb08a6a2-4095-4785-ad02-c761d500e768 + status: 200 OK + code: 200 + duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-create-user-with-password-generator.golden b/internal/namespaces/rdb/v1/testdata/test-create-user-with-password-generator.golden new file mode 100644 index 0000000000..380614d078 --- /dev/null +++ b/internal/namespaces/rdb/v1/testdata/test-create-user-with-password-generator.golden @@ -0,0 +1,11 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +🟩🟩🟩 STDOUT️ 🟩🟩🟩️ +Name cli-test +IsAdmin false +Password bW}lqlAan/E%{0)RQ_Tz< +🟩🟩🟩 JSON STDOUT 🟩🟩🟩 +{ + "name": "cli-test", + "is_admin": false, + "Password": "bW}lqlAan/E%{0)RQ_Tz\u003c" +} diff --git a/internal/namespaces/rdb/v1/testdata/test-update-user-simple.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-update-user-simple.cassette.yaml new file mode 100644 index 0000000000..5f921b4100 --- /dev/null +++ b/internal/namespaces/rdb/v1/testdata/test-update-user-simple.cassette.yaml @@ -0,0 +1,875 @@ +--- +version: 1 +interactions: +- request: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances + method: POST + response: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:34:53 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 640d9e91-29a5-4bce-ac1d-5e205c4593ea + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + method: GET + response: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:34:53 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d2027a9b-0434-4315-bd38-0a59959044a8 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + method: GET + response: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:35:08 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b6714bce-046d-447d-9b7a-c507baf1a260 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + method: GET + response: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:35:23 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 29d373d3-3d61-429c-b429-99acffb3ee89 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + method: GET + response: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:35:39 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 31f5d18f-b399-48b6-abc2-d9051bdc92c1 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + method: GET + response: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:35:54 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6bf24837-6f45-465c-ba52-f85e614e2517 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + method: GET + response: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:36:09 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 759b9164-17b3-4ee8-8587-b56cf9f58531 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + method: GET + response: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:36:24 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a0e34f93-3b36-482a-8d89-af27a3244946 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + method: GET + response: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:36:39 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 36cd341a-c568-489f-8dbf-cdaef80a540e + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + method: GET + response: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:36:54 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 607490f4-8d1b-48b6-91b9-fe664d66f50b + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + method: GET + response: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:37:09 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 69d8c097-4a86-403d-90aa-a8bda3d24c3c + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + method: GET + response: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:37:24 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - faedc6ae-84dc-454a-b1f2-d31aad297a4d + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + method: GET + response: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:37:39 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0e1cd34b-31c2-4519-8ffd-154816b0d910 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + method: GET + response: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:37:55 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0b1636a0-7c5a-4ec8-9a59-98453d8dca5a + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + method: GET + response: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:38:10 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - da22f7ca-d763-4b7d-905d-fe534e548eb4 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"ready", "engine":"PostgreSQL-12", + "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":5974, "name":null, + "id":"495c60e5-9a6a-4309-af26-e346694b6aab", "load_balancer":{}}, "tags":[], + "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", + "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", + "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", + "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", + "port":5974, "name":null, "id":"495c60e5-9a6a-4309-af26-e346694b6aab", "load_balancer":{}}], + "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, + "maintenances":[], "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + method: GET + response: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"ready", "engine":"PostgreSQL-12", + "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":5974, "name":null, + "id":"495c60e5-9a6a-4309-af26-e346694b6aab", "load_balancer":{}}, "tags":[], + "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", + "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", + "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", + "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", + "port":5974, "name":null, "id":"495c60e5-9a6a-4309-af26-e346694b6aab", "load_balancer":{}}], + "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, + "maintenances":[], "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + headers: + Content-Length: + - "1182" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:38:25 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e361a846-d87d-4ae7-82d7-35c4aa78afaa + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"name":"cli-test", "is_admin":false}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045/users + method: POST + response: + body: '{"name":"cli-test", "is_admin":false}' + headers: + Content-Length: + - "37" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:38:25 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 39dd7851-3fda-4003-8d2e-26839d8a314b + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"name":"cli-test", "is_admin":true}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045/users/cli-test + method: PATCH + response: + body: '{"name":"cli-test", "is_admin":true}' + headers: + Content-Length: + - "36" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:38:25 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1ead698f-e9a6-413e-8477-c5dfa7e76e19 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"deleting", "engine":"PostgreSQL-12", + "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":5974, "name":null, + "id":"495c60e5-9a6a-4309-af26-e346694b6aab", "load_balancer":{}}, "tags":[], + "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", + "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", + "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", + "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", + "port":5974, "name":null, "id":"495c60e5-9a6a-4309-af26-e346694b6aab", "load_balancer":{}}], + "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, + "maintenances":[], "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + method: DELETE + response: + body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"deleting", "engine":"PostgreSQL-12", + "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":5974, "name":null, + "id":"495c60e5-9a6a-4309-af26-e346694b6aab", "load_balancer":{}}, "tags":[], + "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", + "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", + "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", + "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", + "port":5974, "name":null, "id":"495c60e5-9a6a-4309-af26-e346694b6aab", "load_balancer":{}}], + "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, + "maintenances":[], "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + headers: + Content-Length: + - "1185" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:38:26 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 44695e6c-8ca3-4672-a5b4-a0794ecc2651 + status: 200 OK + code: 200 + duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-update-user-simple.golden b/internal/namespaces/rdb/v1/testdata/test-update-user-simple.golden new file mode 100644 index 0000000000..c2d1144032 --- /dev/null +++ b/internal/namespaces/rdb/v1/testdata/test-update-user-simple.golden @@ -0,0 +1,11 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +🟩🟩🟩 STDOUT️ 🟩🟩🟩️ +Name cli-test +IsAdmin true +Password Newp1ssw0rd! +🟩🟩🟩 JSON STDOUT 🟩🟩🟩 +{ + "name": "cli-test", + "is_admin": true, + "Password": "Newp1ssw0rd!" +} diff --git a/internal/namespaces/rdb/v1/testdata/test-update-user-with-password-generator.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-update-user-with-password-generator.cassette.yaml new file mode 100644 index 0000000000..c74ede052b --- /dev/null +++ b/internal/namespaces/rdb/v1/testdata/test-update-user-with-password-generator.cassette.yaml @@ -0,0 +1,691 @@ +--- +version: 1 +interactions: +- request: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances + method: POST + response: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:38:56 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f7c7e188-624b-49f0-b0ba-5815caa4fd70 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9 + method: GET + response: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:38:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4e475185-233b-46c2-900d-f719da5fdcdc + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9 + method: GET + response: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:39:12 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2a14eccc-4cfe-417e-8023-789093e9c713 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9 + method: GET + response: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:39:27 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9aeab144-9263-4fbf-b80b-ca9727712d76 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9 + method: GET + response: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:39:42 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 29cc3dd3-0972-47b1-8e29-33eff7fa7389 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9 + method: GET + response: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:39:57 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - faf1ac6e-83f7-4c11-85b8-70d9fa9c12e4 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9 + method: GET + response: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:40:12 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e12fbe01-1076-4ada-a95b-775e58f9b197 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9 + method: GET + response: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:40:27 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5f1e599a-4d38-49f9-b1d1-af801e7f5be7 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9 + method: GET + response: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:40:42 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a750c188-26c2-4b1e-866a-0d1422e87bad + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9 + method: GET + response: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:40:58 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 243675f5-49cd-4473-bfc8-8f6ef83dbe84 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9 + method: GET + response: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], + "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, + "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], + "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + headers: + Content-Length: + - "690" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:41:13 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4cc40d81-1f88-465e-8ffa-d5ada251aa9e + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"ready", "engine":"PostgreSQL-12", + "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":17163, "name":null, + "id":"bc7e7449-fb46-4f1a-bb89-7aba84760064", "load_balancer":{}}, "tags":[], + "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", + "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", + "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", + "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", + "port":17163, "name":null, "id":"bc7e7449-fb46-4f1a-bb89-7aba84760064", "load_balancer":{}}], + "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, + "maintenances":[], "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9 + method: GET + response: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"ready", "engine":"PostgreSQL-12", + "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":17163, "name":null, + "id":"bc7e7449-fb46-4f1a-bb89-7aba84760064", "load_balancer":{}}, "tags":[], + "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", + "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", + "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", + "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", + "port":17163, "name":null, "id":"bc7e7449-fb46-4f1a-bb89-7aba84760064", "load_balancer":{}}], + "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, + "maintenances":[], "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + headers: + Content-Length: + - "1184" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:41:28 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 93e65d22-7b86-4015-abfc-cbf789766e8e + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"name":"cli-test", "is_admin":false}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9/users + method: POST + response: + body: '{"name":"cli-test", "is_admin":false}' + headers: + Content-Length: + - "37" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:41:28 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7abece91-3d8b-4fcf-83a9-9c35fbbec520 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"name":"cli-test", "is_admin":true}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9/users/cli-test + method: PATCH + response: + body: '{"name":"cli-test", "is_admin":true}' + headers: + Content-Length: + - "36" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:41:28 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7eee3137-eacd-4b04-9fa1-b5116b413a3b + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"deleting", "engine":"PostgreSQL-12", + "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":17163, "name":null, + "id":"bc7e7449-fb46-4f1a-bb89-7aba84760064", "load_balancer":{}}, "tags":[], + "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", + "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", + "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", + "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", + "port":17163, "name":null, "id":"bc7e7449-fb46-4f1a-bb89-7aba84760064", "load_balancer":{}}], + "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, + "maintenances":[], "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9 + method: DELETE + response: + body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"deleting", "engine":"PostgreSQL-12", + "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":17163, "name":null, + "id":"bc7e7449-fb46-4f1a-bb89-7aba84760064", "load_balancer":{}}, "tags":[], + "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", + "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", + "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", + "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, + "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", + "port":17163, "name":null, "id":"bc7e7449-fb46-4f1a-bb89-7aba84760064", "load_balancer":{}}], + "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, + "maintenances":[], "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + headers: + Content-Length: + - "1187" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Mon, 15 May 2023 21:41:28 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2658ccdc-7dc0-45ab-a744-81843b27cdab + status: 200 OK + code: 200 + duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-update-user-with-password-generator.golden b/internal/namespaces/rdb/v1/testdata/test-update-user-with-password-generator.golden new file mode 100644 index 0000000000..44579bf058 --- /dev/null +++ b/internal/namespaces/rdb/v1/testdata/test-update-user-with-password-generator.golden @@ -0,0 +1,11 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +🟩🟩🟩 STDOUT️ 🟩🟩🟩️ +Name cli-test +IsAdmin true +Password q0;D[(OdOt_4Vzq:5SIJ' +🟩🟩🟩 JSON STDOUT 🟩🟩🟩 +{ + "name": "cli-test", + "is_admin": true, + "Password": "q0;D[(OdOt_4Vzq:5SIJ'" +} diff --git a/internal/passwordgenerator/password_generator.go b/internal/passwordgenerator/password_generator.go new file mode 100644 index 0000000000..51f970ee27 --- /dev/null +++ b/internal/passwordgenerator/password_generator.go @@ -0,0 +1,83 @@ +package passwordgenerator + +import ( + crypto "crypto/rand" + "errors" + "math/big" + "strings" +) + +const ( + numbers = "0123456789" + lowerLetters = "abcdedfghijklmnopqrstuvwxyz" + upperLetters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" + specialSymbols = "!$%^&*()_+{}:@[];'#<>?,./|\\\\-=?" + allSet = lowerLetters + upperLetters + specialSymbols + numbers +) + +func GeneratePassword(length, minNumbers, minLower, minUpper, minSymbol int) (string, error) { + if length < (minNumbers + minLower + minUpper + minSymbol) { + return "", errors.New("length is less than the sum of minNumbers, minLower, minUpper, and minSymbol") + } + + var password strings.Builder + + for i := 0; i < minNumbers; i++ { + random, err := randInt(len(numbers)) + if err != nil { + return "", err + } + password.WriteString(string(numbers[random])) + } + + for i := 0; i < minUpper; i++ { + random, err := randInt(len(upperLetters)) + if err != nil { + return "", err + } + password.WriteString(string(upperLetters[random])) + } + + for i := 0; i < minLower; i++ { + random, err := randInt(len(lowerLetters)) + if err != nil { + return "", err + } + password.WriteString(string(lowerLetters[random])) + } + + for i := 0; i < minSymbol; i++ { + random, err := randInt(len(specialSymbols)) + if err != nil { + return "", err + } + password.WriteString(string(specialSymbols[random])) + } + + remainingLength := length - minNumbers - minLower - minUpper - minSymbol + for i := 0; i < remainingLength; i++ { + random, err := randInt(len(allSet)) + if err != nil { + return "", err + } + password.WriteString(string(allSet[random])) + } + inRune := []rune(password.String()) + for i := range inRune { + j, err := randInt(i + 1) + if err != nil { + return "", err + } + inRune[i], inRune[j] = inRune[j], inRune[i] + } + + return string(inRune), nil +} + +func randInt(len int) (int, error) { + i, err := crypto.Int(crypto.Reader, big.NewInt(int64(len))) + if err != nil { + return 0, err + } + return int(i.Int64()), nil +} diff --git a/internal/passwordgenerator/password_generator_test.go b/internal/passwordgenerator/password_generator_test.go new file mode 100644 index 0000000000..4eb382c1e7 --- /dev/null +++ b/internal/passwordgenerator/password_generator_test.go @@ -0,0 +1,59 @@ +package passwordgenerator + +import ( + "strings" + "testing" +) + +const ( + minLength = 8 +) + +func TestPassword(t *testing.T) { + password, err := GeneratePassword(21, 1, 1, 1, 1) + if err != nil { + t.Fatalf("Error generating password: %v", err) + } + if !isPassword(password) { + t.Fatalf("Generated password does not respect constraints") + } + + // Test different lengths + for i := minLength; i < 30; i++ { + password, err = GeneratePassword(i, 1, 1, 1, 1) + if err != nil { + t.Fatalf("Error generating password: %v", err) + } + if !isPassword(password) { + t.Fatalf("Generated password does not respect constraints for length %d", i) + } + } + + // Test different minimum character types + password, err = GeneratePassword(21, 5, 5, 5, 5) + if err != nil { + t.Fatalf("Error generating password: %v", err) + } + if !isPassword(password) { + t.Fatalf("Generated password does not respect constraints") + } +} + +func isPassword(s string) bool { + var hasNumber, hasUpperCase, hasLowercase, hasSymbol bool + hasLength := len(s) + + for _, value := range s { + switch { + case value >= '0' && value <= '9': + hasNumber = true + case value >= 'A' && value <= 'Z': + hasUpperCase = true + case value >= 'a' && value <= 'z': + hasLowercase = true + case strings.Contains(specialSymbols, string(value)): + hasSymbol = true + } + } + return hasNumber && hasUpperCase && hasLowercase && hasSymbol && hasLength >= minLength +} From 85d1ecf556ba17163756d411733fa8a63e86b748 Mon Sep 17 00:00:00 2001 From: Yacine FODIL Date: Tue, 16 May 2023 10:49:44 +0200 Subject: [PATCH 2/3] fix ci & add password tag in struct --- internal/namespaces/rdb/v1/custom_instance.go | 2 +- .../namespaces/rdb/v1/custom_instance_test.go | 7 +- internal/namespaces/rdb/v1/custom_user.go | 7 +- .../namespaces/rdb/v1/custom_user_test.go | 10 +- .../test-create-instance-simple.cassette.yaml | 354 +++++---------- .../test-create-instance-simple.golden | 30 +- ...ance-with-password-generator.cassette.yaml | 216 +++++----- ...te-instance-with-password-generator.golden | 32 +- .../test-create-user-simple.cassette.yaml | 254 +++++------ .../testdata/test-create-user-simple.golden | 2 +- ...user-with-password-generator.cassette.yaml | 208 ++++----- ...create-user-with-password-generator.golden | 4 +- .../test-update-user-simple.cassette.yaml | 408 +++++------------- .../testdata/test-update-user-simple.golden | 2 +- ...user-with-password-generator.cassette.yaml | 232 +++++----- ...update-user-with-password-generator.golden | 4 +- 16 files changed, 705 insertions(+), 1067 deletions(-) diff --git a/internal/namespaces/rdb/v1/custom_instance.go b/internal/namespaces/rdb/v1/custom_instance.go index a2626ec97b..fc98372347 100644 --- a/internal/namespaces/rdb/v1/custom_instance.go +++ b/internal/namespaces/rdb/v1/custom_instance.go @@ -52,7 +52,7 @@ type serverWaitRequest struct { type createInstanceResult struct { *rdb.Instance - Password string + Password string `json:"password"` } func createInstanceResultMarshalerFunc(i interface{}, opt *human.MarshalOpt) (string, error) { diff --git a/internal/namespaces/rdb/v1/custom_instance_test.go b/internal/namespaces/rdb/v1/custom_instance_test.go index b33b062aa7..4168f9c2f6 100644 --- a/internal/namespaces/rdb/v1/custom_instance_test.go +++ b/internal/namespaces/rdb/v1/custom_instance_test.go @@ -38,9 +38,10 @@ func Test_CreateInstance(t *testing.T) { })) t.Run("With password generator", core.Test(&core.TestConfig{ - Commands: GetCommands(), - Cmd: fmt.Sprintf("scw rdb instance create node-type=DB-DEV-S is-ha-cluster=false name=%s engine=%s user-name=%s generate-password=true --wait", name, engine, user), - Check: core.TestCheckGolden(), + Commands: GetCommands(), + Cmd: fmt.Sprintf("scw rdb instance create node-type=DB-DEV-S is-ha-cluster=false name=%s engine=%s user-name=%s generate-password=true --wait", name, engine, user), + // do not check the golden as the password generated locally and on CI will necessarily be different + Check: core.TestCheckExitCode(0), AfterFunc: core.ExecAfterCmd("scw rdb instance delete {{ .CmdResult.ID }}"), })) } diff --git a/internal/namespaces/rdb/v1/custom_user.go b/internal/namespaces/rdb/v1/custom_user.go index 4103cc1b64..28a69ab263 100644 --- a/internal/namespaces/rdb/v1/custom_user.go +++ b/internal/namespaces/rdb/v1/custom_user.go @@ -92,7 +92,7 @@ func userCreateBuilder(c *core.Command) *core.Command { type rdbCreateUserResponseCustom struct { *rdb.User - Password string + Password string `json:"password"` } c.ArgSpecs.AddBefore("is-admin", &core.ArgSpec{ @@ -146,7 +146,7 @@ func userUpdateBuilder(c *core.Command) *core.Command { type rdbUpdateUserResponseCustom struct { *rdb.User - Password string + Password string `json:"password"` } c.ArgSpecs.AddBefore("is-admin", &core.ArgSpec{ @@ -171,6 +171,9 @@ func userUpdateBuilder(c *core.Command) *core.Command { if customRequest.GeneratePassword && customRequest.Password == nil { updateUserRequest.Password = new(string) *updateUserRequest.Password, err = passwordgenerator.GeneratePassword(21, 1, 1, 1, 1) + if err != nil { + return nil, err + } fmt.Printf("Your generated password is %v \n", *updateUserRequest.Password) fmt.Printf("\n") } diff --git a/internal/namespaces/rdb/v1/custom_user_test.go b/internal/namespaces/rdb/v1/custom_user_test.go index da6efda5d2..9a125c80ea 100644 --- a/internal/namespaces/rdb/v1/custom_user_test.go +++ b/internal/namespaces/rdb/v1/custom_user_test.go @@ -30,8 +30,9 @@ func Test_CreateUser(t *testing.T) { Commands: GetCommands(), BeforeFunc: createInstance("PostgreSQL-12"), Cmd: fmt.Sprintf("scw rdb user create instance-id={{ $.Instance.Instance.ID }} name=%s generate-password=true", name), - Check: core.TestCheckGolden(), - AfterFunc: deleteInstance(), + // do not check the golden as the password generated locally and on CI will necessarily be different + Check: core.TestCheckExitCode(0), + AfterFunc: deleteInstance(), })) } @@ -53,8 +54,9 @@ func Test_UpdateUser(t *testing.T) { createInstance("PostgreSQL-12"), core.ExecBeforeCmd(fmt.Sprintf("scw rdb user create instance-id={{ $.Instance.Instance.ID }} name=%s password=%s", name, password)), ), - Cmd: fmt.Sprintf("scw rdb user update instance-id={{ $.Instance.Instance.ID }} name=%s generate-password=true is-admin=true", name), - Check: core.TestCheckGolden(), + Cmd: fmt.Sprintf("scw rdb user update instance-id={{ $.Instance.Instance.ID }} name=%s generate-password=true is-admin=true", name), + // do not check the golden as the password generated locally and on CI will necessarily be different + Check: core.TestCheckExitCode(0), AfterFunc: deleteInstance(), })) } diff --git a/internal/namespaces/rdb/v1/testdata/test-create-instance-simple.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-create-instance-simple.cassette.yaml index da0196546d..8e992ce00b 100644 --- a/internal/namespaces/rdb/v1/testdata/test-create-instance-simple.cassette.yaml +++ b/internal/namespaces/rdb/v1/testdata/test-create-instance-simple.cassette.yaml @@ -2,14 +2,14 @@ version: 1 interactions: - request: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' form: {} headers: Content-Type: @@ -19,14 +19,14 @@ interactions: url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances method: POST response: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -35,7 +35,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:17:58 GMT + - Tue, 16 May 2023 08:41:26 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -45,34 +45,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - eb080ef5-d6ce-451f-9308-00ad481097a7 + - 780d246d-61f1-40fb-b364-5eacc5eec1d5 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c1918625-81e0-44a2-aa6b-49f79d49805a method: GET response: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -81,7 +81,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:17:58 GMT + - Tue, 16 May 2023 08:41:27 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -91,34 +91,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 049e4074-fe53-4aee-a528-4f37e8adff9a + - f6996dd7-8e42-4a25-9336-58613d7946a4 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c1918625-81e0-44a2-aa6b-49f79d49805a method: GET response: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -127,7 +127,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:18:13 GMT + - Tue, 16 May 2023 08:41:42 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -137,172 +137,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 14e0ae70-f9ca-4c73-b92d-85cea3610b26 + - 62f865d6-bf5a-4900-8724-e144b9b81fc2 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", - "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", - "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], - "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, - "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, - "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c - method: GET - response: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", - "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", - "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], - "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, - "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, - "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' - headers: - Content-Length: - - "690" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 15 May 2023 21:18:28 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - b2af7ff6-9487-4a4b-a0db-c3dab68cd411 - status: 200 OK - code: 200 - duration: "" -- request: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", - "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", - "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], - "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, - "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, - "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c - method: GET - response: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", - "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", - "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], - "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, - "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, - "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' - headers: - Content-Length: - - "690" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 15 May 2023 21:18:43 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - d7d503dc-ab66-4000-84ee-94160004bde6 - status: 200 OK - code: 200 - duration: "" -- request: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", - "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", - "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], - "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, - "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, - "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c - method: GET - response: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", - "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", - "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], - "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, - "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, - "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' - headers: - Content-Length: - - "690" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 15 May 2023 21:18:58 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 0cec057c-b5a1-43db-b7c4-b9f43814650a - status: 200 OK - code: 200 - duration: "" -- request: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c1918625-81e0-44a2-aa6b-49f79d49805a method: GET response: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -311,7 +173,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:19:14 GMT + - Tue, 16 May 2023 08:41:57 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -321,34 +183,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 6e69e793-c80b-48dd-84d4-cfe26eaa5513 + - 3f325275-9320-4c22-84ac-348d05da6291 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c1918625-81e0-44a2-aa6b-49f79d49805a method: GET response: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -357,7 +219,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:19:29 GMT + - Tue, 16 May 2023 08:42:12 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -367,34 +229,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 064dd58e-50bd-47f8-98f7-e134a2386bb8 + - b153c564-8f01-436b-bc3a-0b45ba331902 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c1918625-81e0-44a2-aa6b-49f79d49805a method: GET response: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -403,7 +265,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:19:44 GMT + - Tue, 16 May 2023 08:42:27 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -413,34 +275,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 7f7ff8f3-ead3-4e1a-93d8-5b102730d48f + - 66b42e8d-923a-40a6-8c92-5ed0ae4c3658 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c1918625-81e0-44a2-aa6b-49f79d49805a method: GET response: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -449,7 +311,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:19:59 GMT + - Tue, 16 May 2023 08:42:42 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -459,34 +321,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 399d9bf7-10b9-49a2-8d7c-b742f2bfd526 + - e159ba86-a2d1-4563-9d00-bb8dbde257ce status: 200 OK code: 200 duration: "" - request: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c1918625-81e0-44a2-aa6b-49f79d49805a method: GET response: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -495,7 +357,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:20:14 GMT + - Tue, 16 May 2023 08:42:57 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -505,34 +367,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - cc05f9ec-441e-4cdd-8f75-f2cd9a6a022d + - 5ef97af1-16a8-40e6-8421-1058ea0bd04e status: 200 OK code: 200 duration: "" - request: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c1918625-81e0-44a2-aa6b-49f79d49805a method: GET response: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -541,7 +403,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:20:29 GMT + - Tue, 16 May 2023 08:43:12 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -551,34 +413,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ec875c2e-317c-433f-b7a9-a46f5adfaede + - dc850e85-d2b3-4866-a495-1bc5e953fc38 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c1918625-81e0-44a2-aa6b-49f79d49805a method: GET response: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -587,7 +449,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:20:44 GMT + - Tue, 16 May 2023 08:43:28 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -597,34 +459,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 52a84cbd-1c4c-422f-8607-4ad7a6a4b9f7 + - feb95b63-1715-46b4-81d9-a51ff76d71a1 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c1918625-81e0-44a2-aa6b-49f79d49805a method: GET response: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -633,7 +495,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:20:59 GMT + - Tue, 16 May 2023 08:43:43 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -643,53 +505,53 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - d3ba1d7d-2233-402c-9cfd-0e9fcd0b1574 + - f51d04aa-4a59-4fb4-8ef0-7bed6f2f7be5 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"ready", "engine":"PostgreSQL-12", - "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":23092, "name":null, - "id":"e1992a87-05be-4ce2-a515-92d19c255977", "load_balancer":{}}, "tags":[], + "upgradable_version":[], "endpoint":{"ip":"51.159.113.51", "port":2467, "name":null, + "id":"8318bbbb-6a02-49cf-8494-dd32884d8d6a", "load_balancer":{}}, "tags":[], "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", - "port":23092, "name":null, "id":"e1992a87-05be-4ce2-a515-92d19c255977", "load_balancer":{}}], + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.113.51", + "port":2467, "name":null, "id":"8318bbbb-6a02-49cf-8494-dd32884d8d6a", "load_balancer":{}}], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, - "maintenances":[], "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "maintenances":[], "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c1918625-81e0-44a2-aa6b-49f79d49805a method: GET response: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"ready", "engine":"PostgreSQL-12", - "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":23092, "name":null, - "id":"e1992a87-05be-4ce2-a515-92d19c255977", "load_balancer":{}}, "tags":[], + "upgradable_version":[], "endpoint":{"ip":"51.159.113.51", "port":2467, "name":null, + "id":"8318bbbb-6a02-49cf-8494-dd32884d8d6a", "load_balancer":{}}, "tags":[], "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", - "port":23092, "name":null, "id":"e1992a87-05be-4ce2-a515-92d19c255977", "load_balancer":{}}], + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.113.51", + "port":2467, "name":null, "id":"8318bbbb-6a02-49cf-8494-dd32884d8d6a", "load_balancer":{}}], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, - "maintenances":[], "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "maintenances":[], "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' headers: Content-Length: - - "1184" + - "1180" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 15 May 2023 21:21:14 GMT + - Tue, 16 May 2023 08:43:58 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -699,53 +561,53 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 11224aff-de07-4c51-9022-bbdf4ad0d388 + - 8046ec7c-34a3-4aaf-972e-0ce2d1d6ed44 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"deleting", "engine":"PostgreSQL-12", - "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":23092, "name":null, - "id":"e1992a87-05be-4ce2-a515-92d19c255977", "load_balancer":{}}, "tags":[], + "upgradable_version":[], "endpoint":{"ip":"51.159.113.51", "port":2467, "name":null, + "id":"8318bbbb-6a02-49cf-8494-dd32884d8d6a", "load_balancer":{}}, "tags":[], "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", - "port":23092, "name":null, "id":"e1992a87-05be-4ce2-a515-92d19c255977", "load_balancer":{}}], + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.113.51", + "port":2467, "name":null, "id":"8318bbbb-6a02-49cf-8494-dd32884d8d6a", "load_balancer":{}}], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, - "maintenances":[], "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "maintenances":[], "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/74e25138-7a48-4da1-ab36-ad538ada116c + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c1918625-81e0-44a2-aa6b-49f79d49805a method: DELETE response: - body: '{"id":"74e25138-7a48-4da1-ab36-ad538ada116c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"c1918625-81e0-44a2-aa6b-49f79d49805a", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"deleting", "engine":"PostgreSQL-12", - "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":23092, "name":null, - "id":"e1992a87-05be-4ce2-a515-92d19c255977", "load_balancer":{}}, "tags":[], + "upgradable_version":[], "endpoint":{"ip":"51.159.113.51", "port":2467, "name":null, + "id":"8318bbbb-6a02-49cf-8494-dd32884d8d6a", "load_balancer":{}}, "tags":[], "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", - "port":23092, "name":null, "id":"e1992a87-05be-4ce2-a515-92d19c255977", "load_balancer":{}}], + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.113.51", + "port":2467, "name":null, "id":"8318bbbb-6a02-49cf-8494-dd32884d8d6a", "load_balancer":{}}], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, - "maintenances":[], "created_at":"2023-05-15T21:17:57.964045Z", "region":"fr-par"}' + "maintenances":[], "created_at":"2023-05-16T08:41:26.655500Z", "region":"fr-par"}' headers: Content-Length: - - "1187" + - "1183" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 15 May 2023 21:21:15 GMT + - Tue, 16 May 2023 08:43:58 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -755,7 +617,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ceb5b782-e1f4-4a3a-96b3-15d6d39db602 + - 9dbc0a4d-ca18-4b6e-b73f-759a301ea8bf status: 200 OK code: 200 duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-create-instance-simple.golden b/internal/namespaces/rdb/v1/testdata/test-create-instance-simple.golden index 4924b07708..336cd1892f 100644 --- a/internal/namespaces/rdb/v1/testdata/test-create-instance-simple.golden +++ b/internal/namespaces/rdb/v1/testdata/test-create-instance-simple.golden @@ -2,7 +2,7 @@ 🟩🟩🟩 STDOUT️ 🟩🟩🟩️ CreatedAt few seconds ago Region fr-par -ID 74e25138-7a48-4da1-ab36-ad538ada116c +ID c1918625-81e0-44a2-aa6b-49f79d49805a Name cli-test OrganizationID 564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5 ProjectID 564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5 @@ -10,16 +10,16 @@ Status ready Engine PostgreSQL-12 IsHaCluster false NodeType db-dev-s -Endpoints.0.ID e1992a87-05be-4ce2-a515-92d19c255977 -Endpoints.0.IP 51.159.112.115 -Endpoints.0.Port 23092 +Endpoints.0.ID 8318bbbb-6a02-49cf-8494-dd32884d8d6a +Endpoints.0.IP 51.159.113.51 +Endpoints.0.Port 2467 LogsPolicy.MaxAgeRetention 30 BackupSameRegion false Endpoint: -ID e1992a87-05be-4ce2-a515-92d19c255977 -IP 51.159.112.115 -Port 23092 +ID 8318bbbb-6a02-49cf-8494-dd32884d8d6a +IP 51.159.113.51 +Port 2467 Volume: Type lssd @@ -49,7 +49,7 @@ Password: "size": 5000000000 }, "region": "fr-par", - "id": "74e25138-7a48-4da1-ab36-ad538ada116c", + "id": "c1918625-81e0-44a2-aa6b-49f79d49805a", "name": "cli-test", "organization_id": "564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id": "564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", @@ -57,9 +57,9 @@ Password: "engine": "PostgreSQL-12", "upgradable_version": [], "endpoint": { - "id": "e1992a87-05be-4ce2-a515-92d19c255977", - "ip": "51.159.112.115", - "port": 23092, + "id": "8318bbbb-6a02-49cf-8494-dd32884d8d6a", + "ip": "51.159.113.51", + "port": 2467, "name": null, "load_balancer": {} }, @@ -101,9 +101,9 @@ Password: "init_settings": [], "endpoints": [ { - "id": "e1992a87-05be-4ce2-a515-92d19c255977", - "ip": "51.159.112.115", - "port": 23092, + "id": "8318bbbb-6a02-49cf-8494-dd32884d8d6a", + "ip": "51.159.113.51", + "port": 2467, "name": null, "load_balancer": {} } @@ -114,5 +114,5 @@ Password: }, "backup_same_region": false, "maintenances": [], - "Password": "{4xdl*#QOoP+\u00263XRkGA)]" + "password": "{4xdl*#QOoP+\u00263XRkGA)]" } diff --git a/internal/namespaces/rdb/v1/testdata/test-create-instance-with-password-generator.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-create-instance-with-password-generator.cassette.yaml index 7b54769790..d4429c77a3 100644 --- a/internal/namespaces/rdb/v1/testdata/test-create-instance-with-password-generator.cassette.yaml +++ b/internal/namespaces/rdb/v1/testdata/test-create-instance-with-password-generator.cassette.yaml @@ -2,14 +2,14 @@ version: 1 interactions: - request: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' form: {} headers: Content-Type: @@ -19,14 +19,14 @@ interactions: url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances method: POST response: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -35,7 +35,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:14:27 GMT + - Tue, 16 May 2023 08:44:05 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -45,34 +45,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 38ae073a-a55b-4e57-96e2-c32c99a011c0 + - 06f097dc-6e26-4af4-a807-dcca9d50ee9a status: 200 OK code: 200 duration: "" - request: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/520896f3-b9d4-4b06-8f34-6b10f89bad26 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/98fd86d8-1687-4d62-acbe-12919c38b03c method: GET response: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -81,7 +81,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:14:27 GMT + - Tue, 16 May 2023 08:44:05 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -91,34 +91,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 7c85e021-5776-463e-9705-31b4a3479be3 + - 86559e04-7b60-46f5-9876-05e537f5e1bc status: 200 OK code: 200 duration: "" - request: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/520896f3-b9d4-4b06-8f34-6b10f89bad26 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/98fd86d8-1687-4d62-acbe-12919c38b03c method: GET response: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -127,7 +127,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:14:43 GMT + - Tue, 16 May 2023 08:44:21 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -137,34 +137,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a8807053-e96f-444a-8290-0101c49f3f55 + - c5ce703b-f721-4576-aaae-186797491a30 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/520896f3-b9d4-4b06-8f34-6b10f89bad26 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/98fd86d8-1687-4d62-acbe-12919c38b03c method: GET response: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -173,7 +173,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:14:58 GMT + - Tue, 16 May 2023 08:44:36 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -183,34 +183,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 98c5fac7-1a01-4c9c-970c-e7a37952e1a5 + - 478d4456-4a04-4dd1-a9f3-957dfba45c1d status: 200 OK code: 200 duration: "" - request: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/520896f3-b9d4-4b06-8f34-6b10f89bad26 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/98fd86d8-1687-4d62-acbe-12919c38b03c method: GET response: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -219,7 +219,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:15:13 GMT + - Tue, 16 May 2023 08:44:51 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -229,34 +229,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ff067ab1-9071-49e1-bfc5-13eeb7ab5a2f + - 3630e97a-3a77-438a-aea3-afadaea1bdcf status: 200 OK code: 200 duration: "" - request: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/520896f3-b9d4-4b06-8f34-6b10f89bad26 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/98fd86d8-1687-4d62-acbe-12919c38b03c method: GET response: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -265,7 +265,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:15:28 GMT + - Tue, 16 May 2023 08:45:06 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -275,34 +275,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c2d74ea6-d072-430f-9b1a-037cab9a86bc + - c8079fc5-6b57-4c05-a13b-47e6cf46488b status: 200 OK code: 200 duration: "" - request: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/520896f3-b9d4-4b06-8f34-6b10f89bad26 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/98fd86d8-1687-4d62-acbe-12919c38b03c method: GET response: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -311,7 +311,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:15:43 GMT + - Tue, 16 May 2023 08:45:21 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -321,34 +321,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1e0dbceb-d5f6-4538-8f1d-77511ee2ea0f + - 4ff757ac-d0d9-41b1-a26e-da924e64652c status: 200 OK code: 200 duration: "" - request: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/520896f3-b9d4-4b06-8f34-6b10f89bad26 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/98fd86d8-1687-4d62-acbe-12919c38b03c method: GET response: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -357,7 +357,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:15:58 GMT + - Tue, 16 May 2023 08:45:36 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -367,34 +367,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 958a03ec-53f1-48bb-9fac-59e76feca623 + - 78563628-250c-48d5-a5d5-3e2016a42d75 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/520896f3-b9d4-4b06-8f34-6b10f89bad26 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/98fd86d8-1687-4d62-acbe-12919c38b03c method: GET response: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -403,7 +403,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:16:13 GMT + - Tue, 16 May 2023 08:45:52 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -413,34 +413,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 0f6b5ac9-3d70-4970-b296-10d26bf07031 + - 382e69eb-8140-44d2-ad4f-fe530e83f886 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/520896f3-b9d4-4b06-8f34-6b10f89bad26 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/98fd86d8-1687-4d62-acbe-12919c38b03c method: GET response: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -449,7 +449,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:16:28 GMT + - Tue, 16 May 2023 08:46:07 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -459,34 +459,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 5ef34b33-0fab-4766-994e-e6bcef6974e6 + - 58707d9a-4322-4b1f-9499-a49d4d5d82ce status: 200 OK code: 200 duration: "" - request: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/520896f3-b9d4-4b06-8f34-6b10f89bad26 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/98fd86d8-1687-4d62-acbe-12919c38b03c method: GET response: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -495,7 +495,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:16:43 GMT + - Tue, 16 May 2023 08:46:22 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -505,53 +505,53 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ffd81f42-926a-450e-aa32-71d5f43ff79c + - 309fc0ff-5eba-41ef-ab9c-4c3ba0bd577b status: 200 OK code: 200 duration: "" - request: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"ready", "engine":"PostgreSQL-12", - "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":19276, "name":null, - "id":"90b9b9cd-b83a-4da8-a6ee-3425cc98fea5", "load_balancer":{}}, "tags":[], + "upgradable_version":[], "endpoint":{"ip":"51.159.113.51", "port":24957, "name":null, + "id":"405e3752-760f-4008-b7c4-3a30e0243c77", "load_balancer":{}}, "tags":[], "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", - "port":19276, "name":null, "id":"90b9b9cd-b83a-4da8-a6ee-3425cc98fea5", "load_balancer":{}}], + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.113.51", + "port":24957, "name":null, "id":"405e3752-760f-4008-b7c4-3a30e0243c77", "load_balancer":{}}], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, - "maintenances":[], "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "maintenances":[], "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/520896f3-b9d4-4b06-8f34-6b10f89bad26 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/98fd86d8-1687-4d62-acbe-12919c38b03c method: GET response: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"ready", "engine":"PostgreSQL-12", - "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":19276, "name":null, - "id":"90b9b9cd-b83a-4da8-a6ee-3425cc98fea5", "load_balancer":{}}, "tags":[], + "upgradable_version":[], "endpoint":{"ip":"51.159.113.51", "port":24957, "name":null, + "id":"405e3752-760f-4008-b7c4-3a30e0243c77", "load_balancer":{}}, "tags":[], "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", - "port":19276, "name":null, "id":"90b9b9cd-b83a-4da8-a6ee-3425cc98fea5", "load_balancer":{}}], + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.113.51", + "port":24957, "name":null, "id":"405e3752-760f-4008-b7c4-3a30e0243c77", "load_balancer":{}}], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, - "maintenances":[], "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "maintenances":[], "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' headers: Content-Length: - - "1184" + - "1182" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 15 May 2023 21:16:59 GMT + - Tue, 16 May 2023 08:46:37 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -561,53 +561,53 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a338acc7-8e62-4061-9aff-78f3faefae7b + - 2a50efb2-311e-486a-8b63-5963d35b8443 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"deleting", "engine":"PostgreSQL-12", - "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":19276, "name":null, - "id":"90b9b9cd-b83a-4da8-a6ee-3425cc98fea5", "load_balancer":{}}, "tags":[], + "upgradable_version":[], "endpoint":{"ip":"51.159.113.51", "port":24957, "name":null, + "id":"405e3752-760f-4008-b7c4-3a30e0243c77", "load_balancer":{}}, "tags":[], "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", - "port":19276, "name":null, "id":"90b9b9cd-b83a-4da8-a6ee-3425cc98fea5", "load_balancer":{}}], + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.113.51", + "port":24957, "name":null, "id":"405e3752-760f-4008-b7c4-3a30e0243c77", "load_balancer":{}}], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, - "maintenances":[], "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "maintenances":[], "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/520896f3-b9d4-4b06-8f34-6b10f89bad26 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/98fd86d8-1687-4d62-acbe-12919c38b03c method: DELETE response: - body: '{"id":"520896f3-b9d4-4b06-8f34-6b10f89bad26", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"98fd86d8-1687-4d62-acbe-12919c38b03c", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"deleting", "engine":"PostgreSQL-12", - "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":19276, "name":null, - "id":"90b9b9cd-b83a-4da8-a6ee-3425cc98fea5", "load_balancer":{}}, "tags":[], + "upgradable_version":[], "endpoint":{"ip":"51.159.113.51", "port":24957, "name":null, + "id":"405e3752-760f-4008-b7c4-3a30e0243c77", "load_balancer":{}}, "tags":[], "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", - "port":19276, "name":null, "id":"90b9b9cd-b83a-4da8-a6ee-3425cc98fea5", "load_balancer":{}}], + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.113.51", + "port":24957, "name":null, "id":"405e3752-760f-4008-b7c4-3a30e0243c77", "load_balancer":{}}], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, - "maintenances":[], "created_at":"2023-05-15T21:14:27.530187Z", "region":"fr-par"}' + "maintenances":[], "created_at":"2023-05-16T08:44:05.444464Z", "region":"fr-par"}' headers: Content-Length: - - "1187" + - "1185" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 15 May 2023 21:16:59 GMT + - Tue, 16 May 2023 08:46:37 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -617,7 +617,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c1fa1da3-4263-4cab-af25-56b6da0b14db + - 85c89060-d563-4f80-a959-490c75b713a5 status: 200 OK code: 200 duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-create-instance-with-password-generator.golden b/internal/namespaces/rdb/v1/testdata/test-create-instance-with-password-generator.golden index df1902a942..62c879becb 100644 --- a/internal/namespaces/rdb/v1/testdata/test-create-instance-with-password-generator.golden +++ b/internal/namespaces/rdb/v1/testdata/test-create-instance-with-password-generator.golden @@ -2,7 +2,7 @@ 🟩🟩🟩 STDOUT️ 🟩🟩🟩️ CreatedAt few seconds ago Region fr-par -ID 520896f3-b9d4-4b06-8f34-6b10f89bad26 +ID 98fd86d8-1687-4d62-acbe-12919c38b03c Name cli-test OrganizationID 564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5 ProjectID 564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5 @@ -10,16 +10,16 @@ Status ready Engine PostgreSQL-12 IsHaCluster false NodeType db-dev-s -Endpoints.0.ID 90b9b9cd-b83a-4da8-a6ee-3425cc98fea5 -Endpoints.0.IP 51.159.112.115 -Endpoints.0.Port 19276 +Endpoints.0.ID 405e3752-760f-4008-b7c4-3a30e0243c77 +Endpoints.0.IP 51.159.113.51 +Endpoints.0.Port 24957 LogsPolicy.MaxAgeRetention 30 BackupSameRegion false Endpoint: -ID 90b9b9cd-b83a-4da8-a6ee-3425cc98fea5 -IP 51.159.112.115 -Port 19276 +ID 405e3752-760f-4008-b7c4-3a30e0243c77 +IP 51.159.113.51 +Port 24957 Volume: Type lssd @@ -40,7 +40,7 @@ max_parallel_workers_per_gather 0 work_mem 4 Password: -8284SF7jf<($D)gZ?D/tA +dO)PJM!jNu(q!kMB1.p6) 🟩🟩🟩 JSON STDOUT 🟩🟩🟩 { "created_at": "1970-01-01T00:00:00.0Z", @@ -49,7 +49,7 @@ Password: "size": 5000000000 }, "region": "fr-par", - "id": "520896f3-b9d4-4b06-8f34-6b10f89bad26", + "id": "98fd86d8-1687-4d62-acbe-12919c38b03c", "name": "cli-test", "organization_id": "564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id": "564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", @@ -57,9 +57,9 @@ Password: "engine": "PostgreSQL-12", "upgradable_version": [], "endpoint": { - "id": "90b9b9cd-b83a-4da8-a6ee-3425cc98fea5", - "ip": "51.159.112.115", - "port": 19276, + "id": "405e3752-760f-4008-b7c4-3a30e0243c77", + "ip": "51.159.113.51", + "port": 24957, "name": null, "load_balancer": {} }, @@ -101,9 +101,9 @@ Password: "init_settings": [], "endpoints": [ { - "id": "90b9b9cd-b83a-4da8-a6ee-3425cc98fea5", - "ip": "51.159.112.115", - "port": 19276, + "id": "405e3752-760f-4008-b7c4-3a30e0243c77", + "ip": "51.159.113.51", + "port": 24957, "name": null, "load_balancer": {} } @@ -114,5 +114,5 @@ Password: }, "backup_same_region": false, "maintenances": [], - "Password": "8284SF7jf\u003c($D)gZ?D/tA" + "password": "dO)PJM!jNu(q!kMB1.p6)" } diff --git a/internal/namespaces/rdb/v1/testdata/test-create-user-simple.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-create-user-simple.cassette.yaml index 09b1689230..275bf16b08 100644 --- a/internal/namespaces/rdb/v1/testdata/test-create-user-simple.cassette.yaml +++ b/internal/namespaces/rdb/v1/testdata/test-create-user-simple.cassette.yaml @@ -2,14 +2,14 @@ version: 1 interactions: - request: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"0160da12-97bb-415a-8100-63fa9bf30547", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:34:21.268963Z", "region":"fr-par"}' form: {} headers: Content-Type: @@ -19,14 +19,14 @@ interactions: url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances method: POST response: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"0160da12-97bb-415a-8100-63fa9bf30547", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:34:21.268963Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -35,7 +35,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:28:34 GMT + - Tue, 16 May 2023 08:34:22 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -45,34 +45,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - d41bae65-cb99-489d-ae2e-dbbaebd41e85 + - 9aae5647-b43f-44e0-ad30-5b255e193af6 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"0160da12-97bb-415a-8100-63fa9bf30547", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:34:21.268963Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0160da12-97bb-415a-8100-63fa9bf30547 method: GET response: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"0160da12-97bb-415a-8100-63fa9bf30547", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:34:21.268963Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -81,7 +81,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:28:34 GMT + - Tue, 16 May 2023 08:34:22 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -91,34 +91,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 54d61eb0-2115-4dc0-b216-1bfb302c5861 + - c065342c-4aa8-44ce-be26-e699e4b7d3bc status: 200 OK code: 200 duration: "" - request: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"0160da12-97bb-415a-8100-63fa9bf30547", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:34:21.268963Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0160da12-97bb-415a-8100-63fa9bf30547 method: GET response: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"0160da12-97bb-415a-8100-63fa9bf30547", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:34:21.268963Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -127,7 +127,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:28:49 GMT + - Tue, 16 May 2023 08:34:37 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -137,34 +137,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 966bf1f2-af26-49b9-9333-92328d5a6dba + - e2892efc-9dc6-48a0-84ce-cdc7072790f5 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"0160da12-97bb-415a-8100-63fa9bf30547", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:34:21.268963Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0160da12-97bb-415a-8100-63fa9bf30547 method: GET response: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"0160da12-97bb-415a-8100-63fa9bf30547", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:34:21.268963Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -173,7 +173,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:29:05 GMT + - Tue, 16 May 2023 08:34:52 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -183,34 +183,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 20013bd8-3907-40f8-b90d-8160df2976da + - ebb40d2b-5477-4869-abc2-9aa621f73092 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"0160da12-97bb-415a-8100-63fa9bf30547", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:34:21.268963Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0160da12-97bb-415a-8100-63fa9bf30547 method: GET response: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"0160da12-97bb-415a-8100-63fa9bf30547", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:34:21.268963Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -219,7 +219,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:29:21 GMT + - Tue, 16 May 2023 08:35:08 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -229,34 +229,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 8cf6da3b-fd40-4745-b629-3d59ecf9185b + - d1eb87a2-cd13-43e3-8776-ca3af5ba4928 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"0160da12-97bb-415a-8100-63fa9bf30547", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:34:21.268963Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0160da12-97bb-415a-8100-63fa9bf30547 method: GET response: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"0160da12-97bb-415a-8100-63fa9bf30547", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:34:21.268963Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -265,7 +265,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:29:36 GMT + - Tue, 16 May 2023 08:35:23 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -275,34 +275,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 4513fc6b-bd80-4c2e-8b40-528b1953b74f + - 7ade5ab9-162e-4cb4-b038-adc498cacc8b status: 200 OK code: 200 duration: "" - request: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"0160da12-97bb-415a-8100-63fa9bf30547", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:34:21.268963Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0160da12-97bb-415a-8100-63fa9bf30547 method: GET response: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"0160da12-97bb-415a-8100-63fa9bf30547", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:34:21.268963Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -311,7 +311,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:29:51 GMT + - Tue, 16 May 2023 08:35:38 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -321,34 +321,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c87c25ed-35cd-41d1-8fbe-2c0fe1563367 + - d05721f0-8849-4069-b29f-d47deefb8238 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"0160da12-97bb-415a-8100-63fa9bf30547", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:34:21.268963Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0160da12-97bb-415a-8100-63fa9bf30547 method: GET response: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"0160da12-97bb-415a-8100-63fa9bf30547", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:34:21.268963Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -357,7 +357,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:30:06 GMT + - Tue, 16 May 2023 08:35:53 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -367,34 +367,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 8ae8eb79-b516-4dac-be94-494ed5232042 + - 59084924-54ec-40fb-a9f9-f4452e4ec058 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"0160da12-97bb-415a-8100-63fa9bf30547", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:34:21.268963Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0160da12-97bb-415a-8100-63fa9bf30547 method: GET response: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"0160da12-97bb-415a-8100-63fa9bf30547", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:34:21.268963Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -403,7 +403,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:30:22 GMT + - Tue, 16 May 2023 08:36:08 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -413,34 +413,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 6b205d39-4313-41c3-9491-6c43ea9d1a8b + - 84eb189d-e5c8-4473-b121-78cce99b05c7 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"0160da12-97bb-415a-8100-63fa9bf30547", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:34:21.268963Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0160da12-97bb-415a-8100-63fa9bf30547 method: GET response: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"0160da12-97bb-415a-8100-63fa9bf30547", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:34:21.268963Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -449,7 +449,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:30:37 GMT + - Tue, 16 May 2023 08:36:23 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -459,99 +459,53 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 81ccef8b-b83a-46fd-a328-bff2356392ff + - c518fc53-c9e8-4303-8825-887da500c373 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", - "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", - "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], - "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, - "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, - "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce - method: GET - response: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", - "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", - "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], - "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, - "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, - "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' - headers: - Content-Length: - - "690" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 15 May 2023 21:30:52 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - c5e20b0c-eb30-48a7-8552-acbc7550d645 - status: 200 OK - code: 200 - duration: "" -- request: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"0160da12-97bb-415a-8100-63fa9bf30547", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"ready", "engine":"PostgreSQL-12", - "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":19566, "name":null, - "id":"faabacb1-a38f-4700-b42c-d33ecd22055b", "load_balancer":{}}, "tags":[], + "upgradable_version":[], "endpoint":{"ip":"51.159.113.51", "port":18150, "name":null, + "id":"d2044efc-5a0d-4b7a-b3f6-1321e41d2504", "load_balancer":{}}, "tags":[], "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", - "port":19566, "name":null, "id":"faabacb1-a38f-4700-b42c-d33ecd22055b", "load_balancer":{}}], + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.113.51", + "port":18150, "name":null, "id":"d2044efc-5a0d-4b7a-b3f6-1321e41d2504", "load_balancer":{}}], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, - "maintenances":[], "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + "maintenances":[], "created_at":"2023-05-16T08:34:21.268963Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0160da12-97bb-415a-8100-63fa9bf30547 method: GET response: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"0160da12-97bb-415a-8100-63fa9bf30547", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"ready", "engine":"PostgreSQL-12", - "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":19566, "name":null, - "id":"faabacb1-a38f-4700-b42c-d33ecd22055b", "load_balancer":{}}, "tags":[], + "upgradable_version":[], "endpoint":{"ip":"51.159.113.51", "port":18150, "name":null, + "id":"d2044efc-5a0d-4b7a-b3f6-1321e41d2504", "load_balancer":{}}, "tags":[], "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", - "port":19566, "name":null, "id":"faabacb1-a38f-4700-b42c-d33ecd22055b", "load_balancer":{}}], + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.113.51", + "port":18150, "name":null, "id":"d2044efc-5a0d-4b7a-b3f6-1321e41d2504", "load_balancer":{}}], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, - "maintenances":[], "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + "maintenances":[], "created_at":"2023-05-16T08:34:21.268963Z", "region":"fr-par"}' headers: Content-Length: - - "1184" + - "1182" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 15 May 2023 21:31:07 GMT + - Tue, 16 May 2023 08:36:38 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -561,7 +515,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c0df606f-8459-4c1f-a72f-54b1639f989f + - 6a375565-0e74-4fa4-b1bd-4ccdef3db210 status: 200 OK code: 200 duration: "" @@ -573,7 +527,7 @@ interactions: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce/users + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0160da12-97bb-415a-8100-63fa9bf30547/users method: POST response: body: '{"name":"cli-test", "is_admin":false}' @@ -585,7 +539,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:31:07 GMT + - Tue, 16 May 2023 08:36:39 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -595,53 +549,53 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 80c9172c-73fc-4e4e-86d1-c957f4217a32 + - b4a39037-a51e-48ae-ad3c-cd2b21cb6464 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"0160da12-97bb-415a-8100-63fa9bf30547", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"deleting", "engine":"PostgreSQL-12", - "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":19566, "name":null, - "id":"faabacb1-a38f-4700-b42c-d33ecd22055b", "load_balancer":{}}, "tags":[], + "upgradable_version":[], "endpoint":{"ip":"51.159.113.51", "port":18150, "name":null, + "id":"d2044efc-5a0d-4b7a-b3f6-1321e41d2504", "load_balancer":{}}, "tags":[], "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", - "port":19566, "name":null, "id":"faabacb1-a38f-4700-b42c-d33ecd22055b", "load_balancer":{}}], + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.113.51", + "port":18150, "name":null, "id":"d2044efc-5a0d-4b7a-b3f6-1321e41d2504", "load_balancer":{}}], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, - "maintenances":[], "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + "maintenances":[], "created_at":"2023-05-16T08:34:21.268963Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/216fa7b4-ab48-4593-a158-299335f270ce + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0160da12-97bb-415a-8100-63fa9bf30547 method: DELETE response: - body: '{"id":"216fa7b4-ab48-4593-a158-299335f270ce", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"0160da12-97bb-415a-8100-63fa9bf30547", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"deleting", "engine":"PostgreSQL-12", - "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":19566, "name":null, - "id":"faabacb1-a38f-4700-b42c-d33ecd22055b", "load_balancer":{}}, "tags":[], + "upgradable_version":[], "endpoint":{"ip":"51.159.113.51", "port":18150, "name":null, + "id":"d2044efc-5a0d-4b7a-b3f6-1321e41d2504", "load_balancer":{}}, "tags":[], "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", - "port":19566, "name":null, "id":"faabacb1-a38f-4700-b42c-d33ecd22055b", "load_balancer":{}}], + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.113.51", + "port":18150, "name":null, "id":"d2044efc-5a0d-4b7a-b3f6-1321e41d2504", "load_balancer":{}}], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, - "maintenances":[], "created_at":"2023-05-15T21:28:34.270842Z", "region":"fr-par"}' + "maintenances":[], "created_at":"2023-05-16T08:34:21.268963Z", "region":"fr-par"}' headers: Content-Length: - - "1187" + - "1185" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 15 May 2023 21:31:08 GMT + - Tue, 16 May 2023 08:36:39 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -651,7 +605,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - cbc109eb-02e5-4451-92aa-ec9d817e2e89 + - 216c79b2-f8b7-4c22-aa15-212ab85aa5c9 status: 200 OK code: 200 duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-create-user-simple.golden b/internal/namespaces/rdb/v1/testdata/test-create-user-simple.golden index 7d54bfa1c1..b38d63f96f 100644 --- a/internal/namespaces/rdb/v1/testdata/test-create-user-simple.golden +++ b/internal/namespaces/rdb/v1/testdata/test-create-user-simple.golden @@ -7,5 +7,5 @@ Password {4xdl*#QOoP+&3XRkGA)] { "name": "cli-test", "is_admin": false, - "Password": "{4xdl*#QOoP+\u00263XRkGA)]" + "password": "{4xdl*#QOoP+\u00263XRkGA)]" } diff --git a/internal/namespaces/rdb/v1/testdata/test-create-user-with-password-generator.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-create-user-with-password-generator.cassette.yaml index 6a5e17ef5a..6755d15fa0 100644 --- a/internal/namespaces/rdb/v1/testdata/test-create-user-with-password-generator.cassette.yaml +++ b/internal/namespaces/rdb/v1/testdata/test-create-user-with-password-generator.cassette.yaml @@ -2,14 +2,14 @@ version: 1 interactions: - request: - body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"61e69552-bbb4-42ac-a3b8-36b20ccdb54e", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:36:50.009651Z", "region":"fr-par"}' form: {} headers: Content-Type: @@ -19,14 +19,14 @@ interactions: url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances method: POST response: - body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"61e69552-bbb4-42ac-a3b8-36b20ccdb54e", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:36:50.009651Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -35,7 +35,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:31:50 GMT + - Tue, 16 May 2023 08:36:50 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -45,34 +45,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 4c41ed0a-522b-4691-99bf-c98062b8cc7d + - f8b8626d-0786-469b-8b72-f1ff79060195 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"61e69552-bbb4-42ac-a3b8-36b20ccdb54e", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:36:50.009651Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1ad978a8-69c3-4c90-bbb7-f6a5e92061df + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61e69552-bbb4-42ac-a3b8-36b20ccdb54e method: GET response: - body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"61e69552-bbb4-42ac-a3b8-36b20ccdb54e", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:36:50.009651Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -81,7 +81,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:31:50 GMT + - Tue, 16 May 2023 08:36:51 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -91,34 +91,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 972e3026-7e8d-483f-a083-a7c06a12d646 + - d3d30fe3-9b5d-49fa-a815-6fd22685b448 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"61e69552-bbb4-42ac-a3b8-36b20ccdb54e", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:36:50.009651Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1ad978a8-69c3-4c90-bbb7-f6a5e92061df + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61e69552-bbb4-42ac-a3b8-36b20ccdb54e method: GET response: - body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"61e69552-bbb4-42ac-a3b8-36b20ccdb54e", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:36:50.009651Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -127,7 +127,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:32:05 GMT + - Tue, 16 May 2023 08:37:06 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -137,34 +137,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 5cd2e57b-04eb-4e03-96ce-628d4d6004c5 + - 7c8c559b-db04-4496-9b72-5dfde6b875e6 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", - "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + body: '{"id":"61e69552-bbb4-42ac-a3b8-36b20ccdb54e", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:36:50.009651Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1ad978a8-69c3-4c90-bbb7-f6a5e92061df + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61e69552-bbb4-42ac-a3b8-36b20ccdb54e method: GET response: - body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", - "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + body: '{"id":"61e69552-bbb4-42ac-a3b8-36b20ccdb54e", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:36:50.009651Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -173,7 +173,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:32:21 GMT + - Tue, 16 May 2023 08:37:21 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -183,34 +183,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 353eaca8-dd2c-4613-91db-1572cb4c6607 + - 73df3788-7dac-4712-bbc7-33421327e033 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"61e69552-bbb4-42ac-a3b8-36b20ccdb54e", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:36:50.009651Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1ad978a8-69c3-4c90-bbb7-f6a5e92061df + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61e69552-bbb4-42ac-a3b8-36b20ccdb54e method: GET response: - body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"61e69552-bbb4-42ac-a3b8-36b20ccdb54e", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:36:50.009651Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -219,7 +219,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:32:36 GMT + - Tue, 16 May 2023 08:37:37 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -229,34 +229,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 32de8b69-47b9-410c-a35a-42b1904137f7 + - 8d8cb8e9-4556-4f4b-a0c4-fc1b78adfcd4 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"61e69552-bbb4-42ac-a3b8-36b20ccdb54e", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:36:50.009651Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1ad978a8-69c3-4c90-bbb7-f6a5e92061df + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61e69552-bbb4-42ac-a3b8-36b20ccdb54e method: GET response: - body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"61e69552-bbb4-42ac-a3b8-36b20ccdb54e", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:36:50.009651Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -265,7 +265,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:32:51 GMT + - Tue, 16 May 2023 08:37:52 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -275,34 +275,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - d838ba48-b816-4f6e-9a29-0328d4ca780a + - 3390536c-8c79-42f8-9851-d0f152242d05 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"61e69552-bbb4-42ac-a3b8-36b20ccdb54e", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:36:50.009651Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1ad978a8-69c3-4c90-bbb7-f6a5e92061df + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61e69552-bbb4-42ac-a3b8-36b20ccdb54e method: GET response: - body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"61e69552-bbb4-42ac-a3b8-36b20ccdb54e", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:36:50.009651Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -311,7 +311,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:33:06 GMT + - Tue, 16 May 2023 08:38:07 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -321,34 +321,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 10a81f2e-75d7-4856-974c-229e1b43f6d9 + - 351928c9-44b5-4043-89ca-b4828b622e91 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"61e69552-bbb4-42ac-a3b8-36b20ccdb54e", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:36:50.009651Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1ad978a8-69c3-4c90-bbb7-f6a5e92061df + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61e69552-bbb4-42ac-a3b8-36b20ccdb54e method: GET response: - body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"61e69552-bbb4-42ac-a3b8-36b20ccdb54e", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:36:50.009651Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -357,7 +357,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:33:21 GMT + - Tue, 16 May 2023 08:38:22 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -367,34 +367,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 68d7176c-1a1b-4e10-80c0-29d227de2c60 + - 97b17f16-abdf-4089-9b45-bac4d4caa75e status: 200 OK code: 200 duration: "" - request: - body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"61e69552-bbb4-42ac-a3b8-36b20ccdb54e", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:36:50.009651Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1ad978a8-69c3-4c90-bbb7-f6a5e92061df + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61e69552-bbb4-42ac-a3b8-36b20ccdb54e method: GET response: - body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"61e69552-bbb4-42ac-a3b8-36b20ccdb54e", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:36:50.009651Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -403,7 +403,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:33:36 GMT + - Tue, 16 May 2023 08:38:37 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -413,34 +413,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 8d699b12-91ff-4861-8a2e-d33b8f44b632 + - f0393195-63a7-43b4-ab01-f4b4fd259bcf status: 200 OK code: 200 duration: "" - request: - body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"61e69552-bbb4-42ac-a3b8-36b20ccdb54e", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:36:50.009651Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1ad978a8-69c3-4c90-bbb7-f6a5e92061df + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61e69552-bbb4-42ac-a3b8-36b20ccdb54e method: GET response: - body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"61e69552-bbb4-42ac-a3b8-36b20ccdb54e", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:36:50.009651Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -449,7 +449,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:33:51 GMT + - Tue, 16 May 2023 08:38:52 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -459,44 +459,44 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 931c7894-c3af-429b-a116-bee11a5e5fd8 + - ee278170-f3c8-47a9-8954-24c88dbcb2e1 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"61e69552-bbb4-42ac-a3b8-36b20ccdb54e", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"ready", "engine":"PostgreSQL-12", - "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":5384, "name":null, - "id":"e409d560-cda3-4db1-8aa0-e80fa8ab796c", "load_balancer":{}}, "tags":[], + "upgradable_version":[], "endpoint":{"ip":"51.159.113.51", "port":23954, "name":null, + "id":"6ad63f1c-7cec-4776-9202-c6f012772a07", "load_balancer":{}}, "tags":[], "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", - "port":5384, "name":null, "id":"e409d560-cda3-4db1-8aa0-e80fa8ab796c", "load_balancer":{}}], + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.113.51", + "port":23954, "name":null, "id":"6ad63f1c-7cec-4776-9202-c6f012772a07", "load_balancer":{}}], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, - "maintenances":[], "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + "maintenances":[], "created_at":"2023-05-16T08:36:50.009651Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1ad978a8-69c3-4c90-bbb7-f6a5e92061df + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61e69552-bbb4-42ac-a3b8-36b20ccdb54e method: GET response: - body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"61e69552-bbb4-42ac-a3b8-36b20ccdb54e", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"ready", "engine":"PostgreSQL-12", - "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":5384, "name":null, - "id":"e409d560-cda3-4db1-8aa0-e80fa8ab796c", "load_balancer":{}}, "tags":[], + "upgradable_version":[], "endpoint":{"ip":"51.159.113.51", "port":23954, "name":null, + "id":"6ad63f1c-7cec-4776-9202-c6f012772a07", "load_balancer":{}}, "tags":[], "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", - "port":5384, "name":null, "id":"e409d560-cda3-4db1-8aa0-e80fa8ab796c", "load_balancer":{}}], + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.113.51", + "port":23954, "name":null, "id":"6ad63f1c-7cec-4776-9202-c6f012772a07", "load_balancer":{}}], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, - "maintenances":[], "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + "maintenances":[], "created_at":"2023-05-16T08:36:50.009651Z", "region":"fr-par"}' headers: Content-Length: - "1182" @@ -505,7 +505,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:34:07 GMT + - Tue, 16 May 2023 08:39:07 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -515,7 +515,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - cd7fb871-625e-4287-8753-b8fbe74547cb + - 03f18161-f512-4687-8c25-bdd529e0a2d3 status: 200 OK code: 200 duration: "" @@ -527,7 +527,7 @@ interactions: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1ad978a8-69c3-4c90-bbb7-f6a5e92061df/users + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61e69552-bbb4-42ac-a3b8-36b20ccdb54e/users method: POST response: body: '{"name":"cli-test", "is_admin":false}' @@ -539,7 +539,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:34:07 GMT + - Tue, 16 May 2023 08:39:07 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -549,44 +549,44 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a38a433a-f659-420b-8e76-abf5d963af37 + - 3d73ab46-bff9-4805-93c7-cf9b9f2bb118 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"61e69552-bbb4-42ac-a3b8-36b20ccdb54e", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"deleting", "engine":"PostgreSQL-12", - "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":5384, "name":null, - "id":"e409d560-cda3-4db1-8aa0-e80fa8ab796c", "load_balancer":{}}, "tags":[], + "upgradable_version":[], "endpoint":{"ip":"51.159.113.51", "port":23954, "name":null, + "id":"6ad63f1c-7cec-4776-9202-c6f012772a07", "load_balancer":{}}, "tags":[], "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", - "port":5384, "name":null, "id":"e409d560-cda3-4db1-8aa0-e80fa8ab796c", "load_balancer":{}}], + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.113.51", + "port":23954, "name":null, "id":"6ad63f1c-7cec-4776-9202-c6f012772a07", "load_balancer":{}}], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, - "maintenances":[], "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + "maintenances":[], "created_at":"2023-05-16T08:36:50.009651Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/1ad978a8-69c3-4c90-bbb7-f6a5e92061df + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/61e69552-bbb4-42ac-a3b8-36b20ccdb54e method: DELETE response: - body: '{"id":"1ad978a8-69c3-4c90-bbb7-f6a5e92061df", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"61e69552-bbb4-42ac-a3b8-36b20ccdb54e", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"deleting", "engine":"PostgreSQL-12", - "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":5384, "name":null, - "id":"e409d560-cda3-4db1-8aa0-e80fa8ab796c", "load_balancer":{}}, "tags":[], + "upgradable_version":[], "endpoint":{"ip":"51.159.113.51", "port":23954, "name":null, + "id":"6ad63f1c-7cec-4776-9202-c6f012772a07", "load_balancer":{}}, "tags":[], "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", - "port":5384, "name":null, "id":"e409d560-cda3-4db1-8aa0-e80fa8ab796c", "load_balancer":{}}], + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.113.51", + "port":23954, "name":null, "id":"6ad63f1c-7cec-4776-9202-c6f012772a07", "load_balancer":{}}], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, - "maintenances":[], "created_at":"2023-05-15T21:31:49.803515Z", "region":"fr-par"}' + "maintenances":[], "created_at":"2023-05-16T08:36:50.009651Z", "region":"fr-par"}' headers: Content-Length: - "1185" @@ -595,7 +595,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:34:07 GMT + - Tue, 16 May 2023 08:39:08 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -605,7 +605,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - bb08a6a2-4095-4785-ad02-c761d500e768 + - 03655063-6e8a-4bf4-b5b0-63a1432cc0a3 status: 200 OK code: 200 duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-create-user-with-password-generator.golden b/internal/namespaces/rdb/v1/testdata/test-create-user-with-password-generator.golden index 380614d078..0b0c910f7f 100644 --- a/internal/namespaces/rdb/v1/testdata/test-create-user-with-password-generator.golden +++ b/internal/namespaces/rdb/v1/testdata/test-create-user-with-password-generator.golden @@ -2,10 +2,10 @@ 🟩🟩🟩 STDOUT️ 🟩🟩🟩️ Name cli-test IsAdmin false -Password bW}lqlAan/E%{0)RQ_Tz< +Password 'euFy@a7WM*rUq:PL%au& 🟩🟩🟩 JSON STDOUT 🟩🟩🟩 { "name": "cli-test", "is_admin": false, - "Password": "bW}lqlAan/E%{0)RQ_Tz\u003c" + "password": "'euFy@a7WM*rUq:PL%au\u0026" } diff --git a/internal/namespaces/rdb/v1/testdata/test-update-user-simple.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-update-user-simple.cassette.yaml index 5f921b4100..bb3a020da3 100644 --- a/internal/namespaces/rdb/v1/testdata/test-update-user-simple.cassette.yaml +++ b/internal/namespaces/rdb/v1/testdata/test-update-user-simple.cassette.yaml @@ -2,14 +2,14 @@ version: 1 interactions: - request: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' form: {} headers: Content-Type: @@ -19,14 +19,14 @@ interactions: url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances method: POST response: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -35,7 +35,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:34:53 GMT + - Tue, 16 May 2023 08:28:14 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -45,34 +45,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 640d9e91-29a5-4bce-ac1d-5e205c4593ea + - 46c99ac1-a976-4236-99d2-3225963f2b08 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/75e11d73-b88c-4a5e-8cd2-247b6873aec4 method: GET response: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -81,7 +81,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:34:53 GMT + - Tue, 16 May 2023 08:28:14 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -91,34 +91,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - d2027a9b-0434-4315-bd38-0a59959044a8 + - 9203450b-0fa9-422d-880f-9a05127aeb04 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/75e11d73-b88c-4a5e-8cd2-247b6873aec4 method: GET response: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -127,7 +127,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:35:08 GMT + - Tue, 16 May 2023 08:28:29 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -137,34 +137,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - b6714bce-046d-447d-9b7a-c507baf1a260 + - cf80724b-6bc5-44b5-a258-e79329524c7f status: 200 OK code: 200 duration: "" - request: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/75e11d73-b88c-4a5e-8cd2-247b6873aec4 method: GET response: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -173,7 +173,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:35:23 GMT + - Tue, 16 May 2023 08:28:44 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -183,34 +183,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 29d373d3-3d61-429c-b429-99acffb3ee89 + - 07a72e08-58f4-4444-9aad-33a87864e057 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/75e11d73-b88c-4a5e-8cd2-247b6873aec4 method: GET response: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -219,7 +219,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:35:39 GMT + - Tue, 16 May 2023 08:29:00 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -229,34 +229,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 31f5d18f-b399-48b6-abc2-d9051bdc92c1 + - 64d969c5-777a-4ad5-95b4-e5e30ef1145d status: 200 OK code: 200 duration: "" - request: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/75e11d73-b88c-4a5e-8cd2-247b6873aec4 method: GET response: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -265,7 +265,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:35:54 GMT + - Tue, 16 May 2023 08:29:15 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -275,34 +275,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 6bf24837-6f45-465c-ba52-f85e614e2517 + - b7f71898-8d0c-4e7c-a381-c1c4d8bb6c55 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/75e11d73-b88c-4a5e-8cd2-247b6873aec4 method: GET response: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -311,7 +311,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:36:09 GMT + - Tue, 16 May 2023 08:29:30 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -321,34 +321,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 759b9164-17b3-4ee8-8587-b56cf9f58531 + - 50dec969-45ec-4536-b309-14f2fdecd856 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/75e11d73-b88c-4a5e-8cd2-247b6873aec4 method: GET response: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -357,7 +357,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:36:24 GMT + - Tue, 16 May 2023 08:29:45 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -367,34 +367,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a0e34f93-3b36-482a-8d89-af27a3244946 + - 5dc8c335-1fd6-4319-9073-2b8e40a879f6 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/75e11d73-b88c-4a5e-8cd2-247b6873aec4 method: GET response: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -403,7 +403,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:36:39 GMT + - Tue, 16 May 2023 08:30:00 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -413,34 +413,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 36cd341a-c568-489f-8dbf-cdaef80a540e + - 3daf6783-1802-4429-84c9-1c461433d1b4 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/75e11d73-b88c-4a5e-8cd2-247b6873aec4 method: GET response: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -449,7 +449,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:36:54 GMT + - Tue, 16 May 2023 08:30:15 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -459,34 +459,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 607490f4-8d1b-48b6-91b9-fe664d66f50b + - 2d9f3619-ce20-4971-b345-6f890d09b73e status: 200 OK code: 200 duration: "" - request: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/75e11d73-b88c-4a5e-8cd2-247b6873aec4 method: GET response: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -495,7 +495,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:37:09 GMT + - Tue, 16 May 2023 08:30:30 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -505,228 +505,44 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 69d8c097-4a86-403d-90aa-a8bda3d24c3c + - f7f852d6-038c-4056-b276-91cfc77ef827 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", - "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", - "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], - "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, - "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, - "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 - method: GET - response: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", - "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", - "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], - "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, - "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, - "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' - headers: - Content-Length: - - "690" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 15 May 2023 21:37:24 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - faedc6ae-84dc-454a-b1f2-d31aad297a4d - status: 200 OK - code: 200 - duration: "" -- request: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", - "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", - "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], - "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, - "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, - "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 - method: GET - response: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", - "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", - "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], - "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, - "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, - "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' - headers: - Content-Length: - - "690" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 15 May 2023 21:37:39 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 0e1cd34b-31c2-4519-8ffd-154816b0d910 - status: 200 OK - code: 200 - duration: "" -- request: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", - "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", - "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], - "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, - "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, - "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 - method: GET - response: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", - "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", - "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], - "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, - "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, - "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' - headers: - Content-Length: - - "690" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 15 May 2023 21:37:55 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 0b1636a0-7c5a-4ec8-9a59-98453d8dca5a - status: 200 OK - code: 200 - duration: "" -- request: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", - "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", - "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], - "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, - "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, - "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 - method: GET - response: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", - "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", - "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], - "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, - "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, - "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' - headers: - Content-Length: - - "690" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Mon, 15 May 2023 21:38:10 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - da22f7ca-d763-4b7d-905d-fe534e548eb4 - status: 200 OK - code: 200 - duration: "" -- request: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"ready", "engine":"PostgreSQL-12", - "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":5974, "name":null, - "id":"495c60e5-9a6a-4309-af26-e346694b6aab", "load_balancer":{}}, "tags":[], + "upgradable_version":[], "endpoint":{"ip":"51.159.113.51", "port":29193, "name":null, + "id":"c7f14b26-b399-463a-82ab-474fb4bb7329", "load_balancer":{}}, "tags":[], "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", - "port":5974, "name":null, "id":"495c60e5-9a6a-4309-af26-e346694b6aab", "load_balancer":{}}], + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.113.51", + "port":29193, "name":null, "id":"c7f14b26-b399-463a-82ab-474fb4bb7329", "load_balancer":{}}], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, - "maintenances":[], "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "maintenances":[], "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/75e11d73-b88c-4a5e-8cd2-247b6873aec4 method: GET response: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"ready", "engine":"PostgreSQL-12", - "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":5974, "name":null, - "id":"495c60e5-9a6a-4309-af26-e346694b6aab", "load_balancer":{}}, "tags":[], + "upgradable_version":[], "endpoint":{"ip":"51.159.113.51", "port":29193, "name":null, + "id":"c7f14b26-b399-463a-82ab-474fb4bb7329", "load_balancer":{}}, "tags":[], "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", - "port":5974, "name":null, "id":"495c60e5-9a6a-4309-af26-e346694b6aab", "load_balancer":{}}], + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.113.51", + "port":29193, "name":null, "id":"c7f14b26-b399-463a-82ab-474fb4bb7329", "load_balancer":{}}], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, - "maintenances":[], "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "maintenances":[], "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' headers: Content-Length: - "1182" @@ -735,7 +551,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:38:25 GMT + - Tue, 16 May 2023 08:30:45 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -745,7 +561,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - e361a846-d87d-4ae7-82d7-35c4aa78afaa + - 7cd3af76-19dd-42a8-a151-5a7efed8eef9 status: 200 OK code: 200 duration: "" @@ -757,7 +573,7 @@ interactions: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045/users + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/75e11d73-b88c-4a5e-8cd2-247b6873aec4/users method: POST response: body: '{"name":"cli-test", "is_admin":false}' @@ -769,7 +585,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:38:25 GMT + - Tue, 16 May 2023 08:30:45 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -779,7 +595,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 39dd7851-3fda-4003-8d2e-26839d8a314b + - 5cd18d09-969c-4b03-9f05-9eefba324045 status: 200 OK code: 200 duration: "" @@ -791,7 +607,7 @@ interactions: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045/users/cli-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/75e11d73-b88c-4a5e-8cd2-247b6873aec4/users/cli-test method: PATCH response: body: '{"name":"cli-test", "is_admin":true}' @@ -803,7 +619,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:38:25 GMT + - Tue, 16 May 2023 08:30:45 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -813,44 +629,44 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1ead698f-e9a6-413e-8477-c5dfa7e76e19 + - 286f630d-0d2e-44f9-9b53-f612ad47858a status: 200 OK code: 200 duration: "" - request: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"deleting", "engine":"PostgreSQL-12", - "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":5974, "name":null, - "id":"495c60e5-9a6a-4309-af26-e346694b6aab", "load_balancer":{}}, "tags":[], + "upgradable_version":[], "endpoint":{"ip":"51.159.113.51", "port":29193, "name":null, + "id":"c7f14b26-b399-463a-82ab-474fb4bb7329", "load_balancer":{}}, "tags":[], "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", - "port":5974, "name":null, "id":"495c60e5-9a6a-4309-af26-e346694b6aab", "load_balancer":{}}], + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.113.51", + "port":29193, "name":null, "id":"c7f14b26-b399-463a-82ab-474fb4bb7329", "load_balancer":{}}], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, - "maintenances":[], "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "maintenances":[], "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/05070e26-e50b-4b65-894b-50f7ae43c045 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/75e11d73-b88c-4a5e-8cd2-247b6873aec4 method: DELETE response: - body: '{"id":"05070e26-e50b-4b65-894b-50f7ae43c045", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"75e11d73-b88c-4a5e-8cd2-247b6873aec4", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"deleting", "engine":"PostgreSQL-12", - "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":5974, "name":null, - "id":"495c60e5-9a6a-4309-af26-e346694b6aab", "load_balancer":{}}, "tags":[], + "upgradable_version":[], "endpoint":{"ip":"51.159.113.51", "port":29193, "name":null, + "id":"c7f14b26-b399-463a-82ab-474fb4bb7329", "load_balancer":{}}, "tags":[], "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", - "port":5974, "name":null, "id":"495c60e5-9a6a-4309-af26-e346694b6aab", "load_balancer":{}}], + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.113.51", + "port":29193, "name":null, "id":"c7f14b26-b399-463a-82ab-474fb4bb7329", "load_balancer":{}}], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, - "maintenances":[], "created_at":"2023-05-15T21:34:53.355087Z", "region":"fr-par"}' + "maintenances":[], "created_at":"2023-05-16T08:28:14.168101Z", "region":"fr-par"}' headers: Content-Length: - "1185" @@ -859,7 +675,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:38:26 GMT + - Tue, 16 May 2023 08:30:46 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -869,7 +685,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 44695e6c-8ca3-4672-a5b4-a0794ecc2651 + - ec1a2df3-088f-45a5-ad1b-870bf17c7eb1 status: 200 OK code: 200 duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-update-user-simple.golden b/internal/namespaces/rdb/v1/testdata/test-update-user-simple.golden index c2d1144032..c6f74ebced 100644 --- a/internal/namespaces/rdb/v1/testdata/test-update-user-simple.golden +++ b/internal/namespaces/rdb/v1/testdata/test-update-user-simple.golden @@ -7,5 +7,5 @@ Password Newp1ssw0rd! { "name": "cli-test", "is_admin": true, - "Password": "Newp1ssw0rd!" + "password": "Newp1ssw0rd!" } diff --git a/internal/namespaces/rdb/v1/testdata/test-update-user-with-password-generator.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-update-user-with-password-generator.cassette.yaml index c74ede052b..ccb1a57dba 100644 --- a/internal/namespaces/rdb/v1/testdata/test-update-user-with-password-generator.cassette.yaml +++ b/internal/namespaces/rdb/v1/testdata/test-update-user-with-password-generator.cassette.yaml @@ -2,14 +2,14 @@ version: 1 interactions: - request: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' form: {} headers: Content-Type: @@ -19,14 +19,14 @@ interactions: url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances method: POST response: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -35,7 +35,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:38:56 GMT + - Tue, 16 May 2023 08:31:41 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -45,34 +45,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f7c7e188-624b-49f0-b0ba-5815caa4fd70 + - 805a6377-83ef-4947-964a-773cbea8f0f1 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0 method: GET response: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -81,7 +81,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:38:57 GMT + - Tue, 16 May 2023 08:31:42 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -91,34 +91,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 4e475185-233b-46c2-900d-f719da5fdcdc + - 48577142-c671-47d5-b2f2-7d193df08229 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0 method: GET response: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -127,7 +127,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:39:12 GMT + - Tue, 16 May 2023 08:31:57 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -137,34 +137,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 2a14eccc-4cfe-417e-8023-789093e9c713 + - b785c5e4-7516-42d8-b5a5-16be99ad0aa1 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", - "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0 method: GET response: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", - "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"provisioning", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -173,7 +173,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:39:27 GMT + - Tue, 16 May 2023 08:32:12 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -183,34 +183,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 9aeab144-9263-4fbf-b80b-ca9727712d76 + - 21921fda-4b25-4cc7-b146-ef6cbfbbc6c5 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0 method: GET response: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -219,7 +219,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:39:42 GMT + - Tue, 16 May 2023 08:32:27 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -229,34 +229,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 29cc3dd3-0972-47b1-8e29-33eff7fa7389 + - d01bd57d-d4f4-4616-b456-4b7d41827174 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0 method: GET response: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -265,7 +265,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:39:57 GMT + - Tue, 16 May 2023 08:32:42 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -275,34 +275,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - faf1ac6e-83f7-4c11-85b8-70d9fa9c12e4 + - a63e4f56-3b67-432c-aaf8-eaf53c0f6334 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0 method: GET response: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -311,7 +311,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:40:12 GMT + - Tue, 16 May 2023 08:32:57 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -321,34 +321,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - e12fbe01-1076-4ada-a95b-775e58f9b197 + - ac9c9944-c7a3-4714-9b06-7e2d1e85dc5a status: 200 OK code: 200 duration: "" - request: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0 method: GET response: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -357,7 +357,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:40:27 GMT + - Tue, 16 May 2023 08:33:13 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -367,34 +367,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 5f1e599a-4d38-49f9-b1d1-af801e7f5be7 + - 9d75f77a-1131-4695-b379-e8f7ab262db8 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0 method: GET response: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -403,7 +403,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:40:42 GMT + - Tue, 16 May 2023 08:33:28 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -413,34 +413,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a750c188-26c2-4b1e-866a-0d1422e87bad + - 56aef775-d491-4ea6-a10d-8620749fdada status: 200 OK code: 200 duration: "" - request: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0 method: GET response: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -449,7 +449,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:40:58 GMT + - Tue, 16 May 2023 08:33:43 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -459,34 +459,34 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 243675f5-49cd-4473-bfc8-8f6ef83dbe84 + - e94009cc-0587-44fe-b689-a6d7800f67a8 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0 method: GET response: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"initializing", "engine":"PostgreSQL-12", "upgradable_version":[], "endpoint":null, "tags":[], "settings":[], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", "size":5000000000}, "init_settings":[], "endpoints":[], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, "maintenances":[], - "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' headers: Content-Length: - "690" @@ -495,7 +495,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:41:13 GMT + - Tue, 16 May 2023 08:33:58 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -505,53 +505,53 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 4cc40d81-1f88-465e-8ffa-d5ada251aa9e + - eb1e8854-7de7-453d-87fc-ce1892633ac1 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"ready", "engine":"PostgreSQL-12", - "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":17163, "name":null, - "id":"bc7e7449-fb46-4f1a-bb89-7aba84760064", "load_balancer":{}}, "tags":[], + "upgradable_version":[], "endpoint":{"ip":"51.159.113.51", "port":21591, "name":null, + "id":"f6fed2a5-db35-4843-9927-1dbe217dbad0", "load_balancer":{}}, "tags":[], "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", - "port":17163, "name":null, "id":"bc7e7449-fb46-4f1a-bb89-7aba84760064", "load_balancer":{}}], + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.113.51", + "port":21591, "name":null, "id":"f6fed2a5-db35-4843-9927-1dbe217dbad0", "load_balancer":{}}], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, - "maintenances":[], "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "maintenances":[], "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0 method: GET response: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"ready", "engine":"PostgreSQL-12", - "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":17163, "name":null, - "id":"bc7e7449-fb46-4f1a-bb89-7aba84760064", "load_balancer":{}}, "tags":[], + "upgradable_version":[], "endpoint":{"ip":"51.159.113.51", "port":21591, "name":null, + "id":"f6fed2a5-db35-4843-9927-1dbe217dbad0", "load_balancer":{}}, "tags":[], "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", - "port":17163, "name":null, "id":"bc7e7449-fb46-4f1a-bb89-7aba84760064", "load_balancer":{}}], + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.113.51", + "port":21591, "name":null, "id":"f6fed2a5-db35-4843-9927-1dbe217dbad0", "load_balancer":{}}], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, - "maintenances":[], "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "maintenances":[], "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' headers: Content-Length: - - "1184" + - "1182" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 15 May 2023 21:41:28 GMT + - Tue, 16 May 2023 08:34:13 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -561,7 +561,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 93e65d22-7b86-4015-abfc-cbf789766e8e + - 31df033f-eb78-4b15-9bc5-82d5a48f6dd1 status: 200 OK code: 200 duration: "" @@ -573,7 +573,7 @@ interactions: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9/users + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0/users method: POST response: body: '{"name":"cli-test", "is_admin":false}' @@ -585,7 +585,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:41:28 GMT + - Tue, 16 May 2023 08:34:13 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -595,7 +595,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 7abece91-3d8b-4fcf-83a9-9c35fbbec520 + - 34d22543-802a-480c-83e6-353362d7594a status: 200 OK code: 200 duration: "" @@ -607,7 +607,7 @@ interactions: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9/users/cli-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0/users/cli-test method: PATCH response: body: '{"name":"cli-test", "is_admin":true}' @@ -619,7 +619,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 15 May 2023 21:41:28 GMT + - Tue, 16 May 2023 08:34:13 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -629,53 +629,53 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 7eee3137-eacd-4b04-9fa1-b5116b413a3b + - efc56d44-6014-4a51-b6db-a3ad1a0dcbe0 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"deleting", "engine":"PostgreSQL-12", - "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":17163, "name":null, - "id":"bc7e7449-fb46-4f1a-bb89-7aba84760064", "load_balancer":{}}, "tags":[], + "upgradable_version":[], "endpoint":{"ip":"51.159.113.51", "port":21591, "name":null, + "id":"f6fed2a5-db35-4843-9927-1dbe217dbad0", "load_balancer":{}}, "tags":[], "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", - "port":17163, "name":null, "id":"bc7e7449-fb46-4f1a-bb89-7aba84760064", "load_balancer":{}}], + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.113.51", + "port":21591, "name":null, "id":"f6fed2a5-db35-4843-9927-1dbe217dbad0", "load_balancer":{}}], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, - "maintenances":[], "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "maintenances":[], "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/65cd6fa8-9f30-47d1-95c7-4e48e49e90b9 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0 method: DELETE response: - body: '{"id":"65cd6fa8-9f30-47d1-95c7-4e48e49e90b9", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + body: '{"id":"a5e1bbb3-ba37-4fb8-b27b-f0ac26bd48c0", "name":"cli-test", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "status":"deleting", "engine":"PostgreSQL-12", - "upgradable_version":[], "endpoint":{"ip":"51.159.112.115", "port":17163, "name":null, - "id":"bc7e7449-fb46-4f1a-bb89-7aba84760064", "load_balancer":{}}, "tags":[], + "upgradable_version":[], "endpoint":{"ip":"51.159.113.51", "port":21591, "name":null, + "id":"f6fed2a5-db35-4843-9927-1dbe217dbad0", "load_balancer":{}}, "tags":[], "settings":[{"name":"effective_cache_size", "value":"1300"}, {"name":"maintenance_work_mem", "value":"150"}, {"name":"max_connections", "value":"100"}, {"name":"max_parallel_workers", "value":"0"}, {"name":"max_parallel_workers_per_gather", "value":"0"}, {"name":"work_mem", "value":"4"}], "backup_schedule":{"frequency":24, "retention":7, "disabled":false}, "is_ha_cluster":false, "read_replicas":[], "node_type":"db-dev-s", "volume":{"type":"lssd", - "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.112.115", - "port":17163, "name":null, "id":"bc7e7449-fb46-4f1a-bb89-7aba84760064", "load_balancer":{}}], + "size":5000000000}, "init_settings":[], "endpoints":[{"ip":"51.159.113.51", + "port":21591, "name":null, "id":"f6fed2a5-db35-4843-9927-1dbe217dbad0", "load_balancer":{}}], "logs_policy":{"max_age_retention":30, "total_disk_retention":null}, "backup_same_region":false, - "maintenances":[], "created_at":"2023-05-15T21:38:56.543016Z", "region":"fr-par"}' + "maintenances":[], "created_at":"2023-05-16T08:31:41.584517Z", "region":"fr-par"}' headers: Content-Length: - - "1187" + - "1185" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Mon, 15 May 2023 21:41:28 GMT + - Tue, 16 May 2023 08:34:14 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -685,7 +685,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 2658ccdc-7dc0-45ab-a744-81843b27cdab + - a653b080-59f4-45b0-88a1-43a67f912c55 status: 200 OK code: 200 duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-update-user-with-password-generator.golden b/internal/namespaces/rdb/v1/testdata/test-update-user-with-password-generator.golden index 44579bf058..1bfacb8393 100644 --- a/internal/namespaces/rdb/v1/testdata/test-update-user-with-password-generator.golden +++ b/internal/namespaces/rdb/v1/testdata/test-update-user-with-password-generator.golden @@ -2,10 +2,10 @@ 🟩🟩🟩 STDOUT️ 🟩🟩🟩️ Name cli-test IsAdmin true -Password q0;D[(OdOt_4Vzq:5SIJ' +Password NVfpBVo>6W#)oVQmD#mtc 🟩🟩🟩 JSON STDOUT 🟩🟩🟩 { "name": "cli-test", "is_admin": true, - "Password": "q0;D[(OdOt_4Vzq:5SIJ'" + "password": "NVfpBVo\u003e6W#)oVQmD#mtc" } From 6e361ee40bec40e09713af1b62a3feb2e238745f Mon Sep 17 00:00:00 2001 From: Yacine FODIL Date: Tue, 16 May 2023 10:59:22 +0200 Subject: [PATCH 3/3] consistent arguments order --- cmd/scw/testdata/test-all-usage-rdb-user-create-usage.golden | 2 +- cmd/scw/testdata/test-all-usage-rdb-user-update-usage.golden | 2 +- docs/commands/rdb.md | 4 ++-- internal/namespaces/rdb/v1/custom_user.go | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/scw/testdata/test-all-usage-rdb-user-create-usage.golden b/cmd/scw/testdata/test-all-usage-rdb-user-create-usage.golden index 348ccc5419..3662dcaac8 100644 --- a/cmd/scw/testdata/test-all-usage-rdb-user-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-rdb-user-create-usage.golden @@ -8,8 +8,8 @@ USAGE: ARGS: instance-id UUID of the Database Instance in which you want to create a user [name] Name of the user you want to create - [password] Password of the user you want to create [generate-password=true] Will generate a 21 character-length password that contains a mix of upper/lower case letters, numbers and special symbols + [password] Password of the user you want to create [is-admin] Defines whether the user will have administrative privileges [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) diff --git a/cmd/scw/testdata/test-all-usage-rdb-user-update-usage.golden b/cmd/scw/testdata/test-all-usage-rdb-user-update-usage.golden index 85833a1bfb..1a6b20d5b9 100644 --- a/cmd/scw/testdata/test-all-usage-rdb-user-update-usage.golden +++ b/cmd/scw/testdata/test-all-usage-rdb-user-update-usage.golden @@ -8,8 +8,8 @@ USAGE: ARGS: instance-id UUID of the Database Instance the user belongs to name Name of the database user - [password] Password of the database user [generate-password=true] Will generate a 21 character-length password that contains a mix of upper/lower case letters, numbers and special symbols + [password] Password of the database user [is-admin] Defines whether or not this user got administrative privileges [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) diff --git a/docs/commands/rdb.md b/docs/commands/rdb.md index 8ceef8fa12..30496e1a4c 100644 --- a/docs/commands/rdb.md +++ b/docs/commands/rdb.md @@ -1514,8 +1514,8 @@ scw rdb user create [arg=value ...] |------|---|-------------| | instance-id | Required | UUID of the Database Instance in which you want to create a user | | name | | Name of the user you want to create | -| password | | Password of the user you want to create | | generate-password | Default: `true` | Will generate a 21 character-length password that contains a mix of upper/lower case letters, numbers and special symbols | +| password | | Password of the user you want to create | | is-admin | | Defines whether the user will have administrative privileges | | region | Default: `fr-par`
One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config | @@ -1581,8 +1581,8 @@ scw rdb user update [arg=value ...] |------|---|-------------| | instance-id | Required | UUID of the Database Instance the user belongs to | | name | Required | Name of the database user | -| password | | Password of the database user | | generate-password | Default: `true` | Will generate a 21 character-length password that contains a mix of upper/lower case letters, numbers and special symbols | +| password | | Password of the database user | | is-admin | | Defines whether or not this user got administrative privileges | | region | Default: `fr-par`
One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config | diff --git a/internal/namespaces/rdb/v1/custom_user.go b/internal/namespaces/rdb/v1/custom_user.go index 28a69ab263..44287c560f 100644 --- a/internal/namespaces/rdb/v1/custom_user.go +++ b/internal/namespaces/rdb/v1/custom_user.go @@ -95,7 +95,7 @@ func userCreateBuilder(c *core.Command) *core.Command { Password string `json:"password"` } - c.ArgSpecs.AddBefore("is-admin", &core.ArgSpec{ + c.ArgSpecs.AddBefore("password", &core.ArgSpec{ Name: "generate-password", Short: `Will generate a 21 character-length password that contains a mix of upper/lower case letters, numbers and special symbols`, Required: false, @@ -149,7 +149,7 @@ func userUpdateBuilder(c *core.Command) *core.Command { Password string `json:"password"` } - c.ArgSpecs.AddBefore("is-admin", &core.ArgSpec{ + c.ArgSpecs.AddBefore("password", &core.ArgSpec{ Name: "generate-password", Short: `Will generate a 21 character-length password that contains a mix of upper/lower case letters, numbers and special symbols`, Required: false,