From e72a1d62d30388895e7bb40c913fbfc0354bcd64 Mon Sep 17 00:00:00 2001 From: Yacine FODIL Date: Thu, 3 Nov 2022 16:23:35 +0100 Subject: [PATCH 1/7] feat(rdb): rename ACL add/delete arguments --- .../test-all-usage-rdb-acl-add-usage.golden | 8 +- ...test-all-usage-rdb-acl-delete-usage.golden | 6 +- docs/commands/rdb.md | 6 +- internal/namespaces/rdb/v1/custom_acl.go | 42 ++- internal/namespaces/rdb/v1/custom_acl_test.go | 31 +- .../test-add-acl-simple.cassette.yaml | 272 +++++++------- .../v1/testdata/test-add-acl-simple.golden | 8 +- .../test-delete-acl-simple.cassette.yaml | 339 +++++++++++------- .../v1/testdata/test-delete-acl-simple.golden | 47 ++- 9 files changed, 440 insertions(+), 319 deletions(-) diff --git a/cmd/scw/testdata/test-all-usage-rdb-acl-add-usage.golden b/cmd/scw/testdata/test-all-usage-rdb-acl-add-usage.golden index 8f293ae721..628db5fb3d 100644 --- a/cmd/scw/testdata/test-all-usage-rdb-acl-add-usage.golden +++ b/cmd/scw/testdata/test-all-usage-rdb-acl-add-usage.golden @@ -6,10 +6,10 @@ USAGE: scw rdb acl add [arg=value ...] ARGS: - instance-id UUID of the instance you want to add acl rules to - [rules.{index}.ip] - [rules.{index}.description] - [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 instance you want to add acl rules to + [rule.{index}.ip] + [rule.{index}.description] + [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 add diff --git a/cmd/scw/testdata/test-all-usage-rdb-acl-delete-usage.golden b/cmd/scw/testdata/test-all-usage-rdb-acl-delete-usage.golden index 77100077ba..adaeec9b77 100644 --- a/cmd/scw/testdata/test-all-usage-rdb-acl-delete-usage.golden +++ b/cmd/scw/testdata/test-all-usage-rdb-acl-delete-usage.golden @@ -6,9 +6,9 @@ USAGE: scw rdb acl delete [arg=value ...] ARGS: - instance-id UUID of the instance you want to delete an ACL rules from - acl-rule-ips.{index} ACL rules IP present on the instance - [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 instance you want to delete an ACL rules from + rule.{index}.ip ACL rules IP present on the instance + [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 delete diff --git a/docs/commands/rdb.md b/docs/commands/rdb.md index 3d0a5f7cd2..d092d120e7 100644 --- a/docs/commands/rdb.md +++ b/docs/commands/rdb.md @@ -88,8 +88,8 @@ scw rdb acl add [arg=value ...] | Name | | Description | |------|---|-------------| | instance-id | Required | UUID of the instance you want to add acl rules to | -| rules.{index}.ip | | | -| rules.{index}.description | | | +| rule.{index}.ip | | | +| rule.{index}.description | | | | 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 | @@ -110,7 +110,7 @@ scw rdb acl delete [arg=value ...] | Name | | Description | |------|---|-------------| | instance-id | Required | UUID of the instance you want to delete an ACL rules from | -| acl-rule-ips.{index} | Required | ACL rules IP present on the instance | +| rule.{index}.ip | Required | ACL rules IP present on the instance | | 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_acl.go b/internal/namespaces/rdb/v1/custom_acl.go index 89beeb80f6..ddba66c75e 100644 --- a/internal/namespaces/rdb/v1/custom_acl.go +++ b/internal/namespaces/rdb/v1/custom_acl.go @@ -2,6 +2,7 @@ package rdb import ( "context" + "reflect" "github.com/fatih/color" "github.com/scaleway/scaleway-cli/v2/internal/core" @@ -17,11 +18,27 @@ var ( ) func aclAddBuilder(c *core.Command) *core.Command { + type customAddACLRequest struct { + *rdb.AddInstanceACLRulesRequest + Rule []*rdb.ACLRuleRequest + } + + c.ArgSpecs.GetByName("rules.{index}.ip").Name = "rule.{index}.ip" + c.ArgSpecs.GetByName("rules.{index}.description").Name = "rule.{index}.description" + + c.ArgsType = reflect.TypeOf(customAddACLRequest{}) + c.Interceptor = func(ctx context.Context, argsI interface{}, runner core.CommandRunner) (interface{}, error) { - aclAddResponseI, err := runner(ctx, argsI) + args := argsI.(*customAddACLRequest) + + request := args.AddInstanceACLRulesRequest + request.Rules = args.Rule + + aclAddResponseI, err := runner(ctx, request) if err != nil { return nil, err } + aclAddResponse := aclAddResponseI.(*rdb.AddInstanceACLRulesResponse) return aclAddResponse.Rules, nil } @@ -30,11 +47,32 @@ func aclAddBuilder(c *core.Command) *core.Command { } func aclDeleteBuilder(c *core.Command) *core.Command { + type deleteRule struct { + IP string `json:"ip"` + } + + type customDeleteACLRequest struct { + *rdb.DeleteInstanceACLRulesRequest + Rule []deleteRule + } + + c.ArgSpecs.GetByName("acl-rule-ips.{index}").Name = "rule.{index}.ip" + + c.ArgsType = reflect.TypeOf(customDeleteACLRequest{}) + c.Interceptor = func(ctx context.Context, argsI interface{}, runner core.CommandRunner) (interface{}, error) { - aclDeleteResponseI, err := runner(ctx, argsI) + args := argsI.(*customDeleteACLRequest) + + request := args.DeleteInstanceACLRulesRequest + for _, ip := range args.Rule { + request.ACLRuleIPs = append(request.ACLRuleIPs, ip.IP) + } + + aclDeleteResponseI, err := runner(ctx, request) if err != nil { return nil, err } + aclDeleteResponse := aclDeleteResponseI.(*rdb.DeleteInstanceACLRulesResponse) return rdb.ListInstanceACLRulesResponse{ Rules: aclDeleteResponse.Rules, diff --git a/internal/namespaces/rdb/v1/custom_acl_test.go b/internal/namespaces/rdb/v1/custom_acl_test.go index e13163b448..6c25edf0ff 100644 --- a/internal/namespaces/rdb/v1/custom_acl_test.go +++ b/internal/namespaces/rdb/v1/custom_acl_test.go @@ -2,6 +2,7 @@ package rdb import ( "testing" + "time" "github.com/scaleway/scaleway-cli/v2/internal/core" ) @@ -10,9 +11,16 @@ func Test_AddACL(t *testing.T) { t.Run("Simple", core.Test(&core.TestConfig{ Commands: GetCommands(), BeforeFunc: createInstance("PostgreSQL-12"), - Cmd: "scw rdb acl add instance-id={{ .Instance.ID }} rules.0.ip=4.2.3.4", + Cmd: "scw rdb acl add instance-id={{ .Instance.ID }} rule.0.ip=4.2.3.4", Check: core.TestCheckGolden(), - AfterFunc: deleteInstance(), + AfterFunc: core.AfterFuncCombine( + // wait for ACL rule changes + func(ctx *core.AfterFuncCtx) error { + time.Sleep(5 * time.Second) + return nil + }, + deleteInstance(), + ), })) } @@ -21,10 +29,19 @@ func Test_DeleteACL(t *testing.T) { Commands: GetCommands(), BeforeFunc: core.BeforeFuncCombine( createInstance("PostgreSQL-12"), - core.ExecBeforeCmd("scw rdb acl add instance-id={{ .Instance.ID }} rules.0.ip=1.2.3.4"), + core.ExecBeforeCmd("scw rdb acl add instance-id={{ .Instance.ID }} rule.0.ip=1.2.3.4"), + func(ctx *core.BeforeFuncCtx) error { + time.Sleep(5 * time.Second) + return nil + }, ), - Cmd: "scw rdb acl remove instance-id={{ .Instance.ID }} acl-rule-ips.0=1.2.3.4", - Check: core.TestCheckGolden(), - AfterFunc: deleteInstance(), - })) + Cmd: "scw rdb acl delete instance-id={{ .Instance.ID }} rule.0.ip=1.2.3.4", + Check: core.TestCheckGolden(), + AfterFunc: core.AfterFuncCombine( + func(ctx *core.AfterFuncCtx) error { + time.Sleep(5 * time.Second) + return nil + }, + deleteInstance(), + )})) } diff --git a/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.cassette.yaml index fad898e3d9..bb0ea1da55 100644 --- a/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.cassette.yaml +++ b/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.cassette.yaml @@ -2,28 +2,28 @@ version: 1 interactions: - request: - body: '{"organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","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}' + body: '{"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","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}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances method: POST response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:39:44 GMT + - Thu, 03 Nov 2022 15:03:36 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -31,7 +31,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - bf5fdbf0-e3e4-4150-bc92-795317ef8d88 + - d1afd858-c934-4d4c-bdfd-33b4c87ca589 status: 200 OK code: 200 duration: "" @@ -40,22 +40,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:39:44 GMT + - Thu, 03 Nov 2022 15:03:36 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -63,7 +63,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - fd120fa7-acde-4303-a2aa-2c0287a8245b + - 68a17e20-b00d-435d-a53b-97eb331bd713 status: 200 OK code: 200 duration: "" @@ -72,22 +72,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:39:59 GMT + - Thu, 03 Nov 2022 15:03:51 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -95,7 +95,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - fe59a15b-4578-465d-a3bf-02103bcccd12 + - 50bff53e-f2e7-4085-b6e8-9063d95509f8 status: 200 OK code: 200 duration: "" @@ -104,22 +104,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:40:14 GMT + - Thu, 03 Nov 2022 15:04:06 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -127,7 +127,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a8ec5755-3707-45d9-8ba0-bf21e6d982f0 + - 83cf77ca-c030-4470-9044-477af9de1773 status: 200 OK code: 200 duration: "" @@ -136,22 +136,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:40:29 GMT + - Thu, 03 Nov 2022 15:04:21 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -159,7 +159,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 360d68c6-d4cb-40eb-9465-c33ce9c2385e + - ccf55f08-98d7-439e-be69-45fe5ff4e32e status: 200 OK code: 200 duration: "" @@ -168,22 +168,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:40:45 GMT + - Thu, 03 Nov 2022 15:04:36 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -191,7 +191,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 9e298685-eceb-472a-911c-bd16ab56ea46 + - 7ab8bed6-5e07-45b2-9d87-84f9a5430cff status: 200 OK code: 200 duration: "" @@ -200,22 +200,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:40:59 GMT + - Thu, 03 Nov 2022 15:04:51 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -223,7 +223,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 77455b1f-6135-493c-9f3f-009737c77e99 + - fd0f5a47-8ff7-47c1-8fa8-fdf4c054c1be status: 200 OK code: 200 duration: "" @@ -232,22 +232,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:41:14 GMT + - Thu, 03 Nov 2022 15:05:07 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -255,7 +255,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 7d427e97-5500-4346-ab31-7e3aa2d25070 + - f933d537-a484-44ef-aa24-5028970a3b23 status: 200 OK code: 200 duration: "" @@ -264,22 +264,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:41:29 GMT + - Thu, 03 Nov 2022 15:05:22 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -287,7 +287,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c3fc4c21-f4e5-487f-a2f6-c7b64a70f805 + - fdb068df-7ee0-40c6-9e26-ca6393800a61 status: 200 OK code: 200 duration: "" @@ -296,22 +296,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:41:45 GMT + - Thu, 03 Nov 2022 15:05:37 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -319,7 +319,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 50c09cdd-c580-45ce-a139-ed8c2e3e9a09 + - 35268a14-3d08-4b64-89db-53a66e741e53 status: 200 OK code: 200 duration: "" @@ -328,22 +328,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:42:00 GMT + - Thu, 03 Nov 2022 15:05:52 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -351,7 +351,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 2d54c07f-b1e6-4834-a9f8-d239b2bd0223 + - 419a40e7-853e-4d19-b301-570cdc68eb04 status: 200 OK code: 200 duration: "" @@ -360,22 +360,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:42:15 GMT + - Thu, 03 Nov 2022 15:06:07 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -383,7 +383,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 14a2f8b7-381b-47b1-b65e-a2541b3f667d + - e4304769-4b2f-40eb-b329-58e0c0c7bc6e status: 200 OK code: 200 duration: "" @@ -392,22 +392,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:42:30 GMT + - Thu, 03 Nov 2022 15:06:22 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -415,7 +415,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1531fbb5-b478-4cce-8c6d-1bf858a4f5e0 + - 6e230f37-cdc0-49e5-ba8e-3c6d0522b6ed status: 200 OK code: 200 duration: "" @@ -424,22 +424,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:42:45 GMT + - Thu, 03 Nov 2022 15:06:38 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -447,7 +447,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ad3833d0-850f-43b2-bc8c-08f8b9df9e3c + - 865fab64-2929-4bd9-858c-c266d682fafa status: 200 OK code: 200 duration: "" @@ -456,22 +456,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.57.149","port":44229,"name":null,"id":"5a00460b-986e-447f-a582-ad6bd00e9fb2","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.158.57.149","port":44229,"name":null,"id":"5a00460b-986e-447f-a582-ad6bd00e9fb2","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "1114" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:43:00 GMT + - Thu, 03 Nov 2022 15:06:53 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -479,39 +479,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - efb498b4-a1cc-49ad-82c7-ed815454af2a - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e - method: GET - response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.26.67","port":13989,"name":null},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' - headers: - Content-Length: - - "742" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 12 Aug 2020 08:43:15 GMT - Server: - - agw_listener_public_vip - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 197b7d05-3da5-4778-bb6b-82a049c53d8c + - 45d83277-eaf4-4456-abe6-080b3fa17e19 status: 200 OK code: 200 duration: "" @@ -522,24 +490,24 @@ interactions: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e/acls + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230/acls method: POST response: - body: '{"rules":[{"ip":"0.0.0.0/0","port":13989,"protocol":"tcp","direction":"inbound","action":"allow","description":"Allow - All"},{"ip":"4.2.3.4","port":13989,"protocol":"tcp","direction":"inbound","action":"allow","description":"IP + body: '{"rules":[{"ip":"0.0.0.0/0","port":44229,"protocol":"tcp","direction":"inbound","action":"allow","description":"Allow + All"},{"ip":"4.2.3.4/32","port":44229,"protocol":"tcp","direction":"inbound","action":"allow","description":"IP allowed"}]}' headers: Content-Length: - - "238" + - "241" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:43:18 GMT + - Thu, 03 Nov 2022 15:06:53 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -547,7 +515,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a54bf29d-7f3b-4357-be0b-fcbdb7d39112 + - ca70b3d4-3551-412e-9e1f-2da12fee39d1 status: 200 OK code: 200 duration: "" @@ -556,22 +524,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 method: DELETE response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"deleting","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.26.67","port":13989,"name":null},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":true},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"deleting","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.57.149","port":44229,"name":null,"id":"5a00460b-986e-447f-a582-ad6bd00e9fb2","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.158.57.149","port":44229,"name":null,"id":"5a00460b-986e-447f-a582-ad6bd00e9fb2","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' headers: Content-Length: - - "744" + - "1117" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:43:19 GMT + - Thu, 03 Nov 2022 15:06:58 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -579,7 +547,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - da453382-8f2b-4ad6-b5f4-a5b99c35d510 + - c05d8304-dc09-44ac-b171-33bccc7f0c32 status: 200 OK code: 200 duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.golden b/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.golden index cac765844e..40ca267d93 100644 --- a/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.golden +++ b/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.golden @@ -1,13 +1,13 @@ 🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 🟩🟩🟩 STDOUT️ 🟩🟩🟩️ IP PORT PROTOCOL DIRECTION ACTION DESCRIPTION -0.0.0.0/0 13989 tcp inbound allow Allow All -4.2.3.4/32 13989 tcp inbound allow IP allowed +0.0.0.0/0 44229 tcp inbound allow Allow All +4.2.3.4/32 44229 tcp inbound allow IP allowed 🟩🟩🟩 JSON STDOUT 🟩🟩🟩 [ { "ip": "0.0.0.0/0", - "port": 13989, + "port": 44229, "protocol": "tcp", "direction": "inbound", "action": "allow", @@ -15,7 +15,7 @@ IP PORT PROTOCOL DIRECTION ACTION DESCRIPTION }, { "ip": "4.2.3.4/32", - "port": 13989, + "port": 44229, "protocol": "tcp", "direction": "inbound", "action": "allow", diff --git a/internal/namespaces/rdb/v1/testdata/test-delete-acl-simple.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-delete-acl-simple.cassette.yaml index 5531efb43e..c56fcbaefa 100644 --- a/internal/namespaces/rdb/v1/testdata/test-delete-acl-simple.cassette.yaml +++ b/internal/namespaces/rdb/v1/testdata/test-delete-acl-simple.cassette.yaml @@ -2,28 +2,28 @@ version: 1 interactions: - request: - body: '{"organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","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}' + body: '{"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","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}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances method: POST response: - body: '{"id":"4586e032-ee31-4374-8d06-3f2b0b873590","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:52:36.292749Z","region":"fr-par"}' + body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:52:36 GMT + - Thu, 03 Nov 2022 15:13:59 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -31,7 +31,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - fb3d775d-2036-45e5-aaa2-c7f2d7d3dae7 + - 6aeb98d2-2b64-4558-b060-072fa82ffa83 status: 200 OK code: 200 duration: "" @@ -40,22 +40,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4586e032-ee31-4374-8d06-3f2b0b873590 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 method: GET response: - body: '{"id":"4586e032-ee31-4374-8d06-3f2b0b873590","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:52:36.292749Z","region":"fr-par"}' + body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:52:36 GMT + - Thu, 03 Nov 2022 15:13:59 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -63,7 +63,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 58de660e-11df-4305-8382-561260ebfba5 + - cfdc8596-1520-4035-9a5c-6d39345271a9 status: 200 OK code: 200 duration: "" @@ -72,22 +72,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4586e032-ee31-4374-8d06-3f2b0b873590 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 method: GET response: - body: '{"id":"4586e032-ee31-4374-8d06-3f2b0b873590","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:52:36.292749Z","region":"fr-par"}' + body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:52:52 GMT + - Thu, 03 Nov 2022 15:14:14 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -95,7 +95,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - af1a135a-84ee-46c2-ad67-4a15a6987cf1 + - dd70ebf4-7e72-423d-a242-5d68a4df2e7a status: 200 OK code: 200 duration: "" @@ -104,22 +104,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4586e032-ee31-4374-8d06-3f2b0b873590 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 method: GET response: - body: '{"id":"4586e032-ee31-4374-8d06-3f2b0b873590","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:52:36.292749Z","region":"fr-par"}' + body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:53:07 GMT + - Thu, 03 Nov 2022 15:14:29 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -127,7 +127,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 0675214b-f4cd-4082-bfb5-ca33ee2c0df6 + - b8acea79-ae79-4de5-9f03-a92a80003912 status: 200 OK code: 200 duration: "" @@ -136,22 +136,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4586e032-ee31-4374-8d06-3f2b0b873590 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 method: GET response: - body: '{"id":"4586e032-ee31-4374-8d06-3f2b0b873590","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:52:36.292749Z","region":"fr-par"}' + body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:53:21 GMT + - Thu, 03 Nov 2022 15:14:45 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -159,7 +159,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c19d8bbc-2f41-428c-b216-2300e1eac428 + - a74bf08a-7fd9-41bb-b7ae-51199411aa4b status: 200 OK code: 200 duration: "" @@ -168,22 +168,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4586e032-ee31-4374-8d06-3f2b0b873590 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 method: GET response: - body: '{"id":"4586e032-ee31-4374-8d06-3f2b0b873590","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:52:36.292749Z","region":"fr-par"}' + body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:53:37 GMT + - Thu, 03 Nov 2022 15:15:00 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -191,7 +191,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 409adeeb-1c1b-4df8-acb0-a5aecbc02b81 + - 28f132d1-2f01-482e-8e22-8f6ae487ebcf status: 200 OK code: 200 duration: "" @@ -200,22 +200,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4586e032-ee31-4374-8d06-3f2b0b873590 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 method: GET response: - body: '{"id":"4586e032-ee31-4374-8d06-3f2b0b873590","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:52:36.292749Z","region":"fr-par"}' + body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:53:52 GMT + - Thu, 03 Nov 2022 15:15:15 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -223,7 +223,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 09043bca-15b3-436e-bce7-f331f173fd67 + - 9ea7ab13-2cb4-4144-9d8e-6ee2202d6df4 status: 200 OK code: 200 duration: "" @@ -232,22 +232,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4586e032-ee31-4374-8d06-3f2b0b873590 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 method: GET response: - body: '{"id":"4586e032-ee31-4374-8d06-3f2b0b873590","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:52:36.292749Z","region":"fr-par"}' + body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:54:07 GMT + - Thu, 03 Nov 2022 15:15:30 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -255,7 +255,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f4c55172-5eae-4238-a8f2-11802c24d567 + - 35c981b9-b5c5-42dc-8f0d-305d1a238a50 status: 200 OK code: 200 duration: "" @@ -264,22 +264,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4586e032-ee31-4374-8d06-3f2b0b873590 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 method: GET response: - body: '{"id":"4586e032-ee31-4374-8d06-3f2b0b873590","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:52:36.292749Z","region":"fr-par"}' + body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:54:22 GMT + - Thu, 03 Nov 2022 15:15:45 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -287,7 +287,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ade91754-d062-470f-8353-747a1f75b02b + - 18461cda-ae5b-4916-895d-ea14df171900 status: 200 OK code: 200 duration: "" @@ -296,22 +296,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4586e032-ee31-4374-8d06-3f2b0b873590 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 method: GET response: - body: '{"id":"4586e032-ee31-4374-8d06-3f2b0b873590","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:52:36.292749Z","region":"fr-par"}' + body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:54:37 GMT + - Thu, 03 Nov 2022 15:16:00 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -319,7 +319,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 922025d8-ca41-479f-9197-5a466ba2aad9 + - ffdbb155-1b4f-4c89-aabd-edf1509d8703 status: 200 OK code: 200 duration: "" @@ -328,22 +328,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4586e032-ee31-4374-8d06-3f2b0b873590 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 method: GET response: - body: '{"id":"4586e032-ee31-4374-8d06-3f2b0b873590","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:52:36.292749Z","region":"fr-par"}' + body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:54:52 GMT + - Thu, 03 Nov 2022 15:16:15 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -351,7 +351,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - de90aed7-9f82-4842-a385-dea1de78f412 + - cb2d0653-76df-49d9-9cd0-8176857d2de5 status: 200 OK code: 200 duration: "" @@ -360,22 +360,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4586e032-ee31-4374-8d06-3f2b0b873590 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 method: GET response: - body: '{"id":"4586e032-ee31-4374-8d06-3f2b0b873590","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:52:36.292749Z","region":"fr-par"}' + body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:55:07 GMT + - Thu, 03 Nov 2022 15:16:30 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -383,7 +383,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 42a5aaf3-9af2-40da-840a-1fb6419336ab + - c23e594c-3d71-482e-99d9-481a9c993626 status: 200 OK code: 200 duration: "" @@ -392,22 +392,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4586e032-ee31-4374-8d06-3f2b0b873590 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 method: GET response: - body: '{"id":"4586e032-ee31-4374-8d06-3f2b0b873590","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:52:36.292749Z","region":"fr-par"}' + body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:55:22 GMT + - Thu, 03 Nov 2022 15:16:46 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -415,7 +415,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ea84fdcc-410e-46a9-9c1c-7cc88ee72257 + - 8b0d6df4-0033-439b-b2bd-a946a618bacf status: 200 OK code: 200 duration: "" @@ -424,22 +424,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4586e032-ee31-4374-8d06-3f2b0b873590 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 method: GET response: - body: '{"id":"4586e032-ee31-4374-8d06-3f2b0b873590","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:52:36.292749Z","region":"fr-par"}' + body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:55:37 GMT + - Thu, 03 Nov 2022 15:17:01 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -447,7 +447,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 2574a5d1-e91e-484d-bf61-8a8ee4e92231 + - 36ea5459-f492-41a3-8ca1-7cff7e803732 status: 200 OK code: 200 duration: "" @@ -456,22 +456,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4586e032-ee31-4374-8d06-3f2b0b873590 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 method: GET response: - body: '{"id":"4586e032-ee31-4374-8d06-3f2b0b873590","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"195.154.68.222","port":27678,"name":null},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:52:36.292749Z","region":"fr-par"}' + body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' headers: Content-Length: - - "744" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:55:53 GMT + - Thu, 03 Nov 2022 15:17:16 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -479,7 +479,71 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c33af946-5061-4433-9178-4d7b3ab45f9b + - bec230fb-4c4e-48e6-b708-7f56cadb4463 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 + method: GET + response: + body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' + headers: + Content-Length: + - "641" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 03 Nov 2022 15:17:31 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 374b2ee1-f391-43e6-a669-ce0a2f10b938 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 + method: GET + response: + body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.56.230","port":59061,"name":null,"id":"8b15f4bd-bcbf-4cb0-8853-2bf50b07bec8","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.158.56.230","port":59061,"name":null,"id":"8b15f4bd-bcbf-4cb0-8853-2bf50b07bec8","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' + headers: + Content-Length: + - "1114" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 03 Nov 2022 15:17:46 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - dc9ce99c-d638-4827-953c-578a2fac7dea status: 200 OK code: 200 duration: "" @@ -490,24 +554,59 @@ interactions: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4586e032-ee31-4374-8d06-3f2b0b873590/acls + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711/acls method: POST response: - body: '{"rules":[{"ip":"0.0.0.0/0","port":27678,"protocol":"tcp","direction":"inbound","action":"allow","description":"Allow - All"},{"ip":"1.2.3.4","port":27678,"protocol":"tcp","direction":"inbound","action":"allow","description":"IP + body: '{"rules":[{"ip":"0.0.0.0/0","port":59061,"protocol":"tcp","direction":"inbound","action":"allow","description":"Allow + All"},{"ip":"1.2.3.4/32","port":59061,"protocol":"tcp","direction":"inbound","action":"allow","description":"IP + allowed"}]}' + headers: + Content-Length: + - "241" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 03 Nov 2022 15:17:46 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1483ba2f-e006-47be-aa8b-4b79c27d6cf8 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"acl_rule_ips":["1.2.3.4"]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711/acls + method: DELETE + response: + body: '{"rules":[{"ip":"1.2.3.4/32","port":59061,"protocol":"tcp","direction":"inbound","action":"allow","description":"IP allowed"}]}' headers: Content-Length: - - "238" + - "127" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:55:55 GMT + - Thu, 03 Nov 2022 15:17:51 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -515,7 +614,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a378ebfd-45e1-477a-ba94-577d7cd95179 + - fcd2f1bd-8dc6-43cc-a78c-de225412ca50 status: 200 OK code: 200 duration: "" @@ -524,22 +623,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/4586e032-ee31-4374-8d06-3f2b0b873590 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 method: DELETE response: - body: '{"id":"4586e032-ee31-4374-8d06-3f2b0b873590","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"deleting","engine":"PostgreSQL-12","endpoint":{"ip":"195.154.68.222","port":27678,"name":null},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":true},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:52:36.292749Z","region":"fr-par"}' + body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"deleting","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.56.230","port":59061,"name":null,"id":"8b15f4bd-bcbf-4cb0-8853-2bf50b07bec8","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.158.56.230","port":59061,"name":null,"id":"8b15f4bd-bcbf-4cb0-8853-2bf50b07bec8","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' headers: Content-Length: - - "746" + - "1117" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:55:55 GMT + - Thu, 03 Nov 2022 15:17:57 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -547,7 +646,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - b5fb73d1-5969-4486-95d8-30dcc82bb266 + - 4247bb92-6718-40c6-af5b-457095366f5b status: 200 OK code: 200 duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-delete-acl-simple.golden b/internal/namespaces/rdb/v1/testdata/test-delete-acl-simple.golden index d88d197a1a..c2a3664104 100644 --- a/internal/namespaces/rdb/v1/testdata/test-delete-acl-simple.golden +++ b/internal/namespaces/rdb/v1/testdata/test-delete-acl-simple.golden @@ -1,24 +1,23 @@ -🎲🎲🎲 EXIT CODE: 1 🎲🎲🎲 -πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ -Network Access Control List allows to control network in and out traffic by setting up ACL rules. - -USAGE: - scw rdb acl - -AVAILABLE COMMANDS: - add Add an ACL instance to a given instance - delete Delete ACL rules of a given instance - list List ACL rules of a given instance - -FLAGS: - -h, --help help for acl - -GLOBAL FLAGS: - -c, --config string The path to the config file - -D, --debug Enable debug mode - -o, --output string Output format: json or human, see 'scw help output' for more info (default "human") - -p, --profile string The config profile to use - -Use "scw rdb acl [command] --help" for more information about a command. -πŸŸ₯πŸŸ₯πŸŸ₯ JSON STDERR πŸŸ₯πŸŸ₯πŸŸ₯ -{} +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +🟩🟩🟩 STDOUT️ 🟩🟩🟩️ +Rules.0.IP 1.2.3.4/32 +Rules.0.Port 59061 +Rules.0.Protocol tcp +Rules.0.Direction inbound +Rules.0.Action allow +Rules.0.Description IP allowed +TotalCount 1 +🟩🟩🟩 JSON STDOUT 🟩🟩🟩 +{ + "rules": [ + { + "ip": "1.2.3.4/32", + "port": 59061, + "protocol": "tcp", + "direction": "inbound", + "action": "allow", + "description": "IP allowed" + } + ], + "total_count": 1 +} From 8849d9bac3f8ab2929237feb514a6eaf5f4393d2 Mon Sep 17 00:00:00 2001 From: Yacine FODIL Date: Tue, 8 Nov 2022 09:26:13 +0100 Subject: [PATCH 2/7] add wait function --- internal/namespaces/rdb/v1/custom_acl.go | 35 +++ internal/namespaces/rdb/v1/custom_acl_test.go | 31 +-- .../test-add-acl-simple.cassette.yaml | 236 ++++++++++++----- .../v1/testdata/test-add-acl-simple.golden | 8 +- .../test-delete-acl-simple.cassette.yaml | 246 +++++++++++------- .../v1/testdata/test-delete-acl-simple.golden | 4 +- 6 files changed, 369 insertions(+), 191 deletions(-) diff --git a/internal/namespaces/rdb/v1/custom_acl.go b/internal/namespaces/rdb/v1/custom_acl.go index ddba66c75e..f42c2e2e02 100644 --- a/internal/namespaces/rdb/v1/custom_acl.go +++ b/internal/namespaces/rdb/v1/custom_acl.go @@ -8,6 +8,7 @@ import ( "github.com/scaleway/scaleway-cli/v2/internal/core" "github.com/scaleway/scaleway-cli/v2/internal/human" "github.com/scaleway/scaleway-sdk-go/api/rdb/v1" + "github.com/scaleway/scaleway-sdk-go/scw" ) var ( @@ -43,6 +44,23 @@ func aclAddBuilder(c *core.Command) *core.Command { return aclAddResponse.Rules, nil } + c.WaitFunc = func(ctx context.Context, argsI, respI interface{}) (interface{}, error) { + args := argsI.(*customAddACLRequest) + + api := rdb.NewAPI(core.ExtractClient(ctx)) + _, err := api.WaitForInstance(&rdb.WaitForInstanceRequest{ + InstanceID: args.InstanceID, + Region: args.Region, + Timeout: scw.TimeDurationPtr(instanceActionTimeout), + RetryInterval: core.DefaultRetryInterval, + }) + if err != nil { + return nil, err + } + + return respI.([]*rdb.ACLRule), nil + } + return c } @@ -80,5 +98,22 @@ func aclDeleteBuilder(c *core.Command) *core.Command { }, nil } + c.WaitFunc = func(ctx context.Context, argsI, respI interface{}) (interface{}, error) { + args := argsI.(*customDeleteACLRequest) + + api := rdb.NewAPI(core.ExtractClient(ctx)) + _, err := api.WaitForInstance(&rdb.WaitForInstanceRequest{ + InstanceID: args.InstanceID, + Region: args.Region, + Timeout: scw.TimeDurationPtr(instanceActionTimeout), + RetryInterval: core.DefaultRetryInterval, + }) + if err != nil { + return nil, err + } + + return respI.(rdb.ListInstanceACLRulesResponse), nil + } + return c } diff --git a/internal/namespaces/rdb/v1/custom_acl_test.go b/internal/namespaces/rdb/v1/custom_acl_test.go index 6c25edf0ff..990796bfd1 100644 --- a/internal/namespaces/rdb/v1/custom_acl_test.go +++ b/internal/namespaces/rdb/v1/custom_acl_test.go @@ -2,7 +2,6 @@ package rdb import ( "testing" - "time" "github.com/scaleway/scaleway-cli/v2/internal/core" ) @@ -11,16 +10,9 @@ func Test_AddACL(t *testing.T) { t.Run("Simple", core.Test(&core.TestConfig{ Commands: GetCommands(), BeforeFunc: createInstance("PostgreSQL-12"), - Cmd: "scw rdb acl add instance-id={{ .Instance.ID }} rule.0.ip=4.2.3.4", + Cmd: "scw rdb acl add instance-id={{ .Instance.ID }} rule.0.ip=4.2.3.4 --wait", Check: core.TestCheckGolden(), - AfterFunc: core.AfterFuncCombine( - // wait for ACL rule changes - func(ctx *core.AfterFuncCtx) error { - time.Sleep(5 * time.Second) - return nil - }, - deleteInstance(), - ), + AfterFunc: deleteInstance(), })) } @@ -29,19 +21,10 @@ func Test_DeleteACL(t *testing.T) { Commands: GetCommands(), BeforeFunc: core.BeforeFuncCombine( createInstance("PostgreSQL-12"), - core.ExecBeforeCmd("scw rdb acl add instance-id={{ .Instance.ID }} rule.0.ip=1.2.3.4"), - func(ctx *core.BeforeFuncCtx) error { - time.Sleep(5 * time.Second) - return nil - }, + core.ExecBeforeCmd("scw rdb acl add instance-id={{ .Instance.ID }} rule.0.ip=1.2.3.4 --wait"), ), - Cmd: "scw rdb acl delete instance-id={{ .Instance.ID }} rule.0.ip=1.2.3.4", - Check: core.TestCheckGolden(), - AfterFunc: core.AfterFuncCombine( - func(ctx *core.AfterFuncCtx) error { - time.Sleep(5 * time.Second) - return nil - }, - deleteInstance(), - )})) + Cmd: "scw rdb acl delete instance-id={{ .Instance.ID }} rule.0.ip=1.2.3.4 --wait", + Check: core.TestCheckGolden(), + AfterFunc: deleteInstance(), + })) } diff --git a/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.cassette.yaml index bb0ea1da55..3e4e12094f 100644 --- a/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.cassette.yaml +++ b/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.cassette.yaml @@ -12,7 +12,7 @@ interactions: url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances method: POST response: - body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' + body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -21,7 +21,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:03:36 GMT + - Tue, 08 Nov 2022 03:20:19 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -31,7 +31,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - d1afd858-c934-4d4c-bdfd-33b4c87ca589 + - 7c3f510a-2544-4027-a230-bab9cbe9cbff status: 200 OK code: 200 duration: "" @@ -41,10 +41,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d method: GET response: - body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' + body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -53,7 +53,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:03:36 GMT + - Tue, 08 Nov 2022 03:20:20 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -63,7 +63,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 68a17e20-b00d-435d-a53b-97eb331bd713 + - cde4da23-7c1c-432e-8d78-c3ada4353caf status: 200 OK code: 200 duration: "" @@ -73,10 +73,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d method: GET response: - body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' + body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -85,7 +85,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:03:51 GMT + - Tue, 08 Nov 2022 03:20:35 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -95,7 +95,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 50bff53e-f2e7-4085-b6e8-9063d95509f8 + - 082741e5-a917-46f9-ba39-fcb128747a41 status: 200 OK code: 200 duration: "" @@ -105,10 +105,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d method: GET response: - body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' + body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -117,7 +117,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:04:06 GMT + - Tue, 08 Nov 2022 03:20:50 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -127,7 +127,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 83cf77ca-c030-4470-9044-477af9de1773 + - af206bd4-7d87-4327-914f-56d801369c29 status: 200 OK code: 200 duration: "" @@ -137,10 +137,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d method: GET response: - body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' + body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -149,7 +149,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:04:21 GMT + - Tue, 08 Nov 2022 03:21:05 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -159,7 +159,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ccf55f08-98d7-439e-be69-45fe5ff4e32e + - 1fb201a6-44a0-44e5-875e-8d5182b14d86 status: 200 OK code: 200 duration: "" @@ -169,10 +169,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d method: GET response: - body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' + body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -181,7 +181,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:04:36 GMT + - Tue, 08 Nov 2022 03:21:20 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -191,7 +191,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 7ab8bed6-5e07-45b2-9d87-84f9a5430cff + - 2142da27-c83a-43fc-8a15-8d376ee0bbb8 status: 200 OK code: 200 duration: "" @@ -201,10 +201,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d method: GET response: - body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' + body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -213,7 +213,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:04:51 GMT + - Tue, 08 Nov 2022 03:21:35 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -223,7 +223,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - fd0f5a47-8ff7-47c1-8fa8-fdf4c054c1be + - 8a9aea68-d490-444a-8bda-49819a833f8e status: 200 OK code: 200 duration: "" @@ -233,10 +233,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d method: GET response: - body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' + body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -245,7 +245,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:05:07 GMT + - Tue, 08 Nov 2022 03:21:50 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -255,7 +255,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f933d537-a484-44ef-aa24-5028970a3b23 + - 0c052441-9c7e-4d0a-ad35-9de17b14e129 status: 200 OK code: 200 duration: "" @@ -265,10 +265,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d method: GET response: - body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' + body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -277,7 +277,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:05:22 GMT + - Tue, 08 Nov 2022 03:22:05 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -287,7 +287,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - fdb068df-7ee0-40c6-9e26-ca6393800a61 + - 939b7a3d-c753-4165-b794-d124b61f3daf status: 200 OK code: 200 duration: "" @@ -297,10 +297,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d method: GET response: - body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' + body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -309,7 +309,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:05:37 GMT + - Tue, 08 Nov 2022 03:22:20 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -319,7 +319,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 35268a14-3d08-4b64-89db-53a66e741e53 + - 3e2265e6-4f84-4689-b092-60e5798669ce status: 200 OK code: 200 duration: "" @@ -329,10 +329,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d method: GET response: - body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' + body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -341,7 +341,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:05:52 GMT + - Tue, 08 Nov 2022 03:22:35 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -351,7 +351,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 419a40e7-853e-4d19-b301-570cdc68eb04 + - 12ac05f7-92c3-4e2b-a0a7-58c788962677 status: 200 OK code: 200 duration: "" @@ -361,10 +361,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d method: GET response: - body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' + body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -373,7 +373,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:06:07 GMT + - Tue, 08 Nov 2022 03:22:51 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -383,7 +383,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - e4304769-4b2f-40eb-b329-58e0c0c7bc6e + - ebe357f8-7407-4470-b441-ca3a7a6847e0 status: 200 OK code: 200 duration: "" @@ -393,10 +393,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d method: GET response: - body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' + body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -405,7 +405,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:06:22 GMT + - Tue, 08 Nov 2022 03:23:06 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -415,7 +415,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 6e230f37-cdc0-49e5-ba8e-3c6d0522b6ed + - 9ac3e65f-98cf-4a62-909a-7ff35f2bf7eb status: 200 OK code: 200 duration: "" @@ -425,10 +425,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d method: GET response: - body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' + body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -437,7 +437,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:06:38 GMT + - Tue, 08 Nov 2022 03:23:21 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -447,7 +447,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 865fab64-2929-4bd9-858c-c266d682fafa + - d7a49488-e0df-4e0a-a6f9-bac8201d79db status: 200 OK code: 200 duration: "" @@ -457,19 +457,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d method: GET response: - body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.57.149","port":44229,"name":null,"id":"5a00460b-986e-447f-a582-ad6bd00e9fb2","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.158.57.149","port":44229,"name":null,"id":"5a00460b-986e-447f-a582-ad6bd00e9fb2","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' + body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' headers: Content-Length: - - "1114" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:06:53 GMT + - Tue, 08 Nov 2022 03:23:36 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -479,7 +479,39 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 45d83277-eaf4-4456-abe6-080b3fa17e19 + - bd50cc77-b583-4b33-b685-cad14ab6db79 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d + method: GET + response: + body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.113.252","port":13757,"name":null,"id":"f66bc3f3-57da-4514-9725-984833fac6c9","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.113.252","port":13757,"name":null,"id":"f66bc3f3-57da-4514-9725-984833fac6c9","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' + headers: + Content-Length: + - "1116" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 08 Nov 2022 03:23:51 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6f628446-ef1c-43be-afe0-8b7bae959e64 status: 200 OK code: 200 duration: "" @@ -491,11 +523,11 @@ interactions: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230/acls + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d/acls method: POST response: - body: '{"rules":[{"ip":"0.0.0.0/0","port":44229,"protocol":"tcp","direction":"inbound","action":"allow","description":"Allow - All"},{"ip":"4.2.3.4/32","port":44229,"protocol":"tcp","direction":"inbound","action":"allow","description":"IP + body: '{"rules":[{"ip":"0.0.0.0/0","port":13757,"protocol":"tcp","direction":"inbound","action":"allow","description":"Allow + All"},{"ip":"4.2.3.4/32","port":13757,"protocol":"tcp","direction":"inbound","action":"allow","description":"IP allowed"}]}' headers: Content-Length: @@ -505,7 +537,71 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:06:53 GMT + - Tue, 08 Nov 2022 03:23:51 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9bd5340d-da62-4c86-95ba-73705271e153 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d + method: GET + response: + body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"configuring","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.113.252","port":13757,"name":null,"id":"f66bc3f3-57da-4514-9725-984833fac6c9","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.113.252","port":13757,"name":null,"id":"f66bc3f3-57da-4514-9725-984833fac6c9","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' + headers: + Content-Length: + - "1122" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 08 Nov 2022 03:23:51 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7d1c4289-ae34-4c6e-a329-0a4835d100d4 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d + method: GET + response: + body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.113.252","port":13757,"name":null,"id":"f66bc3f3-57da-4514-9725-984833fac6c9","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.113.252","port":13757,"name":null,"id":"f66bc3f3-57da-4514-9725-984833fac6c9","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' + headers: + Content-Length: + - "1116" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 08 Nov 2022 03:24:07 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -515,7 +611,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ca70b3d4-3551-412e-9e1f-2da12fee39d1 + - 7c7a9697-7f81-4697-b490-f67d18adcf6a status: 200 OK code: 200 duration: "" @@ -525,19 +621,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/c7311a6d-a7b5-4477-bf61-5f6acd852230 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d method: DELETE response: - body: '{"id":"c7311a6d-a7b5-4477-bf61-5f6acd852230","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"deleting","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.57.149","port":44229,"name":null,"id":"5a00460b-986e-447f-a582-ad6bd00e9fb2","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.158.57.149","port":44229,"name":null,"id":"5a00460b-986e-447f-a582-ad6bd00e9fb2","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:03:35.875028Z","region":"fr-par"}' + body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"deleting","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.113.252","port":13757,"name":null,"id":"f66bc3f3-57da-4514-9725-984833fac6c9","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.113.252","port":13757,"name":null,"id":"f66bc3f3-57da-4514-9725-984833fac6c9","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' headers: Content-Length: - - "1117" + - "1119" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:06:58 GMT + - Tue, 08 Nov 2022 03:24:07 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -547,7 +643,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c05d8304-dc09-44ac-b171-33bccc7f0c32 + - 3eeb9635-0816-4d96-a107-0304f0a85d5e status: 200 OK code: 200 duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.golden b/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.golden index 40ca267d93..8accdca0fd 100644 --- a/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.golden +++ b/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.golden @@ -1,13 +1,13 @@ 🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 🟩🟩🟩 STDOUT️ 🟩🟩🟩️ IP PORT PROTOCOL DIRECTION ACTION DESCRIPTION -0.0.0.0/0 44229 tcp inbound allow Allow All -4.2.3.4/32 44229 tcp inbound allow IP allowed +0.0.0.0/0 13757 tcp inbound allow Allow All +4.2.3.4/32 13757 tcp inbound allow IP allowed 🟩🟩🟩 JSON STDOUT 🟩🟩🟩 [ { "ip": "0.0.0.0/0", - "port": 44229, + "port": 13757, "protocol": "tcp", "direction": "inbound", "action": "allow", @@ -15,7 +15,7 @@ IP PORT PROTOCOL DIRECTION ACTION DESCRIPTION }, { "ip": "4.2.3.4/32", - "port": 44229, + "port": 13757, "protocol": "tcp", "direction": "inbound", "action": "allow", diff --git a/internal/namespaces/rdb/v1/testdata/test-delete-acl-simple.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-delete-acl-simple.cassette.yaml index c56fcbaefa..b0f5da59da 100644 --- a/internal/namespaces/rdb/v1/testdata/test-delete-acl-simple.cassette.yaml +++ b/internal/namespaces/rdb/v1/testdata/test-delete-acl-simple.cassette.yaml @@ -12,7 +12,7 @@ interactions: url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances method: POST response: - body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' + body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -21,7 +21,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:13:59 GMT + - Tue, 08 Nov 2022 03:54:16 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -31,7 +31,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 6aeb98d2-2b64-4558-b060-072fa82ffa83 + - f2a73329-cd4c-4294-a2e6-8ab0cd55d38f status: 200 OK code: 200 duration: "" @@ -41,10 +41,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab method: GET response: - body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' + body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -53,7 +53,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:13:59 GMT + - Tue, 08 Nov 2022 03:54:16 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -63,7 +63,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - cfdc8596-1520-4035-9a5c-6d39345271a9 + - ba9d802e-9fba-466f-bd6d-503408e13de7 status: 200 OK code: 200 duration: "" @@ -73,10 +73,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab method: GET response: - body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' + body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -85,7 +85,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:14:14 GMT + - Tue, 08 Nov 2022 03:54:31 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -95,7 +95,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - dd70ebf4-7e72-423d-a242-5d68a4df2e7a + - de350351-c9c9-4eca-8071-8389b122c80f status: 200 OK code: 200 duration: "" @@ -105,10 +105,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab method: GET response: - body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' + body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -117,7 +117,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:14:29 GMT + - Tue, 08 Nov 2022 03:54:46 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -127,7 +127,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - b8acea79-ae79-4de5-9f03-a92a80003912 + - c5f868f3-a51b-4ab8-999d-39bbe99ccea2 status: 200 OK code: 200 duration: "" @@ -137,10 +137,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab method: GET response: - body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' + body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -149,7 +149,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:14:45 GMT + - Tue, 08 Nov 2022 03:55:01 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -159,7 +159,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a74bf08a-7fd9-41bb-b7ae-51199411aa4b + - 779d0bf3-27bd-4f58-a9fa-95a0f0400755 status: 200 OK code: 200 duration: "" @@ -169,10 +169,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab method: GET response: - body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' + body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -181,7 +181,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:15:00 GMT + - Tue, 08 Nov 2022 03:55:16 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -191,7 +191,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 28f132d1-2f01-482e-8e22-8f6ae487ebcf + - c1d57fbc-3561-4d5a-b312-395756c4f725 status: 200 OK code: 200 duration: "" @@ -201,10 +201,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab method: GET response: - body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' + body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -213,7 +213,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:15:15 GMT + - Tue, 08 Nov 2022 03:55:32 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -223,7 +223,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 9ea7ab13-2cb4-4144-9d8e-6ee2202d6df4 + - fa5e867c-08e4-45a4-bb06-08e34c7890be status: 200 OK code: 200 duration: "" @@ -233,10 +233,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab method: GET response: - body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' + body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -245,7 +245,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:15:30 GMT + - Tue, 08 Nov 2022 03:55:47 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -255,7 +255,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 35c981b9-b5c5-42dc-8f0d-305d1a238a50 + - 6d60519e-7e43-4e37-becf-315d3456400c status: 200 OK code: 200 duration: "" @@ -265,10 +265,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab method: GET response: - body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' + body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -277,7 +277,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:15:45 GMT + - Tue, 08 Nov 2022 03:56:02 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -287,7 +287,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 18461cda-ae5b-4916-895d-ea14df171900 + - c1843c3b-81bd-4e55-9b01-6b469c0e162f status: 200 OK code: 200 duration: "" @@ -297,10 +297,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab method: GET response: - body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' + body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -309,7 +309,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:16:00 GMT + - Tue, 08 Nov 2022 03:56:17 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -319,7 +319,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ffdbb155-1b4f-4c89-aabd-edf1509d8703 + - 6aaeb297-c714-4323-a25f-e58590dbfd3b status: 200 OK code: 200 duration: "" @@ -329,10 +329,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab method: GET response: - body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' + body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -341,7 +341,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:16:15 GMT + - Tue, 08 Nov 2022 03:56:32 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -351,7 +351,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - cb2d0653-76df-49d9-9cd0-8176857d2de5 + - a3a60784-c361-4095-989b-26a82d6ebaaf status: 200 OK code: 200 duration: "" @@ -361,10 +361,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab method: GET response: - body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' + body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -373,7 +373,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:16:30 GMT + - Tue, 08 Nov 2022 03:56:47 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -383,7 +383,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c23e594c-3d71-482e-99d9-481a9c993626 + - 504cd703-07d2-4eb7-b795-b265ae64ef58 status: 200 OK code: 200 duration: "" @@ -393,10 +393,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab method: GET response: - body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' + body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -405,7 +405,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:16:46 GMT + - Tue, 08 Nov 2022 03:57:02 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -415,7 +415,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 8b0d6df4-0033-439b-b2bd-a946a618bacf + - aa2acfe3-6886-4e35-854e-59f10f484e1f status: 200 OK code: 200 duration: "" @@ -425,10 +425,10 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab method: GET response: - body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' + body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' headers: Content-Length: - "641" @@ -437,7 +437,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:17:01 GMT + - Tue, 08 Nov 2022 03:57:17 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -447,7 +447,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 36ea5459-f492-41a3-8ca1-7cff7e803732 + - db0414c6-aad1-4c7a-9d5b-785af1933422 status: 200 OK code: 200 duration: "" @@ -457,19 +457,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab method: GET response: - body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' + body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.11.69","port":45271,"name":null,"id":"25762232-d6d5-409a-91e3-b30294e61f9b","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.11.69","port":45271,"name":null,"id":"25762232-d6d5-409a-91e3-b30294e61f9b","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "1112" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:17:16 GMT + - Tue, 08 Nov 2022 03:57:33 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -479,7 +479,43 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - bec230fb-4c4e-48e6-b708-7f56cadb4463 + - 3fe70543-f7f8-496a-ab96-3839b9ca2726 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"rules":[{"ip":"1.2.3.4/32","description":""}]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab/acls + method: POST + response: + body: '{"rules":[{"ip":"0.0.0.0/0","port":45271,"protocol":"tcp","direction":"inbound","action":"allow","description":"Allow + All"},{"ip":"1.2.3.4/32","port":45271,"protocol":"tcp","direction":"inbound","action":"allow","description":"IP + allowed"}]}' + headers: + Content-Length: + - "241" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 08 Nov 2022 03:57:33 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 77d32103-9c78-4e7b-ad6b-95b5dae23b48 status: 200 OK code: 200 duration: "" @@ -489,19 +525,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab method: GET response: - body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' + body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"configuring","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.11.69","port":45271,"name":null,"id":"25762232-d6d5-409a-91e3-b30294e61f9b","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.11.69","port":45271,"name":null,"id":"25762232-d6d5-409a-91e3-b30294e61f9b","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "1118" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:17:31 GMT + - Tue, 08 Nov 2022 03:57:33 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -511,7 +547,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 374b2ee1-f391-43e6-a669-ce0a2f10b938 + - 3361796a-1734-4007-a6a1-1cacd0845342 status: 200 OK code: 200 duration: "" @@ -521,19 +557,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab method: GET response: - body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.56.230","port":59061,"name":null,"id":"8b15f4bd-bcbf-4cb0-8853-2bf50b07bec8","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.158.56.230","port":59061,"name":null,"id":"8b15f4bd-bcbf-4cb0-8853-2bf50b07bec8","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' + body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.11.69","port":45271,"name":null,"id":"25762232-d6d5-409a-91e3-b30294e61f9b","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.11.69","port":45271,"name":null,"id":"25762232-d6d5-409a-91e3-b30294e61f9b","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' headers: Content-Length: - - "1114" + - "1112" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:17:46 GMT + - Tue, 08 Nov 2022 03:57:48 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -543,33 +579,32 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - dc9ce99c-d638-4827-953c-578a2fac7dea + - 36425944-451d-4d0f-b465-34cd5186c43b status: 200 OK code: 200 duration: "" - request: - body: '{"rules":[{"ip":"1.2.3.4/32","description":""}]}' + body: '{"acl_rule_ips":["1.2.3.4"]}' form: {} headers: Content-Type: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711/acls - method: POST + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab/acls + method: DELETE response: - body: '{"rules":[{"ip":"0.0.0.0/0","port":59061,"protocol":"tcp","direction":"inbound","action":"allow","description":"Allow - All"},{"ip":"1.2.3.4/32","port":59061,"protocol":"tcp","direction":"inbound","action":"allow","description":"IP + body: '{"rules":[{"ip":"1.2.3.4/32","port":45271,"protocol":"tcp","direction":"inbound","action":"allow","description":"IP allowed"}]}' headers: Content-Length: - - "241" + - "127" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:17:46 GMT + - Tue, 08 Nov 2022 03:57:48 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -579,32 +614,61 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1483ba2f-e006-47be-aa8b-4b79c27d6cf8 + - 8d66dafd-d0ea-4cce-8b88-3d71d6edf3ba status: 200 OK code: 200 duration: "" - request: - body: '{"acl_rule_ips":["1.2.3.4"]}' + body: "" form: {} headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab + method: GET + response: + body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"configuring","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.11.69","port":45271,"name":null,"id":"25762232-d6d5-409a-91e3-b30294e61f9b","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.11.69","port":45271,"name":null,"id":"25762232-d6d5-409a-91e3-b30294e61f9b","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' + headers: + Content-Length: + - "1118" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json + Date: + - Tue, 08 Nov 2022 03:57:48 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bb0fff16-0dff-4525-a027-bb2f361e9e63 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711/acls - method: DELETE + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab + method: GET response: - body: '{"rules":[{"ip":"1.2.3.4/32","port":59061,"protocol":"tcp","direction":"inbound","action":"allow","description":"IP - allowed"}]}' + body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.11.69","port":45271,"name":null,"id":"25762232-d6d5-409a-91e3-b30294e61f9b","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.11.69","port":45271,"name":null,"id":"25762232-d6d5-409a-91e3-b30294e61f9b","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' headers: Content-Length: - - "127" + - "1112" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:17:51 GMT + - Tue, 08 Nov 2022 03:58:04 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -614,7 +678,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - fcd2f1bd-8dc6-43cc-a78c-de225412ca50 + - 191b6064-42ac-4d50-9d3f-492fc466c0d8 status: 200 OK code: 200 duration: "" @@ -624,19 +688,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/0647faf5-ced8-4b6c-836b-001978c48711 + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab method: DELETE response: - body: '{"id":"0647faf5-ced8-4b6c-836b-001978c48711","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"deleting","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.56.230","port":59061,"name":null,"id":"8b15f4bd-bcbf-4cb0-8853-2bf50b07bec8","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.158.56.230","port":59061,"name":null,"id":"8b15f4bd-bcbf-4cb0-8853-2bf50b07bec8","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-03T15:13:59.403603Z","region":"fr-par"}' + body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"deleting","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.11.69","port":45271,"name":null,"id":"25762232-d6d5-409a-91e3-b30294e61f9b","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.11.69","port":45271,"name":null,"id":"25762232-d6d5-409a-91e3-b30294e61f9b","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' headers: Content-Length: - - "1117" + - "1115" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 03 Nov 2022 15:17:57 GMT + - Tue, 08 Nov 2022 03:58:04 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -646,7 +710,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 4247bb92-6718-40c6-af5b-457095366f5b + - 1e9ea7aa-0012-44b7-9640-3d3ef5eccdd7 status: 200 OK code: 200 duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-delete-acl-simple.golden b/internal/namespaces/rdb/v1/testdata/test-delete-acl-simple.golden index c2a3664104..67e92a669c 100644 --- a/internal/namespaces/rdb/v1/testdata/test-delete-acl-simple.golden +++ b/internal/namespaces/rdb/v1/testdata/test-delete-acl-simple.golden @@ -1,7 +1,7 @@ 🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 🟩🟩🟩 STDOUT️ 🟩🟩🟩️ Rules.0.IP 1.2.3.4/32 -Rules.0.Port 59061 +Rules.0.Port 45271 Rules.0.Protocol tcp Rules.0.Direction inbound Rules.0.Action allow @@ -12,7 +12,7 @@ TotalCount 1 "rules": [ { "ip": "1.2.3.4/32", - "port": 59061, + "port": 45271, "protocol": "tcp", "direction": "inbound", "action": "allow", From 0106db13d11b03ca45971589556bd547d68d0bed Mon Sep 17 00:00:00 2001 From: Yacine FODIL Date: Tue, 8 Nov 2022 09:34:34 +0100 Subject: [PATCH 3/7] update doc --- cmd/scw/testdata/test-all-usage-rdb-acl-add-usage.golden | 1 + cmd/scw/testdata/test-all-usage-rdb-acl-delete-usage.golden | 1 + 2 files changed, 2 insertions(+) diff --git a/cmd/scw/testdata/test-all-usage-rdb-acl-add-usage.golden b/cmd/scw/testdata/test-all-usage-rdb-acl-add-usage.golden index 628db5fb3d..d13a28ba0d 100644 --- a/cmd/scw/testdata/test-all-usage-rdb-acl-add-usage.golden +++ b/cmd/scw/testdata/test-all-usage-rdb-acl-add-usage.golden @@ -13,6 +13,7 @@ ARGS: FLAGS: -h, --help help for add + -w, --wait wait until the acl is ready GLOBAL FLAGS: -c, --config string The path to the config file diff --git a/cmd/scw/testdata/test-all-usage-rdb-acl-delete-usage.golden b/cmd/scw/testdata/test-all-usage-rdb-acl-delete-usage.golden index adaeec9b77..a949ea3caf 100644 --- a/cmd/scw/testdata/test-all-usage-rdb-acl-delete-usage.golden +++ b/cmd/scw/testdata/test-all-usage-rdb-acl-delete-usage.golden @@ -12,6 +12,7 @@ ARGS: FLAGS: -h, --help help for delete + -w, --wait wait until the acl is ready GLOBAL FLAGS: -c, --config string The path to the config file From c796004bf46d671ad51656ce1a860da60ec6f92d Mon Sep 17 00:00:00 2001 From: Yacine FODIL Date: Thu, 10 Nov 2022 15:08:10 +0100 Subject: [PATCH 4/7] fix --- .../test-add-acl-simple.cassette.yaml | 1226 ++++++++--------- .../v1/testdata/test-add-acl-simple.golden | 8 +- 2 files changed, 585 insertions(+), 649 deletions(-) diff --git a/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.cassette.yaml index 3e4e12094f..6fda6b732e 100644 --- a/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.cassette.yaml +++ b/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.cassette.yaml @@ -1,649 +1,585 @@ --- version: 1 interactions: -- request: - body: '{"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","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}' - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances - method: POST - response: - body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' - headers: - Content-Length: - - "641" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Tue, 08 Nov 2022 03:20:19 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 7c3f510a-2544-4027-a230-bab9cbe9cbff - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d - method: GET - response: - body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' - headers: - Content-Length: - - "641" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Tue, 08 Nov 2022 03:20:20 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - cde4da23-7c1c-432e-8d78-c3ada4353caf - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d - method: GET - response: - body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' - headers: - Content-Length: - - "641" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Tue, 08 Nov 2022 03:20:35 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 082741e5-a917-46f9-ba39-fcb128747a41 - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d - method: GET - response: - body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' - headers: - Content-Length: - - "641" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Tue, 08 Nov 2022 03: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: - - af206bd4-7d87-4327-914f-56d801369c29 - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d - method: GET - response: - body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' - headers: - Content-Length: - - "641" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Tue, 08 Nov 2022 03:21:05 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 1fb201a6-44a0-44e5-875e-8d5182b14d86 - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d - method: GET - response: - body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' - headers: - Content-Length: - - "641" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Tue, 08 Nov 2022 03:21:20 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 2142da27-c83a-43fc-8a15-8d376ee0bbb8 - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d - method: GET - response: - body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' - headers: - Content-Length: - - "641" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Tue, 08 Nov 2022 03:21:35 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 8a9aea68-d490-444a-8bda-49819a833f8e - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d - method: GET - response: - body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' - headers: - Content-Length: - - "641" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Tue, 08 Nov 2022 03:21:50 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 0c052441-9c7e-4d0a-ad35-9de17b14e129 - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d - method: GET - response: - body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' - headers: - Content-Length: - - "641" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Tue, 08 Nov 2022 03:22:05 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 939b7a3d-c753-4165-b794-d124b61f3daf - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d - method: GET - response: - body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' - headers: - Content-Length: - - "641" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Tue, 08 Nov 2022 03:22:20 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 3e2265e6-4f84-4689-b092-60e5798669ce - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d - method: GET - response: - body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' - headers: - Content-Length: - - "641" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Tue, 08 Nov 2022 03:22:35 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 12ac05f7-92c3-4e2b-a0a7-58c788962677 - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d - method: GET - response: - body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' - headers: - Content-Length: - - "641" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Tue, 08 Nov 2022 03:22:51 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - ebe357f8-7407-4470-b441-ca3a7a6847e0 - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d - method: GET - response: - body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' - headers: - Content-Length: - - "641" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Tue, 08 Nov 2022 03:23:06 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 9ac3e65f-98cf-4a62-909a-7ff35f2bf7eb - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d - method: GET - response: - body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' - headers: - Content-Length: - - "641" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Tue, 08 Nov 2022 03:23:21 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - d7a49488-e0df-4e0a-a6f9-bac8201d79db - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d - method: GET - response: - body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' - headers: - Content-Length: - - "641" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Tue, 08 Nov 2022 03:23:36 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - bd50cc77-b583-4b33-b685-cad14ab6db79 - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d - method: GET - response: - body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.113.252","port":13757,"name":null,"id":"f66bc3f3-57da-4514-9725-984833fac6c9","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.113.252","port":13757,"name":null,"id":"f66bc3f3-57da-4514-9725-984833fac6c9","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' - headers: - Content-Length: - - "1116" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Tue, 08 Nov 2022 03:23:51 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 6f628446-ef1c-43be-afe0-8b7bae959e64 - status: 200 OK - code: 200 - duration: "" -- request: - body: '{"rules":[{"ip":"4.2.3.4/32","description":""}]}' - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d/acls - method: POST - response: - body: '{"rules":[{"ip":"0.0.0.0/0","port":13757,"protocol":"tcp","direction":"inbound","action":"allow","description":"Allow - All"},{"ip":"4.2.3.4/32","port":13757,"protocol":"tcp","direction":"inbound","action":"allow","description":"IP + - request: + body: '{"organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","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}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances + method: POST + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:39:44 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bf5fdbf0-e3e4-4150-bc92-795317ef8d88 + status: 200 OK + code: 200 + duration: "" + - request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:39:44 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fd120fa7-acde-4303-a2aa-2c0287a8245b + status: 200 OK + code: 200 + duration: "" + - request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:39:59 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fe59a15b-4578-465d-a3bf-02103bcccd12 + status: 200 OK + code: 200 + duration: "" + - request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:40:14 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a8ec5755-3707-45d9-8ba0-bf21e6d982f0 + status: 200 OK + code: 200 + duration: "" + - request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:40:29 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 360d68c6-d4cb-40eb-9465-c33ce9c2385e + status: 200 OK + code: 200 + duration: "" + - request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:40:45 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9e298685-eceb-472a-911c-bd16ab56ea46 + status: 200 OK + code: 200 + duration: "" + - request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:40:59 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 77455b1f-6135-493c-9f3f-009737c77e99 + status: 200 OK + code: 200 + duration: "" + - request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:41:14 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7d427e97-5500-4346-ab31-7e3aa2d25070 + status: 200 OK + code: 200 + duration: "" + - request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:41:29 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c3fc4c21-f4e5-487f-a2f6-c7b64a70f805 + status: 200 OK + code: 200 + duration: "" + - request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:41:45 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 50c09cdd-c580-45ce-a139-ed8c2e3e9a09 + status: 200 OK + code: 200 + duration: "" + - request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:42:00 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2d54c07f-b1e6-4834-a9f8-d239b2bd0223 + status: 200 OK + code: 200 + duration: "" + - request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:42:15 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 14a2f8b7-381b-47b1-b65e-a2541b3f667d + status: 200 OK + code: 200 + duration: "" + - request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:42:30 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1531fbb5-b478-4cce-8c6d-1bf858a4f5e0 + status: 200 OK + code: 200 + duration: "" + - request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:42:45 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ad3833d0-850f-43b2-bc8c-08f8b9df9e3c + status: 200 OK + code: 200 + duration: "" + - request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:43:00 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - efb498b4-a1cc-49ad-82c7-ed815454af2a + status: 200 OK + code: 200 + duration: "" + - request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.26.67","port":13989,"name":null},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "742" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:43:15 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 197b7d05-3da5-4778-bb6b-82a049c53d8c + status: 200 OK + code: 200 + duration: "" + - request: + body: '{"rules":[{"ip":"4.2.3.4/32","description":""}]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e/acls + method: POST + response: + body: '{"rules":[{"ip":"0.0.0.0/0","port":13989,"protocol":"tcp","direction":"inbound","action":"allow","description":"Allow + All"},{"ip":"4.2.3.4","port":13989,"protocol":"tcp","direction":"inbound","action":"allow","description":"IP allowed"}]}' - headers: - Content-Length: - - "241" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Tue, 08 Nov 2022 03:23:51 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 9bd5340d-da62-4c86-95ba-73705271e153 - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d - method: GET - response: - body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"configuring","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.113.252","port":13757,"name":null,"id":"f66bc3f3-57da-4514-9725-984833fac6c9","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.113.252","port":13757,"name":null,"id":"f66bc3f3-57da-4514-9725-984833fac6c9","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' - headers: - Content-Length: - - "1122" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Tue, 08 Nov 2022 03:23:51 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 7d1c4289-ae34-4c6e-a329-0a4835d100d4 - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d - method: GET - response: - body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.113.252","port":13757,"name":null,"id":"f66bc3f3-57da-4514-9725-984833fac6c9","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.113.252","port":13757,"name":null,"id":"f66bc3f3-57da-4514-9725-984833fac6c9","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' - headers: - Content-Length: - - "1116" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Tue, 08 Nov 2022 03:24:07 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 7c7a9697-7f81-4697-b490-f67d18adcf6a - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/a31b745f-f4e3-4892-b531-50a2206f4a8d - method: DELETE - response: - body: '{"id":"a31b745f-f4e3-4892-b531-50a2206f4a8d","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"deleting","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.113.252","port":13757,"name":null,"id":"f66bc3f3-57da-4514-9725-984833fac6c9","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.113.252","port":13757,"name":null,"id":"f66bc3f3-57da-4514-9725-984833fac6c9","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:20:19.784630Z","region":"fr-par"}' - headers: - Content-Length: - - "1119" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Tue, 08 Nov 2022 03:24:07 GMT - Server: - - Scaleway API-Gateway - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 3eeb9635-0816-4d96-a107-0304f0a85d5e - status: 200 OK - code: 200 - duration: "" + headers: + Content-Length: + - "238" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:43:18 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a54bf29d-7f3b-4357-be0b-fcbdb7d39112 + status: 200 OK + code: 200 + duration: "" + - request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: DELETE + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"deleting","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.26.67","port":13989,"name":null},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":true},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "744" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:43:19 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - da453382-8f2b-4ad6-b5f4-a5b99c35d510 + status: 200 OK + code: 200 + duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.golden b/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.golden index 8accdca0fd..cac765844e 100644 --- a/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.golden +++ b/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.golden @@ -1,13 +1,13 @@ 🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 🟩🟩🟩 STDOUT️ 🟩🟩🟩️ IP PORT PROTOCOL DIRECTION ACTION DESCRIPTION -0.0.0.0/0 13757 tcp inbound allow Allow All -4.2.3.4/32 13757 tcp inbound allow IP allowed +0.0.0.0/0 13989 tcp inbound allow Allow All +4.2.3.4/32 13989 tcp inbound allow IP allowed 🟩🟩🟩 JSON STDOUT 🟩🟩🟩 [ { "ip": "0.0.0.0/0", - "port": 13757, + "port": 13989, "protocol": "tcp", "direction": "inbound", "action": "allow", @@ -15,7 +15,7 @@ IP PORT PROTOCOL DIRECTION ACTION DESCRIPTION }, { "ip": "4.2.3.4/32", - "port": 13757, + "port": 13989, "protocol": "tcp", "direction": "inbound", "action": "allow", From a17d25dcaa8e57742398452cebb395142d6e5c5a Mon Sep 17 00:00:00 2001 From: Yacine FODIL Date: Thu, 10 Nov 2022 15:12:55 +0100 Subject: [PATCH 5/7] fix --- .../test-add-acl-simple.cassette.yaml | 1160 ++++++++--------- 1 file changed, 580 insertions(+), 580 deletions(-) diff --git a/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.cassette.yaml index 6fda6b732e..fad898e3d9 100644 --- a/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.cassette.yaml +++ b/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.cassette.yaml @@ -1,585 +1,585 @@ --- version: 1 interactions: - - request: - body: '{"organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","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}' - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances - method: POST - response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' - headers: - Content-Length: - - "443" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 12 Aug 2020 08:39:44 GMT - Server: - - agw_listener_public_vip - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - bf5fdbf0-e3e4-4150-bc92-795317ef8d88 - status: 200 OK - code: 200 - duration: "" - - request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e - method: GET - response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' - headers: - Content-Length: - - "443" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 12 Aug 2020 08:39:44 GMT - Server: - - agw_listener_public_vip - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - fd120fa7-acde-4303-a2aa-2c0287a8245b - status: 200 OK - code: 200 - duration: "" - - request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e - method: GET - response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' - headers: - Content-Length: - - "443" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 12 Aug 2020 08:39:59 GMT - Server: - - agw_listener_public_vip - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - fe59a15b-4578-465d-a3bf-02103bcccd12 - status: 200 OK - code: 200 - duration: "" - - request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e - method: GET - response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' - headers: - Content-Length: - - "443" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 12 Aug 2020 08:40:14 GMT - Server: - - agw_listener_public_vip - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - a8ec5755-3707-45d9-8ba0-bf21e6d982f0 - status: 200 OK - code: 200 - duration: "" - - request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e - method: GET - response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' - headers: - Content-Length: - - "443" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 12 Aug 2020 08:40:29 GMT - Server: - - agw_listener_public_vip - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 360d68c6-d4cb-40eb-9465-c33ce9c2385e - status: 200 OK - code: 200 - duration: "" - - request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e - method: GET - response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' - headers: - Content-Length: - - "443" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 12 Aug 2020 08:40:45 GMT - Server: - - agw_listener_public_vip - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 9e298685-eceb-472a-911c-bd16ab56ea46 - status: 200 OK - code: 200 - duration: "" - - request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e - method: GET - response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' - headers: - Content-Length: - - "443" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 12 Aug 2020 08:40:59 GMT - Server: - - agw_listener_public_vip - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 77455b1f-6135-493c-9f3f-009737c77e99 - status: 200 OK - code: 200 - duration: "" - - request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e - method: GET - response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' - headers: - Content-Length: - - "443" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 12 Aug 2020 08:41:14 GMT - Server: - - agw_listener_public_vip - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 7d427e97-5500-4346-ab31-7e3aa2d25070 - status: 200 OK - code: 200 - duration: "" - - request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e - method: GET - response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' - headers: - Content-Length: - - "443" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 12 Aug 2020 08:41:29 GMT - Server: - - agw_listener_public_vip - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - c3fc4c21-f4e5-487f-a2f6-c7b64a70f805 - status: 200 OK - code: 200 - duration: "" - - request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e - method: GET - response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' - headers: - Content-Length: - - "443" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 12 Aug 2020 08:41:45 GMT - Server: - - agw_listener_public_vip - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 50c09cdd-c580-45ce-a139-ed8c2e3e9a09 - status: 200 OK - code: 200 - duration: "" - - request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e - method: GET - response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' - headers: - Content-Length: - - "443" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 12 Aug 2020 08:42:00 GMT - Server: - - agw_listener_public_vip - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 2d54c07f-b1e6-4834-a9f8-d239b2bd0223 - status: 200 OK - code: 200 - duration: "" - - request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e - method: GET - response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' - headers: - Content-Length: - - "443" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 12 Aug 2020 08:42:15 GMT - Server: - - agw_listener_public_vip - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 14a2f8b7-381b-47b1-b65e-a2541b3f667d - status: 200 OK - code: 200 - duration: "" - - request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e - method: GET - response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' - headers: - Content-Length: - - "443" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 12 Aug 2020 08:42:30 GMT - Server: - - agw_listener_public_vip - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 1531fbb5-b478-4cce-8c6d-1bf858a4f5e0 - status: 200 OK - code: 200 - duration: "" - - request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e - method: GET - response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' - headers: - Content-Length: - - "443" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 12 Aug 2020 08:42:45 GMT - Server: - - agw_listener_public_vip - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - ad3833d0-850f-43b2-bc8c-08f8b9df9e3c - status: 200 OK - code: 200 - duration: "" - - request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e - method: GET - response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' - headers: - Content-Length: - - "443" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 12 Aug 2020 08:43:00 GMT - Server: - - agw_listener_public_vip - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - efb498b4-a1cc-49ad-82c7-ed815454af2a - status: 200 OK - code: 200 - duration: "" - - request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e - method: GET - response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.26.67","port":13989,"name":null},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' - headers: - Content-Length: - - "742" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 12 Aug 2020 08:43:15 GMT - Server: - - agw_listener_public_vip - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 197b7d05-3da5-4778-bb6b-82a049c53d8c - status: 200 OK - code: 200 - duration: "" - - request: - body: '{"rules":[{"ip":"4.2.3.4/32","description":""}]}' - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e/acls - method: POST - response: - body: '{"rules":[{"ip":"0.0.0.0/0","port":13989,"protocol":"tcp","direction":"inbound","action":"allow","description":"Allow +- request: + body: '{"organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","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}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances + method: POST + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:39:44 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bf5fdbf0-e3e4-4150-bc92-795317ef8d88 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:39:44 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fd120fa7-acde-4303-a2aa-2c0287a8245b + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:39:59 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fe59a15b-4578-465d-a3bf-02103bcccd12 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:40:14 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a8ec5755-3707-45d9-8ba0-bf21e6d982f0 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:40:29 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 360d68c6-d4cb-40eb-9465-c33ce9c2385e + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:40:45 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9e298685-eceb-472a-911c-bd16ab56ea46 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:40:59 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 77455b1f-6135-493c-9f3f-009737c77e99 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:41:14 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7d427e97-5500-4346-ab31-7e3aa2d25070 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:41:29 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c3fc4c21-f4e5-487f-a2f6-c7b64a70f805 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:41:45 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 50c09cdd-c580-45ce-a139-ed8c2e3e9a09 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:42:00 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2d54c07f-b1e6-4834-a9f8-d239b2bd0223 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:42:15 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 14a2f8b7-381b-47b1-b65e-a2541b3f667d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:42:30 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1531fbb5-b478-4cce-8c6d-1bf858a4f5e0 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:42:45 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ad3833d0-850f-43b2-bc8c-08f8b9df9e3c + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "443" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:43:00 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - efb498b4-a1cc-49ad-82c7-ed815454af2a + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: GET + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.26.67","port":13989,"name":null},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "742" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:43:15 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 197b7d05-3da5-4778-bb6b-82a049c53d8c + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"rules":[{"ip":"4.2.3.4/32","description":""}]}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e/acls + method: POST + response: + body: '{"rules":[{"ip":"0.0.0.0/0","port":13989,"protocol":"tcp","direction":"inbound","action":"allow","description":"Allow All"},{"ip":"4.2.3.4","port":13989,"protocol":"tcp","direction":"inbound","action":"allow","description":"IP allowed"}]}' - headers: - Content-Length: - - "238" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 12 Aug 2020 08:43:18 GMT - Server: - - agw_listener_public_vip - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - a54bf29d-7f3b-4357-be0b-fcbdb7d39112 - status: 200 OK - code: 200 - duration: "" - - request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e - method: DELETE - response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"deleting","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.26.67","port":13989,"name":null},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":true},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' - headers: - Content-Length: - - "744" - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Wed, 12 Aug 2020 08:43:19 GMT - Server: - - agw_listener_public_vip - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - da453382-8f2b-4ad6-b5f4-a5b99c35d510 - status: 200 OK - code: 200 - duration: "" + headers: + Content-Length: + - "238" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:43:18 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a54bf29d-7f3b-4357-be0b-fcbdb7d39112 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + method: DELETE + response: + body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"deleting","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.26.67","port":13989,"name":null},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":true},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + headers: + Content-Length: + - "744" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Wed, 12 Aug 2020 08:43:19 GMT + Server: + - agw_listener_public_vip + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - da453382-8f2b-4ad6-b5f4-a5b99c35d510 + status: 200 OK + code: 200 + duration: "" From 58cd2c028a17ad8b6a718fe4775ecbd6009ba670 Mon Sep 17 00:00:00 2001 From: Yacine FODIL Date: Thu, 10 Nov 2022 15:28:28 +0100 Subject: [PATCH 6/7] reupload add acl cassette/golden --- .../test-add-acl-simple.cassette.yaml | 318 +++++++++++------- .../v1/testdata/test-add-acl-simple.golden | 8 +- 2 files changed, 195 insertions(+), 131 deletions(-) diff --git a/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.cassette.yaml index fad898e3d9..02ff0eb9e9 100644 --- a/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.cassette.yaml +++ b/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.cassette.yaml @@ -2,28 +2,28 @@ version: 1 interactions: - request: - body: '{"organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","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}' + body: '{"project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","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}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances method: POST response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:39:44 GMT + - Thu, 10 Nov 2022 14:23:36 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -31,7 +31,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - bf5fdbf0-e3e4-4150-bc92-795317ef8d88 + - fd49a3d5-faf0-4246-950b-3c121df64206 status: 200 OK code: 200 duration: "" @@ -40,22 +40,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:39:44 GMT + - Thu, 10 Nov 2022 14:23:37 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -63,7 +63,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - fd120fa7-acde-4303-a2aa-2c0287a8245b + - 69f5abdb-4537-4880-9a69-d648cc71a218 status: 200 OK code: 200 duration: "" @@ -72,22 +72,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:39:59 GMT + - Thu, 10 Nov 2022 14:23:52 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -95,7 +95,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - fe59a15b-4578-465d-a3bf-02103bcccd12 + - dc474f8c-3525-4952-9293-b151c235c708 status: 200 OK code: 200 duration: "" @@ -104,22 +104,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:40:14 GMT + - Thu, 10 Nov 2022 14:24:07 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -127,7 +127,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a8ec5755-3707-45d9-8ba0-bf21e6d982f0 + - 030b3159-70c3-4941-b749-3e8fa7314dd9 status: 200 OK code: 200 duration: "" @@ -136,22 +136,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:40:29 GMT + - Thu, 10 Nov 2022 14:24:22 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -159,7 +159,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 360d68c6-d4cb-40eb-9465-c33ce9c2385e + - 05bdc07f-da38-40be-b6c8-acb24d927add status: 200 OK code: 200 duration: "" @@ -168,22 +168,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:40:45 GMT + - Thu, 10 Nov 2022 14:24:37 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -191,7 +191,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 9e298685-eceb-472a-911c-bd16ab56ea46 + - 7d727c23-6b92-4855-ada5-c7ed05b3785c status: 200 OK code: 200 duration: "" @@ -200,22 +200,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:40:59 GMT + - Thu, 10 Nov 2022 14:24:53 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -223,7 +223,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 77455b1f-6135-493c-9f3f-009737c77e99 + - 0c8a1750-6513-4896-848b-02c41d756ba6 status: 200 OK code: 200 duration: "" @@ -232,22 +232,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:41:14 GMT + - Thu, 10 Nov 2022 14:25:08 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -255,7 +255,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 7d427e97-5500-4346-ab31-7e3aa2d25070 + - bd76af4b-5f51-4e34-aa55-8005539ef12d status: 200 OK code: 200 duration: "" @@ -264,22 +264,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:41:29 GMT + - Thu, 10 Nov 2022 14:25:23 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -287,7 +287,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c3fc4c21-f4e5-487f-a2f6-c7b64a70f805 + - 712fee95-aab8-4135-bdfe-9d984593c591 status: 200 OK code: 200 duration: "" @@ -296,22 +296,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:41:45 GMT + - Thu, 10 Nov 2022 14:25:38 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -319,7 +319,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 50c09cdd-c580-45ce-a139-ed8c2e3e9a09 + - 87d57f85-6de4-4b20-adc1-324cca3114d3 status: 200 OK code: 200 duration: "" @@ -328,22 +328,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:42:00 GMT + - Thu, 10 Nov 2022 14:25:53 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -351,7 +351,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 2d54c07f-b1e6-4834-a9f8-d239b2bd0223 + - c255e1e8-7abb-4998-8316-313d8e9c5ca0 status: 200 OK code: 200 duration: "" @@ -360,22 +360,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:42:15 GMT + - Thu, 10 Nov 2022 14:26:08 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -383,7 +383,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 14a2f8b7-381b-47b1-b65e-a2541b3f667d + - 4baca4c3-67fa-461b-b8e6-31f4fb64fc37 status: 200 OK code: 200 duration: "" @@ -392,22 +392,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:42:30 GMT + - Thu, 10 Nov 2022 14:26:23 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -415,7 +415,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1531fbb5-b478-4cce-8c6d-1bf858a4f5e0 + - 6510d7bf-ee1c-43cd-8141-a618885ffc0e status: 200 OK code: 200 duration: "" @@ -424,22 +424,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:42:45 GMT + - Thu, 10 Nov 2022 14:26:38 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -447,7 +447,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ad3833d0-850f-43b2-bc8c-08f8b9df9e3c + - e817e26a-5fa0-4232-85d8-732f56cf7a05 status: 200 OK code: 200 duration: "" @@ -456,22 +456,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' headers: Content-Length: - - "443" + - "641" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:43:00 GMT + - Thu, 10 Nov 2022 14:26:53 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -479,7 +479,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - efb498b4-a1cc-49ad-82c7-ed815454af2a + - a53d8a12-6b20-46c8-a1c2-d2df94416a1b status: 200 OK code: 200 duration: "" @@ -488,22 +488,22 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc method: GET response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.26.67","port":13989,"name":null},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.58.123","port":42112,"name":null,"id":"d442eccd-7401-43c4-a67f-874a8699b08f","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.158.58.123","port":42112,"name":null,"id":"d442eccd-7401-43c4-a67f-874a8699b08f","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' headers: Content-Length: - - "742" + - "1114" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:43:15 GMT + - Thu, 10 Nov 2022 14:27:08 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -511,7 +511,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 197b7d05-3da5-4778-bb6b-82a049c53d8c + - 73646437-cb2e-4b3c-ab3c-bde9d139694d status: 200 OK code: 200 duration: "" @@ -522,24 +522,24 @@ interactions: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e/acls + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc/acls method: POST response: - body: '{"rules":[{"ip":"0.0.0.0/0","port":13989,"protocol":"tcp","direction":"inbound","action":"allow","description":"Allow - All"},{"ip":"4.2.3.4","port":13989,"protocol":"tcp","direction":"inbound","action":"allow","description":"IP + body: '{"rules":[{"ip":"0.0.0.0/0","port":42112,"protocol":"tcp","direction":"inbound","action":"allow","description":"Allow + All"},{"ip":"4.2.3.4/32","port":42112,"protocol":"tcp","direction":"inbound","action":"allow","description":"IP allowed"}]}' headers: Content-Length: - - "238" + - "241" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:43:18 GMT + - Thu, 10 Nov 2022 14:27:09 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -547,7 +547,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a54bf29d-7f3b-4357-be0b-fcbdb7d39112 + - edad0900-7cd1-4b3f-b2e2-ceda30fcf21c status: 200 OK code: 200 duration: "" @@ -556,22 +556,86 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.5; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc + method: GET + response: + body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"configuring","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.58.123","port":42112,"name":null,"id":"d442eccd-7401-43c4-a67f-874a8699b08f","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.158.58.123","port":42112,"name":null,"id":"d442eccd-7401-43c4-a67f-874a8699b08f","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' + headers: + Content-Length: + - "1120" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 10 Nov 2022 14:27:09 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 00aa3731-19d9-4442-a6b1-40ab0bfc4ba9 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc + method: GET + response: + body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.58.123","port":42112,"name":null,"id":"d442eccd-7401-43c4-a67f-874a8699b08f","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.158.58.123","port":42112,"name":null,"id":"d442eccd-7401-43c4-a67f-874a8699b08f","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' + headers: + Content-Length: + - "1114" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 10 Nov 2022 14:27:24 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e1ceaceb-c19d-4656-9d53-b3cb1d382607 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc method: DELETE response: - body: '{"id":"2da36b6f-5d7e-41c1-9e7d-241bdbe5c63e","name":"cli-test","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","status":"deleting","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.26.67","port":13989,"name":null},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":24,"retention":7,"disabled":true},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"created_at":"2020-08-12T08:39:43.691256Z","region":"fr-par"}' + body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"deleting","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.58.123","port":42112,"name":null,"id":"d442eccd-7401-43c4-a67f-874a8699b08f","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.158.58.123","port":42112,"name":null,"id":"d442eccd-7401-43c4-a67f-874a8699b08f","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' headers: Content-Length: - - "744" + - "1117" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Wed, 12 Aug 2020 08:43:19 GMT + - Thu, 10 Nov 2022 14:27:24 GMT Server: - - agw_listener_public_vip + - Scaleway API-Gateway Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -579,7 +643,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - da453382-8f2b-4ad6-b5f4-a5b99c35d510 + - 756bcc04-4191-47c9-ab58-6868e69deea6 status: 200 OK code: 200 duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.golden b/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.golden index cac765844e..9637ffe415 100644 --- a/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.golden +++ b/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.golden @@ -1,13 +1,13 @@ 🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 🟩🟩🟩 STDOUT️ 🟩🟩🟩️ IP PORT PROTOCOL DIRECTION ACTION DESCRIPTION -0.0.0.0/0 13989 tcp inbound allow Allow All -4.2.3.4/32 13989 tcp inbound allow IP allowed +0.0.0.0/0 42112 tcp inbound allow Allow All +4.2.3.4/32 42112 tcp inbound allow IP allowed 🟩🟩🟩 JSON STDOUT 🟩🟩🟩 [ { "ip": "0.0.0.0/0", - "port": 13989, + "port": 42112, "protocol": "tcp", "direction": "inbound", "action": "allow", @@ -15,7 +15,7 @@ IP PORT PROTOCOL DIRECTION ACTION DESCRIPTION }, { "ip": "4.2.3.4/32", - "port": 13989, + "port": 42112, "protocol": "tcp", "direction": "inbound", "action": "allow", From c22c67621f2701be21828561a123a1bac8246eb0 Mon Sep 17 00:00:00 2001 From: Yacine FODIL Date: Tue, 22 Nov 2022 18:13:47 +0100 Subject: [PATCH 7/7] renaming --- .../test-all-usage-rdb-acl-add-usage.golden | 8 +- ...test-all-usage-rdb-acl-delete-usage.golden | 6 +- docs/commands/rdb.md | 6 +- internal/namespaces/rdb/v1/custom_acl.go | 16 +- internal/namespaces/rdb/v1/custom_acl_test.go | 6 +- .../test-add-acl-simple.cassette.yaml | 262 ++++++++++------ .../v1/testdata/test-add-acl-simple.golden | 8 +- .../test-delete-acl-simple.cassette.yaml | 284 +++++++++++------- .../v1/testdata/test-delete-acl-simple.golden | 4 +- 9 files changed, 364 insertions(+), 236 deletions(-) diff --git a/cmd/scw/testdata/test-all-usage-rdb-acl-add-usage.golden b/cmd/scw/testdata/test-all-usage-rdb-acl-add-usage.golden index d13a28ba0d..dd39bf4980 100644 --- a/cmd/scw/testdata/test-all-usage-rdb-acl-add-usage.golden +++ b/cmd/scw/testdata/test-all-usage-rdb-acl-add-usage.golden @@ -6,10 +6,10 @@ USAGE: scw rdb acl add [arg=value ...] ARGS: - instance-id UUID of the instance you want to add acl rules to - [rule.{index}.ip] - [rule.{index}.description] - [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 instance you want to add acl rules to + [rules.{index}.ip] + [rules.{index}.description] + [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 add diff --git a/cmd/scw/testdata/test-all-usage-rdb-acl-delete-usage.golden b/cmd/scw/testdata/test-all-usage-rdb-acl-delete-usage.golden index a949ea3caf..dbf0c83e26 100644 --- a/cmd/scw/testdata/test-all-usage-rdb-acl-delete-usage.golden +++ b/cmd/scw/testdata/test-all-usage-rdb-acl-delete-usage.golden @@ -6,9 +6,9 @@ USAGE: scw rdb acl delete [arg=value ...] ARGS: - instance-id UUID of the instance you want to delete an ACL rules from - rule.{index}.ip ACL rules IP present on the instance - [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 instance you want to delete an ACL rules from + rules.{index}.ip ACL rules IP present on the instance + [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 delete diff --git a/docs/commands/rdb.md b/docs/commands/rdb.md index d092d120e7..6f82558bf3 100644 --- a/docs/commands/rdb.md +++ b/docs/commands/rdb.md @@ -88,8 +88,8 @@ scw rdb acl add [arg=value ...] | Name | | Description | |------|---|-------------| | instance-id | Required | UUID of the instance you want to add acl rules to | -| rule.{index}.ip | | | -| rule.{index}.description | | | +| rules.{index}.ip | | | +| rules.{index}.description | | | | 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 | @@ -110,7 +110,7 @@ scw rdb acl delete [arg=value ...] | Name | | Description | |------|---|-------------| | instance-id | Required | UUID of the instance you want to delete an ACL rules from | -| rule.{index}.ip | Required | ACL rules IP present on the instance | +| rules.{index}.ip | Required | ACL rules IP present on the instance | | 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_acl.go b/internal/namespaces/rdb/v1/custom_acl.go index f42c2e2e02..0712f4dc04 100644 --- a/internal/namespaces/rdb/v1/custom_acl.go +++ b/internal/namespaces/rdb/v1/custom_acl.go @@ -21,11 +21,11 @@ var ( func aclAddBuilder(c *core.Command) *core.Command { type customAddACLRequest struct { *rdb.AddInstanceACLRulesRequest - Rule []*rdb.ACLRuleRequest + Rules []*rdb.ACLRuleRequest } - c.ArgSpecs.GetByName("rules.{index}.ip").Name = "rule.{index}.ip" - c.ArgSpecs.GetByName("rules.{index}.description").Name = "rule.{index}.description" + c.ArgSpecs.GetByName("rules.{index}.ip").Name = "rules.{index}.ip" + c.ArgSpecs.GetByName("rules.{index}.description").Name = "rules.{index}.description" c.ArgsType = reflect.TypeOf(customAddACLRequest{}) @@ -33,7 +33,7 @@ func aclAddBuilder(c *core.Command) *core.Command { args := argsI.(*customAddACLRequest) request := args.AddInstanceACLRulesRequest - request.Rules = args.Rule + request.Rules = args.Rules aclAddResponseI, err := runner(ctx, request) if err != nil { @@ -65,16 +65,16 @@ func aclAddBuilder(c *core.Command) *core.Command { } func aclDeleteBuilder(c *core.Command) *core.Command { - type deleteRule struct { + type deleteRules struct { IP string `json:"ip"` } type customDeleteACLRequest struct { *rdb.DeleteInstanceACLRulesRequest - Rule []deleteRule + Rules []deleteRules } - c.ArgSpecs.GetByName("acl-rule-ips.{index}").Name = "rule.{index}.ip" + c.ArgSpecs.GetByName("acl-rule-ips.{index}").Name = "rules.{index}.ip" c.ArgsType = reflect.TypeOf(customDeleteACLRequest{}) @@ -82,7 +82,7 @@ func aclDeleteBuilder(c *core.Command) *core.Command { args := argsI.(*customDeleteACLRequest) request := args.DeleteInstanceACLRulesRequest - for _, ip := range args.Rule { + for _, ip := range args.Rules { request.ACLRuleIPs = append(request.ACLRuleIPs, ip.IP) } diff --git a/internal/namespaces/rdb/v1/custom_acl_test.go b/internal/namespaces/rdb/v1/custom_acl_test.go index 990796bfd1..69ca3f1525 100644 --- a/internal/namespaces/rdb/v1/custom_acl_test.go +++ b/internal/namespaces/rdb/v1/custom_acl_test.go @@ -10,7 +10,7 @@ func Test_AddACL(t *testing.T) { t.Run("Simple", core.Test(&core.TestConfig{ Commands: GetCommands(), BeforeFunc: createInstance("PostgreSQL-12"), - Cmd: "scw rdb acl add instance-id={{ .Instance.ID }} rule.0.ip=4.2.3.4 --wait", + Cmd: "scw rdb acl add instance-id={{ .Instance.ID }} rules.0.ip=4.2.3.4 --wait", Check: core.TestCheckGolden(), AfterFunc: deleteInstance(), })) @@ -21,9 +21,9 @@ func Test_DeleteACL(t *testing.T) { Commands: GetCommands(), BeforeFunc: core.BeforeFuncCombine( createInstance("PostgreSQL-12"), - core.ExecBeforeCmd("scw rdb acl add instance-id={{ .Instance.ID }} rule.0.ip=1.2.3.4 --wait"), + core.ExecBeforeCmd("scw rdb acl add instance-id={{ .Instance.ID }} rules.0.ip=1.2.3.4 --wait"), ), - Cmd: "scw rdb acl delete instance-id={{ .Instance.ID }} rule.0.ip=1.2.3.4 --wait", + Cmd: "scw rdb acl delete instance-id={{ .Instance.ID }} rules.0.ip=1.2.3.4 --wait", Check: core.TestCheckGolden(), AfterFunc: deleteInstance(), })) diff --git a/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.cassette.yaml index 02ff0eb9e9..26685b63ac 100644 --- a/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.cassette.yaml +++ b/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.cassette.yaml @@ -12,16 +12,16 @@ interactions: url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances method: POST response: - body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' + body: '{"id":"01c07780-6387-4498-bea0-728a073368be","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":"2022-11-22T16:14:53.348476Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 10 Nov 2022 14:23:36 GMT + - Tue, 22 Nov 2022 16:14:53 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -31,7 +31,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - fd49a3d5-faf0-4246-950b-3c121df64206 + - c9670353-cec1-4d56-a729-7471d8732d2e status: 200 OK code: 200 duration: "" @@ -41,19 +41,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/01c07780-6387-4498-bea0-728a073368be method: GET response: - body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' + body: '{"id":"01c07780-6387-4498-bea0-728a073368be","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":"2022-11-22T16:14:53.348476Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 10 Nov 2022 14:23:37 GMT + - Tue, 22 Nov 2022 16:14:53 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -63,7 +63,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 69f5abdb-4537-4880-9a69-d648cc71a218 + - 079b41f5-26ba-4212-b3fc-eb44bb49b46d status: 200 OK code: 200 duration: "" @@ -73,19 +73,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/01c07780-6387-4498-bea0-728a073368be method: GET response: - body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' + body: '{"id":"01c07780-6387-4498-bea0-728a073368be","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":"2022-11-22T16:14:53.348476Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 10 Nov 2022 14:23:52 GMT + - Tue, 22 Nov 2022 16:15:09 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -95,7 +95,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - dc474f8c-3525-4952-9293-b151c235c708 + - 3d8bb3df-fd01-4bf8-bfed-7dcbab4bacbb status: 200 OK code: 200 duration: "" @@ -105,19 +105,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/01c07780-6387-4498-bea0-728a073368be method: GET response: - body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' + body: '{"id":"01c07780-6387-4498-bea0-728a073368be","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":"2022-11-22T16:14:53.348476Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 10 Nov 2022 14:24:07 GMT + - Tue, 22 Nov 2022 16:15:24 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -127,7 +127,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 030b3159-70c3-4941-b749-3e8fa7314dd9 + - de7d3293-1adf-4876-b6b5-6946b0bf49c0 status: 200 OK code: 200 duration: "" @@ -137,19 +137,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/01c07780-6387-4498-bea0-728a073368be method: GET response: - body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' + body: '{"id":"01c07780-6387-4498-bea0-728a073368be","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":"2022-11-22T16:14:53.348476Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 10 Nov 2022 14:24:22 GMT + - Tue, 22 Nov 2022 16:15:39 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -159,7 +159,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 05bdc07f-da38-40be-b6c8-acb24d927add + - 787f1410-f8c7-44f5-86c2-54474b2d386e status: 200 OK code: 200 duration: "" @@ -169,19 +169,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/01c07780-6387-4498-bea0-728a073368be method: GET response: - body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' + body: '{"id":"01c07780-6387-4498-bea0-728a073368be","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":"2022-11-22T16:14:53.348476Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 10 Nov 2022 14:24:37 GMT + - Tue, 22 Nov 2022 16:15:54 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -191,7 +191,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 7d727c23-6b92-4855-ada5-c7ed05b3785c + - 2558d170-eda0-48e5-913b-d740b79183d5 status: 200 OK code: 200 duration: "" @@ -201,19 +201,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/01c07780-6387-4498-bea0-728a073368be method: GET response: - body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' + body: '{"id":"01c07780-6387-4498-bea0-728a073368be","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":"2022-11-22T16:14:53.348476Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 10 Nov 2022 14:24:53 GMT + - Tue, 22 Nov 2022 16:16:09 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -223,7 +223,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 0c8a1750-6513-4896-848b-02c41d756ba6 + - 34fc5181-db74-446f-a792-9c09546cc9a4 status: 200 OK code: 200 duration: "" @@ -233,19 +233,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/01c07780-6387-4498-bea0-728a073368be method: GET response: - body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' + body: '{"id":"01c07780-6387-4498-bea0-728a073368be","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":"2022-11-22T16:14:53.348476Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 10 Nov 2022 14:25:08 GMT + - Tue, 22 Nov 2022 16:16:24 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -255,7 +255,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - bd76af4b-5f51-4e34-aa55-8005539ef12d + - ff53ed66-abb6-4a94-8400-4e2eab7e47f8 status: 200 OK code: 200 duration: "" @@ -265,19 +265,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/01c07780-6387-4498-bea0-728a073368be method: GET response: - body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' + body: '{"id":"01c07780-6387-4498-bea0-728a073368be","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":"2022-11-22T16:14:53.348476Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 10 Nov 2022 14:25:23 GMT + - Tue, 22 Nov 2022 16:16:39 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -287,7 +287,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 712fee95-aab8-4135-bdfe-9d984593c591 + - 39a508ac-841c-4c35-ac9a-94c3a857cd39 status: 200 OK code: 200 duration: "" @@ -297,19 +297,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/01c07780-6387-4498-bea0-728a073368be method: GET response: - body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' + body: '{"id":"01c07780-6387-4498-bea0-728a073368be","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":"2022-11-22T16:14:53.348476Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 10 Nov 2022 14:25:38 GMT + - Tue, 22 Nov 2022 16:16:54 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -319,7 +319,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 87d57f85-6de4-4b20-adc1-324cca3114d3 + - 341c12c3-e37a-4c54-af81-2284e23ed91d status: 200 OK code: 200 duration: "" @@ -329,19 +329,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/01c07780-6387-4498-bea0-728a073368be method: GET response: - body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' + body: '{"id":"01c07780-6387-4498-bea0-728a073368be","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":"2022-11-22T16:14:53.348476Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 10 Nov 2022 14:25:53 GMT + - Tue, 22 Nov 2022 16:17:09 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -351,7 +351,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c255e1e8-7abb-4998-8316-313d8e9c5ca0 + - 0e6e3651-273f-4b0e-b469-1b9a88500ea6 status: 200 OK code: 200 duration: "" @@ -361,19 +361,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/01c07780-6387-4498-bea0-728a073368be method: GET response: - body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' + body: '{"id":"01c07780-6387-4498-bea0-728a073368be","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":"2022-11-22T16:14:53.348476Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 10 Nov 2022 14:26:08 GMT + - Tue, 22 Nov 2022 16:17:24 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -383,7 +383,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 4baca4c3-67fa-461b-b8e6-31f4fb64fc37 + - f5c7a696-b11a-4b91-83e7-e49eed66678f status: 200 OK code: 200 duration: "" @@ -393,19 +393,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/01c07780-6387-4498-bea0-728a073368be method: GET response: - body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' + body: '{"id":"01c07780-6387-4498-bea0-728a073368be","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":"2022-11-22T16:14:53.348476Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 10 Nov 2022 14:26:23 GMT + - Tue, 22 Nov 2022 16:17:40 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -415,7 +415,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 6510d7bf-ee1c-43cd-8141-a618885ffc0e + - 26828f60-148a-449c-956f-898242305d4f status: 200 OK code: 200 duration: "" @@ -425,19 +425,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/01c07780-6387-4498-bea0-728a073368be method: GET response: - body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' + body: '{"id":"01c07780-6387-4498-bea0-728a073368be","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":"2022-11-22T16:14:53.348476Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 10 Nov 2022 14:26:38 GMT + - Tue, 22 Nov 2022 16:17:55 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -447,7 +447,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - e817e26a-5fa0-4232-85d8-732f56cf7a05 + - 8b6b16e6-d2c3-4559-8c54-393a3366d7eb status: 200 OK code: 200 duration: "" @@ -457,19 +457,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/01c07780-6387-4498-bea0-728a073368be method: GET response: - body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' + body: '{"id":"01c07780-6387-4498-bea0-728a073368be","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":"2022-11-22T16:14:53.348476Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 10 Nov 2022 14:26:53 GMT + - Tue, 22 Nov 2022 16:18:10 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -479,7 +479,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a53d8a12-6b20-46c8-a1c2-d2df94416a1b + - 00c904e6-48d7-4ec6-bd40-85a399c682f4 status: 200 OK code: 200 duration: "" @@ -489,19 +489,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/01c07780-6387-4498-bea0-728a073368be method: GET response: - body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.58.123","port":42112,"name":null,"id":"d442eccd-7401-43c4-a67f-874a8699b08f","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.158.58.123","port":42112,"name":null,"id":"d442eccd-7401-43c4-a67f-874a8699b08f","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' + body: '{"id":"01c07780-6387-4498-bea0-728a073368be","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":"2022-11-22T16:14:53.348476Z","region":"fr-par"}' headers: Content-Length: - - "1114" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 10 Nov 2022 14:27:08 GMT + - Tue, 22 Nov 2022 16:18:25 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -511,7 +511,71 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 73646437-cb2e-4b3c-ab3c-bde9d139694d + - 1ff582a8-6478-4477-a4ca-0348f8497219 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/01c07780-6387-4498-bea0-728a073368be + method: GET + response: + body: '{"id":"01c07780-6387-4498-bea0-728a073368be","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":"2022-11-22T16:14:53.348476Z","region":"fr-par"}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 22 Nov 2022 16:18:40 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 51068d82-c65e-4f29-95de-15a17f573669 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/01c07780-6387-4498-bea0-728a073368be + method: GET + response: + body: '{"id":"01c07780-6387-4498-bea0-728a073368be","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.205.51","port":45107,"name":null,"id":"5268c256-c7bb-40a1-85d2-0a1a59f0b6ca","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.205.51","port":45107,"name":null,"id":"5268c256-c7bb-40a1-85d2-0a1a59f0b6ca","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-22T16:14:53.348476Z","region":"fr-par"}' + headers: + Content-Length: + - "1138" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 22 Nov 2022 16:18:55 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7f190372-ff1b-43e6-866b-8b89efa5ae14 status: 200 OK code: 200 duration: "" @@ -523,11 +587,11 @@ interactions: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc/acls + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/01c07780-6387-4498-bea0-728a073368be/acls method: POST response: - body: '{"rules":[{"ip":"0.0.0.0/0","port":42112,"protocol":"tcp","direction":"inbound","action":"allow","description":"Allow - All"},{"ip":"4.2.3.4/32","port":42112,"protocol":"tcp","direction":"inbound","action":"allow","description":"IP + body: '{"rules":[{"ip":"0.0.0.0/0","port":45107,"protocol":"tcp","direction":"inbound","action":"allow","description":"Allow + All"},{"ip":"4.2.3.4/32","port":45107,"protocol":"tcp","direction":"inbound","action":"allow","description":"IP allowed"}]}' headers: Content-Length: @@ -537,7 +601,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 10 Nov 2022 14:27:09 GMT + - Tue, 22 Nov 2022 16:18:56 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -547,7 +611,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - edad0900-7cd1-4b3f-b2e2-ceda30fcf21c + - 54e5c613-d438-427a-9287-249e98f361bf status: 200 OK code: 200 duration: "" @@ -557,19 +621,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/01c07780-6387-4498-bea0-728a073368be method: GET response: - body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"configuring","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.58.123","port":42112,"name":null,"id":"d442eccd-7401-43c4-a67f-874a8699b08f","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.158.58.123","port":42112,"name":null,"id":"d442eccd-7401-43c4-a67f-874a8699b08f","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' + body: '{"id":"01c07780-6387-4498-bea0-728a073368be","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"configuring","engine":"PostgreSQL-12","upgradable_version":[],"endpoint":{"ip":"51.159.205.51","port":45107,"name":null,"id":"5268c256-c7bb-40a1-85d2-0a1a59f0b6ca","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.205.51","port":45107,"name":null,"id":"5268c256-c7bb-40a1-85d2-0a1a59f0b6ca","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-22T16:14:53.348476Z","region":"fr-par"}' headers: Content-Length: - - "1120" + - "1144" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 10 Nov 2022 14:27:09 GMT + - Tue, 22 Nov 2022 16:18:56 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -579,7 +643,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 00aa3731-19d9-4442-a6b1-40ab0bfc4ba9 + - dc8b4eda-8241-40bd-b8ea-f211e0af0c58 status: 200 OK code: 200 duration: "" @@ -589,19 +653,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/01c07780-6387-4498-bea0-728a073368be method: GET response: - body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.58.123","port":42112,"name":null,"id":"d442eccd-7401-43c4-a67f-874a8699b08f","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.158.58.123","port":42112,"name":null,"id":"d442eccd-7401-43c4-a67f-874a8699b08f","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' + body: '{"id":"01c07780-6387-4498-bea0-728a073368be","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.205.51","port":45107,"name":null,"id":"5268c256-c7bb-40a1-85d2-0a1a59f0b6ca","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.205.51","port":45107,"name":null,"id":"5268c256-c7bb-40a1-85d2-0a1a59f0b6ca","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-22T16:14:53.348476Z","region":"fr-par"}' headers: Content-Length: - - "1114" + - "1138" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 10 Nov 2022 14:27:24 GMT + - Tue, 22 Nov 2022 16:19:11 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -611,7 +675,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - e1ceaceb-c19d-4656-9d53-b3cb1d382607 + - f2f70eb9-dd95-4a7b-90a2-f521283f8058 status: 200 OK code: 200 duration: "" @@ -621,19 +685,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/50fa4d1a-eaeb-447c-bff4-484ba84000cc + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/01c07780-6387-4498-bea0-728a073368be method: DELETE response: - body: '{"id":"50fa4d1a-eaeb-447c-bff4-484ba84000cc","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"deleting","engine":"PostgreSQL-12","endpoint":{"ip":"51.158.58.123","port":42112,"name":null,"id":"d442eccd-7401-43c4-a67f-874a8699b08f","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.158.58.123","port":42112,"name":null,"id":"d442eccd-7401-43c4-a67f-874a8699b08f","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-10T14:23:36.735044Z","region":"fr-par"}' + body: '{"id":"01c07780-6387-4498-bea0-728a073368be","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.205.51","port":45107,"name":null,"id":"5268c256-c7bb-40a1-85d2-0a1a59f0b6ca","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.205.51","port":45107,"name":null,"id":"5268c256-c7bb-40a1-85d2-0a1a59f0b6ca","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-22T16:14:53.348476Z","region":"fr-par"}' headers: Content-Length: - - "1117" + - "1141" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 10 Nov 2022 14:27:24 GMT + - Tue, 22 Nov 2022 16:19:11 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -643,7 +707,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 756bcc04-4191-47c9-ab58-6868e69deea6 + - 24dfbb8f-863d-4349-88a1-d40a30b3d8f5 status: 200 OK code: 200 duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.golden b/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.golden index 9637ffe415..b07c59d8b5 100644 --- a/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.golden +++ b/internal/namespaces/rdb/v1/testdata/test-add-acl-simple.golden @@ -1,13 +1,13 @@ 🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 🟩🟩🟩 STDOUT️ 🟩🟩🟩️ IP PORT PROTOCOL DIRECTION ACTION DESCRIPTION -0.0.0.0/0 42112 tcp inbound allow Allow All -4.2.3.4/32 42112 tcp inbound allow IP allowed +0.0.0.0/0 45107 tcp inbound allow Allow All +4.2.3.4/32 45107 tcp inbound allow IP allowed 🟩🟩🟩 JSON STDOUT 🟩🟩🟩 [ { "ip": "0.0.0.0/0", - "port": 42112, + "port": 45107, "protocol": "tcp", "direction": "inbound", "action": "allow", @@ -15,7 +15,7 @@ IP PORT PROTOCOL DIRECTION ACTION DESCRIPTION }, { "ip": "4.2.3.4/32", - "port": 42112, + "port": 45107, "protocol": "tcp", "direction": "inbound", "action": "allow", diff --git a/internal/namespaces/rdb/v1/testdata/test-delete-acl-simple.cassette.yaml b/internal/namespaces/rdb/v1/testdata/test-delete-acl-simple.cassette.yaml index b0f5da59da..1e5172faa2 100644 --- a/internal/namespaces/rdb/v1/testdata/test-delete-acl-simple.cassette.yaml +++ b/internal/namespaces/rdb/v1/testdata/test-delete-acl-simple.cassette.yaml @@ -12,16 +12,16 @@ interactions: url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances method: POST response: - body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' + body: '{"id":"b497578f-e4d0-4b11-bc6d-67df7938f201","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":"2022-11-22T17:06:03.897208Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 08 Nov 2022 03:54:16 GMT + - Tue, 22 Nov 2022 17:06:05 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -31,7 +31,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f2a73329-cd4c-4294-a2e6-8ab0cd55d38f + - cfb458f7-d8eb-42e0-9950-115fad996bfa status: 200 OK code: 200 duration: "" @@ -41,19 +41,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/b497578f-e4d0-4b11-bc6d-67df7938f201 method: GET response: - body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' + body: '{"id":"b497578f-e4d0-4b11-bc6d-67df7938f201","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":"2022-11-22T17:06:03.897208Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 08 Nov 2022 03:54:16 GMT + - Tue, 22 Nov 2022 17:06:05 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -63,7 +63,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ba9d802e-9fba-466f-bd6d-503408e13de7 + - ebba8b60-bae7-4bad-9682-ffa8246d151c status: 200 OK code: 200 duration: "" @@ -73,19 +73,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/b497578f-e4d0-4b11-bc6d-67df7938f201 method: GET response: - body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' + body: '{"id":"b497578f-e4d0-4b11-bc6d-67df7938f201","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":"2022-11-22T17:06:03.897208Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 08 Nov 2022 03:54:31 GMT + - Tue, 22 Nov 2022 17:06:20 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -95,7 +95,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - de350351-c9c9-4eca-8071-8389b122c80f + - a7e5ac87-41b8-4232-bf17-9f1b527a0cc2 status: 200 OK code: 200 duration: "" @@ -105,19 +105,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/b497578f-e4d0-4b11-bc6d-67df7938f201 method: GET response: - body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' + body: '{"id":"b497578f-e4d0-4b11-bc6d-67df7938f201","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":"2022-11-22T17:06:03.897208Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 08 Nov 2022 03:54:46 GMT + - Tue, 22 Nov 2022 17:06:35 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -127,7 +127,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c5f868f3-a51b-4ab8-999d-39bbe99ccea2 + - bdf92b9d-80a1-43c8-af57-1ff298da137a status: 200 OK code: 200 duration: "" @@ -137,19 +137,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/b497578f-e4d0-4b11-bc6d-67df7938f201 method: GET response: - body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"provisioning","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' + body: '{"id":"b497578f-e4d0-4b11-bc6d-67df7938f201","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":"2022-11-22T17:06:03.897208Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 08 Nov 2022 03:55:01 GMT + - Tue, 22 Nov 2022 17:06:50 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -159,7 +159,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 779d0bf3-27bd-4f58-a9fa-95a0f0400755 + - afd864ab-47c5-4340-970b-976b46d93114 status: 200 OK code: 200 duration: "" @@ -169,19 +169,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/b497578f-e4d0-4b11-bc6d-67df7938f201 method: GET response: - body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' + body: '{"id":"b497578f-e4d0-4b11-bc6d-67df7938f201","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":"2022-11-22T17:06:03.897208Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 08 Nov 2022 03:55:16 GMT + - Tue, 22 Nov 2022 17:07:05 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -191,7 +191,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c1d57fbc-3561-4d5a-b312-395756c4f725 + - cb3ffc61-942a-4229-97c2-c987bb729abe status: 200 OK code: 200 duration: "" @@ -201,19 +201,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/b497578f-e4d0-4b11-bc6d-67df7938f201 method: GET response: - body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' + body: '{"id":"b497578f-e4d0-4b11-bc6d-67df7938f201","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":"2022-11-22T17:06:03.897208Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 08 Nov 2022 03:55:32 GMT + - Tue, 22 Nov 2022 17:07:20 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -223,7 +223,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - fa5e867c-08e4-45a4-bb06-08e34c7890be + - 89707b2a-a475-46df-841c-aa0c172dacfd status: 200 OK code: 200 duration: "" @@ -233,19 +233,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/b497578f-e4d0-4b11-bc6d-67df7938f201 method: GET response: - body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' + body: '{"id":"b497578f-e4d0-4b11-bc6d-67df7938f201","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":"2022-11-22T17:06:03.897208Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 08 Nov 2022 03:55:47 GMT + - Tue, 22 Nov 2022 17:07:36 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -255,7 +255,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 6d60519e-7e43-4e37-becf-315d3456400c + - 95a657bd-9aca-4a36-8823-0a8cb0a882f1 status: 200 OK code: 200 duration: "" @@ -265,19 +265,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/b497578f-e4d0-4b11-bc6d-67df7938f201 method: GET response: - body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' + body: '{"id":"b497578f-e4d0-4b11-bc6d-67df7938f201","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":"2022-11-22T17:06:03.897208Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 08 Nov 2022 03:56:02 GMT + - Tue, 22 Nov 2022 17:07:51 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -287,7 +287,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c1843c3b-81bd-4e55-9b01-6b469c0e162f + - a5469555-e39a-47f3-b46a-d2adf463791c status: 200 OK code: 200 duration: "" @@ -297,19 +297,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/b497578f-e4d0-4b11-bc6d-67df7938f201 method: GET response: - body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' + body: '{"id":"b497578f-e4d0-4b11-bc6d-67df7938f201","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":"2022-11-22T17:06:03.897208Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 08 Nov 2022 03:56:17 GMT + - Tue, 22 Nov 2022 17:08:06 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -319,7 +319,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 6aaeb297-c714-4323-a25f-e58590dbfd3b + - deb675f1-aa03-433a-bb86-2ebcbe6a95d6 status: 200 OK code: 200 duration: "" @@ -329,19 +329,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/b497578f-e4d0-4b11-bc6d-67df7938f201 method: GET response: - body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' + body: '{"id":"b497578f-e4d0-4b11-bc6d-67df7938f201","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":"2022-11-22T17:06:03.897208Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 08 Nov 2022 03:56:32 GMT + - Tue, 22 Nov 2022 17:08:21 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -351,7 +351,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a3a60784-c361-4095-989b-26a82d6ebaaf + - c54a7cb1-900b-438c-af5a-4d789039ac41 status: 200 OK code: 200 duration: "" @@ -361,19 +361,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/b497578f-e4d0-4b11-bc6d-67df7938f201 method: GET response: - body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' + body: '{"id":"b497578f-e4d0-4b11-bc6d-67df7938f201","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":"2022-11-22T17:06:03.897208Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 08 Nov 2022 03:56:47 GMT + - Tue, 22 Nov 2022 17:08:36 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -383,7 +383,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 504cd703-07d2-4eb7-b795-b265ae64ef58 + - 0580c901-c203-4d3a-8b97-53d7c9754124 status: 200 OK code: 200 duration: "" @@ -393,19 +393,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/b497578f-e4d0-4b11-bc6d-67df7938f201 method: GET response: - body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' + body: '{"id":"b497578f-e4d0-4b11-bc6d-67df7938f201","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":"2022-11-22T17:06:03.897208Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 08 Nov 2022 03:57:02 GMT + - Tue, 22 Nov 2022 17:08:51 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -415,7 +415,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - aa2acfe3-6886-4e35-854e-59f10f484e1f + - 8c31473e-4fd4-4f1f-b37c-559c28d0cdcd status: 200 OK code: 200 duration: "" @@ -425,19 +425,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/b497578f-e4d0-4b11-bc6d-67df7938f201 method: GET response: - body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"initializing","engine":"PostgreSQL-12","endpoint":null,"tags":[],"settings":[],"backup_schedule":{"frequency":24,"retention":7,"disabled":false},"is_ha_cluster":false,"read_replicas":[],"node_type":"db-dev-s","volume":{"type":"lssd","size":5000000000},"init_settings":[],"endpoints":[],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' + body: '{"id":"b497578f-e4d0-4b11-bc6d-67df7938f201","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":"2022-11-22T17:06:03.897208Z","region":"fr-par"}' headers: Content-Length: - - "641" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 08 Nov 2022 03:57:17 GMT + - Tue, 22 Nov 2022 17:09:06 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -447,7 +447,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - db0414c6-aad1-4c7a-9d5b-785af1933422 + - dae3dd31-c0aa-4b8e-8ded-cf505f6bcf52 status: 200 OK code: 200 duration: "" @@ -457,19 +457,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/b497578f-e4d0-4b11-bc6d-67df7938f201 method: GET response: - body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.11.69","port":45271,"name":null,"id":"25762232-d6d5-409a-91e3-b30294e61f9b","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.11.69","port":45271,"name":null,"id":"25762232-d6d5-409a-91e3-b30294e61f9b","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' + body: '{"id":"b497578f-e4d0-4b11-bc6d-67df7938f201","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":"2022-11-22T17:06:03.897208Z","region":"fr-par"}' headers: Content-Length: - - "1112" + - "665" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 08 Nov 2022 03:57:33 GMT + - Tue, 22 Nov 2022 17:09:21 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -479,7 +479,71 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 3fe70543-f7f8-496a-ab96-3839b9ca2726 + - 3f7844d7-c92e-4e36-87de-39ea82034adb + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/b497578f-e4d0-4b11-bc6d-67df7938f201 + method: GET + response: + body: '{"id":"b497578f-e4d0-4b11-bc6d-67df7938f201","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":"2022-11-22T17:06:03.897208Z","region":"fr-par"}' + headers: + Content-Length: + - "665" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 22 Nov 2022 17:09:36 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 714dbdbe-886c-413b-a0f8-c53112386d05 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/b497578f-e4d0-4b11-bc6d-67df7938f201 + method: GET + response: + body: '{"id":"b497578f-e4d0-4b11-bc6d-67df7938f201","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":"195.154.70.130","port":4440,"name":null,"id":"c919620f-1335-45d7-b5e7-d2ce4d5f19f9","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.130","port":4440,"name":null,"id":"c919620f-1335-45d7-b5e7-d2ce4d5f19f9","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-22T17:06:03.897208Z","region":"fr-par"}' + headers: + Content-Length: + - "1138" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 22 Nov 2022 17:09:52 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4a2d82ba-d948-41b9-b56f-6773a709a831 status: 200 OK code: 200 duration: "" @@ -491,21 +555,21 @@ interactions: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab/acls + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/b497578f-e4d0-4b11-bc6d-67df7938f201/acls method: POST response: - body: '{"rules":[{"ip":"0.0.0.0/0","port":45271,"protocol":"tcp","direction":"inbound","action":"allow","description":"Allow - All"},{"ip":"1.2.3.4/32","port":45271,"protocol":"tcp","direction":"inbound","action":"allow","description":"IP + body: '{"rules":[{"ip":"0.0.0.0/0","port":4440,"protocol":"tcp","direction":"inbound","action":"allow","description":"Allow + All"},{"ip":"1.2.3.4/32","port":4440,"protocol":"tcp","direction":"inbound","action":"allow","description":"IP allowed"}]}' headers: Content-Length: - - "241" + - "239" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 08 Nov 2022 03:57:33 GMT + - Tue, 22 Nov 2022 17:09:53 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -515,7 +579,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 77d32103-9c78-4e7b-ad6b-95b5dae23b48 + - af58dbe8-4e30-4bcb-a5e1-296925be1775 status: 200 OK code: 200 duration: "" @@ -525,19 +589,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/b497578f-e4d0-4b11-bc6d-67df7938f201 method: GET response: - body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"configuring","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.11.69","port":45271,"name":null,"id":"25762232-d6d5-409a-91e3-b30294e61f9b","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.11.69","port":45271,"name":null,"id":"25762232-d6d5-409a-91e3-b30294e61f9b","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' + body: '{"id":"b497578f-e4d0-4b11-bc6d-67df7938f201","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"configuring","engine":"PostgreSQL-12","upgradable_version":[],"endpoint":{"ip":"195.154.70.130","port":4440,"name":null,"id":"c919620f-1335-45d7-b5e7-d2ce4d5f19f9","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.130","port":4440,"name":null,"id":"c919620f-1335-45d7-b5e7-d2ce4d5f19f9","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-22T17:06:03.897208Z","region":"fr-par"}' headers: Content-Length: - - "1118" + - "1144" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 08 Nov 2022 03:57:33 GMT + - Tue, 22 Nov 2022 17:09:53 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -547,7 +611,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 3361796a-1734-4007-a6a1-1cacd0845342 + - 10f2b04b-a481-44a1-86cb-adf4785d2daa status: 200 OK code: 200 duration: "" @@ -557,19 +621,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/b497578f-e4d0-4b11-bc6d-67df7938f201 method: GET response: - body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.11.69","port":45271,"name":null,"id":"25762232-d6d5-409a-91e3-b30294e61f9b","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.11.69","port":45271,"name":null,"id":"25762232-d6d5-409a-91e3-b30294e61f9b","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' + body: '{"id":"b497578f-e4d0-4b11-bc6d-67df7938f201","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":"195.154.70.130","port":4440,"name":null,"id":"c919620f-1335-45d7-b5e7-d2ce4d5f19f9","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.130","port":4440,"name":null,"id":"c919620f-1335-45d7-b5e7-d2ce4d5f19f9","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-22T17:06:03.897208Z","region":"fr-par"}' headers: Content-Length: - - "1112" + - "1138" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 08 Nov 2022 03:57:48 GMT + - Tue, 22 Nov 2022 17:10:08 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -579,7 +643,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 36425944-451d-4d0f-b465-34cd5186c43b + - 5541ff74-1cb5-4913-b824-97c1e4553c3b status: 200 OK code: 200 duration: "" @@ -591,20 +655,20 @@ interactions: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab/acls + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/b497578f-e4d0-4b11-bc6d-67df7938f201/acls method: DELETE response: - body: '{"rules":[{"ip":"1.2.3.4/32","port":45271,"protocol":"tcp","direction":"inbound","action":"allow","description":"IP + body: '{"rules":[{"ip":"1.2.3.4/32","port":4440,"protocol":"tcp","direction":"inbound","action":"allow","description":"IP allowed"}]}' headers: Content-Length: - - "127" + - "126" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 08 Nov 2022 03:57:48 GMT + - Tue, 22 Nov 2022 17:10:08 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -614,7 +678,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 8d66dafd-d0ea-4cce-8b88-3d71d6edf3ba + - ab402346-9447-412f-9ef3-a76d7446b7f1 status: 200 OK code: 200 duration: "" @@ -624,19 +688,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/b497578f-e4d0-4b11-bc6d-67df7938f201 method: GET response: - body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"configuring","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.11.69","port":45271,"name":null,"id":"25762232-d6d5-409a-91e3-b30294e61f9b","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.11.69","port":45271,"name":null,"id":"25762232-d6d5-409a-91e3-b30294e61f9b","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' + body: '{"id":"b497578f-e4d0-4b11-bc6d-67df7938f201","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"configuring","engine":"PostgreSQL-12","upgradable_version":[],"endpoint":{"ip":"195.154.70.130","port":4440,"name":null,"id":"c919620f-1335-45d7-b5e7-d2ce4d5f19f9","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.130","port":4440,"name":null,"id":"c919620f-1335-45d7-b5e7-d2ce4d5f19f9","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-22T17:06:03.897208Z","region":"fr-par"}' headers: Content-Length: - - "1118" + - "1144" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 08 Nov 2022 03:57:48 GMT + - Tue, 22 Nov 2022 17:10:09 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -646,7 +710,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - bb0fff16-0dff-4525-a027-bb2f361e9e63 + - b59cf178-59e2-4348-bd76-33566dd31672 status: 200 OK code: 200 duration: "" @@ -656,19 +720,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/b497578f-e4d0-4b11-bc6d-67df7938f201 method: GET response: - body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"ready","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.11.69","port":45271,"name":null,"id":"25762232-d6d5-409a-91e3-b30294e61f9b","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.11.69","port":45271,"name":null,"id":"25762232-d6d5-409a-91e3-b30294e61f9b","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' + body: '{"id":"b497578f-e4d0-4b11-bc6d-67df7938f201","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":"195.154.70.130","port":4440,"name":null,"id":"c919620f-1335-45d7-b5e7-d2ce4d5f19f9","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.130","port":4440,"name":null,"id":"c919620f-1335-45d7-b5e7-d2ce4d5f19f9","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-22T17:06:03.897208Z","region":"fr-par"}' headers: Content-Length: - - "1112" + - "1138" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 08 Nov 2022 03:58:04 GMT + - Tue, 22 Nov 2022 17:10:24 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -678,7 +742,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 191b6064-42ac-4d50-9d3f-492fc466c0d8 + - 435bc345-3588-49bf-9003-26a317b6a147 status: 200 OK code: 200 duration: "" @@ -688,19 +752,19 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.19.1; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/9fc5bd93-292b-4a84-bc45-a6ddeedd20ab + url: https://api.scaleway.com/rdb/v1/regions/fr-par/instances/b497578f-e4d0-4b11-bc6d-67df7938f201 method: DELETE response: - body: '{"id":"9fc5bd93-292b-4a84-bc45-a6ddeedd20ab","name":"cli-test","organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5","status":"deleting","engine":"PostgreSQL-12","endpoint":{"ip":"51.159.11.69","port":45271,"name":null,"id":"25762232-d6d5-409a-91e3-b30294e61f9b","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.11.69","port":45271,"name":null,"id":"25762232-d6d5-409a-91e3-b30294e61f9b","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-08T03:54:16.025764Z","region":"fr-par"}' + body: '{"id":"b497578f-e4d0-4b11-bc6d-67df7938f201","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":"195.154.70.130","port":4440,"name":null,"id":"c919620f-1335-45d7-b5e7-d2ce4d5f19f9","load_balancer":{}},"tags":[],"settings":[{"name":"work_mem","value":"4"},{"name":"max_connections","value":"100"},{"name":"effective_cache_size","value":"1300"},{"name":"maintenance_work_mem","value":"150"},{"name":"max_parallel_workers","value":"0"},{"name":"max_parallel_workers_per_gather","value":"0"}],"backup_schedule":{"frequency":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.130","port":4440,"name":null,"id":"c919620f-1335-45d7-b5e7-d2ce4d5f19f9","load_balancer":{}}],"logs_policy":{"max_age_retention":30,"total_disk_retention":null},"backup_same_region":false,"maintenances":[],"created_at":"2022-11-22T17:06:03.897208Z","region":"fr-par"}' headers: Content-Length: - - "1115" + - "1141" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 08 Nov 2022 03:58:04 GMT + - Tue, 22 Nov 2022 17:10:24 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -710,7 +774,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 1e9ea7aa-0012-44b7-9640-3d3ef5eccdd7 + - 8438dd34-34bf-43b7-b005-1454824aaa29 status: 200 OK code: 200 duration: "" diff --git a/internal/namespaces/rdb/v1/testdata/test-delete-acl-simple.golden b/internal/namespaces/rdb/v1/testdata/test-delete-acl-simple.golden index 67e92a669c..9dedd73ac5 100644 --- a/internal/namespaces/rdb/v1/testdata/test-delete-acl-simple.golden +++ b/internal/namespaces/rdb/v1/testdata/test-delete-acl-simple.golden @@ -1,7 +1,7 @@ 🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 🟩🟩🟩 STDOUT️ 🟩🟩🟩️ Rules.0.IP 1.2.3.4/32 -Rules.0.Port 45271 +Rules.0.Port 4440 Rules.0.Protocol tcp Rules.0.Direction inbound Rules.0.Action allow @@ -12,7 +12,7 @@ TotalCount 1 "rules": [ { "ip": "1.2.3.4/32", - "port": 45271, + "port": 4440, "protocol": "tcp", "direction": "inbound", "action": "allow",