From d378c84955c1d382172ecd3f1e27a9463193d607 Mon Sep 17 00:00:00 2001 From: Yacine Fodil <105779815+yfodil@users.noreply.github.com> Date: Wed, 18 Dec 2024 17:43:58 +0100 Subject: [PATCH] tests(vpcgw): update legacy gws to ipam (#4369) --- .../vpcgw/v1/custom_gateway_network_test.go | 4 +- ...st-vpc-gw-gateway-get-simple.cassette.yaml | 446 +++++++------- .../test-vpc-gw-gateway-get-simple.golden | 66 +-- ...w-gateway-network-get-simple.cassette.yaml | 556 ++++++++---------- ...t-vpc-gw-gateway-network-get-simple.golden | 76 +-- internal/testhelpers/helpers_vpcgw.go | 20 +- 6 files changed, 522 insertions(+), 646 deletions(-) diff --git a/internal/namespaces/vpcgw/v1/custom_gateway_network_test.go b/internal/namespaces/vpcgw/v1/custom_gateway_network_test.go index 039aee801d..5ab51849c0 100644 --- a/internal/namespaces/vpcgw/v1/custom_gateway_network_test.go +++ b/internal/namespaces/vpcgw/v1/custom_gateway_network_test.go @@ -18,15 +18,13 @@ func Test_vpcGwGatewayNetworkGet(t *testing.T) { BeforeFunc: core.BeforeFuncCombine( testhelpers.CreatePN(), testhelpers.CreateGateway("GW"), - testhelpers.CreateDHCP(), - testhelpers.CreateGatewayNetworkDHCP("GW"), + testhelpers.CreateGatewayNetwork("GW"), ), Cmd: "scw vpc-gw gateway-network get {{ .GWNT.ID }}", Check: core.TestCheckGolden(), AfterFunc: core.AfterFuncCombine( testhelpers.DeleteGatewayNetwork(), testhelpers.DeletePN(), - testhelpers.DeleteDHCP(), testhelpers.DeleteGateway("GW"), testhelpers.DeleteIPVpcGw("GW"), ), diff --git a/internal/namespaces/vpcgw/v1/testdata/test-vpc-gw-gateway-get-simple.cassette.yaml b/internal/namespaces/vpcgw/v1/testdata/test-vpc-gw-gateway-get-simple.cassette.yaml index 604cdf1938..f3c22232af 100644 --- a/internal/namespaces/vpcgw/v1/testdata/test-vpc-gw-gateway-get-simple.cassette.yaml +++ b/internal/namespaces/vpcgw/v1/testdata/test-vpc-gw-gateway-get-simple.cassette.yaml @@ -2,42 +2,48 @@ version: 1 interactions: - request: - body: '{"id":"e92fc64c-0a33-4293-8a5d-d53b949b38d1", "name":"cli-pn-recursing-keller", - "tags":[], "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:57:34.899248Z", - "updated_at":"2024-02-23T14:57:34.899248Z", "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "subnets":[{"id":"6c7c3739-34d6-416d-9629-eda90bb26f76", "created_at":"2024-02-23T14:57:34.899248Z", - "updated_at":"2024-02-23T14:57:34.899248Z", "subnet":"172.16.28.0/22"}, {"id":"7e876ad6-ae23-466f-b3ee-6f4a151b775b", - "created_at":"2024-02-23T14:57:34.899248Z", "updated_at":"2024-02-23T14:57:34.899248Z", - "subnet":"fd64:badd:7710:ad63::/64"}], "vpc_id":"e092f3d5-d85b-46fd-8d08-025e3282c8c1", + body: '{"id":"8d2e6968-3376-405b-9d10-fb17941a44b2", "name":"cli-pn-heuristic-nightingale", + "tags":[], "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-17T20:17:22.136403Z", + "updated_at":"2024-12-17T20:17:22.136403Z", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "subnets":[{"id":"3ad55249-c254-4170-8787-681360313643", "created_at":"2024-12-17T20:17:22.136403Z", + "updated_at":"2024-12-17T20:17:22.136403Z", "subnet":"172.16.60.0/22", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "private_network_id":"8d2e6968-3376-405b-9d10-fb17941a44b2", "vpc_id":"086a5171-f7ab-4667-a231-840a81203f19"}, + {"id":"201f1ec1-b02d-41c1-9cba-187ba09aded9", "created_at":"2024-12-17T20:17:22.136403Z", + "updated_at":"2024-12-17T20:17:22.136403Z", "subnet":"fd46:78ab:30b8:d61b::/64", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "private_network_id":"8d2e6968-3376-405b-9d10-fb17941a44b2", + "vpc_id":"086a5171-f7ab-4667-a231-840a81203f19"}], "vpc_id":"086a5171-f7ab-4667-a231-840a81203f19", "dhcp_enabled":true, "region":"fr-par"}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks method: POST response: - body: '{"id":"e92fc64c-0a33-4293-8a5d-d53b949b38d1", "name":"cli-pn-recursing-keller", - "tags":[], "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:57:34.899248Z", - "updated_at":"2024-02-23T14:57:34.899248Z", "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "subnets":[{"id":"6c7c3739-34d6-416d-9629-eda90bb26f76", "created_at":"2024-02-23T14:57:34.899248Z", - "updated_at":"2024-02-23T14:57:34.899248Z", "subnet":"172.16.28.0/22"}, {"id":"7e876ad6-ae23-466f-b3ee-6f4a151b775b", - "created_at":"2024-02-23T14:57:34.899248Z", "updated_at":"2024-02-23T14:57:34.899248Z", - "subnet":"fd64:badd:7710:ad63::/64"}], "vpc_id":"e092f3d5-d85b-46fd-8d08-025e3282c8c1", + body: '{"id":"8d2e6968-3376-405b-9d10-fb17941a44b2", "name":"cli-pn-heuristic-nightingale", + "tags":[], "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-17T20:17:22.136403Z", + "updated_at":"2024-12-17T20:17:22.136403Z", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "subnets":[{"id":"3ad55249-c254-4170-8787-681360313643", "created_at":"2024-12-17T20:17:22.136403Z", + "updated_at":"2024-12-17T20:17:22.136403Z", "subnet":"172.16.60.0/22", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "private_network_id":"8d2e6968-3376-405b-9d10-fb17941a44b2", "vpc_id":"086a5171-f7ab-4667-a231-840a81203f19"}, + {"id":"201f1ec1-b02d-41c1-9cba-187ba09aded9", "created_at":"2024-12-17T20:17:22.136403Z", + "updated_at":"2024-12-17T20:17:22.136403Z", "subnet":"fd46:78ab:30b8:d61b::/64", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "private_network_id":"8d2e6968-3376-405b-9d10-fb17941a44b2", + "vpc_id":"086a5171-f7ab-4667-a231-840a81203f19"}], "vpc_id":"086a5171-f7ab-4667-a231-840a81203f19", "dhcp_enabled":true, "region":"fr-par"}' headers: Content-Length: - - "724" + - "1055" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:57:35 GMT + - Tue, 17 Dec 2024 20:17:22 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -45,19 +51,19 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - d152b521-269b-4b4f-9c6d-20164850cedd + - 8863bf70-23f8-49ee-95bb-c54b24dcc623 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:57:36.125943Z", - "updated_at":"2024-02-23T14:57:36.125943Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, - "zone":"fr-par-1"}, "status":"allocating", "name":"cli-gw-dreamy-booth", "tags":[], - "ip":{"id":"2c139c4c-b21f-48f1-89ac-3aa31ad3dc88", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:57:36.110619Z", - "updated_at":"2024-02-23T14:57:36.110619Z", "tags":[], "address":"51.15.231.133", - "reverse":"133-231-15-51.instances.scw.cloud", "gateway_id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", + body: '{"id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-17T20:17:23.590269Z", + "updated_at":"2024-12-17T20:17:23.590269Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, + "zone":"fr-par-1"}, "status":"allocating", "name":"cli-gw-compassionate-murdock", + "tags":[], "ip":{"id":"f89e9296-419a-4cf5-90df-35fc24ad438a", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-17T20:17:23.570490Z", + "updated_at":"2024-12-17T20:17:23.570490Z", "tags":[], "address":"51.158.101.65", + "reverse":"65-101-158-51.instances.scw.cloud", "gateway_id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", "zone":"fr-par-1"}, "gateway_networks":[], "upstream_dns_servers":[], "version":null, "can_upgrade_to":null, "bastion_enabled":false, "bastion_port":61000, "smtp_enabled":false, "is_legacy":false, "ip_mobility_enabled":false, "zone":"fr-par-1"}' @@ -66,32 +72,32 @@ interactions: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateways method: POST response: - body: '{"id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:57:36.125943Z", - "updated_at":"2024-02-23T14:57:36.125943Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, - "zone":"fr-par-1"}, "status":"allocating", "name":"cli-gw-dreamy-booth", "tags":[], - "ip":{"id":"2c139c4c-b21f-48f1-89ac-3aa31ad3dc88", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:57:36.110619Z", - "updated_at":"2024-02-23T14:57:36.110619Z", "tags":[], "address":"51.15.231.133", - "reverse":"133-231-15-51.instances.scw.cloud", "gateway_id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", + body: '{"id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-17T20:17:23.590269Z", + "updated_at":"2024-12-17T20:17:23.590269Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, + "zone":"fr-par-1"}, "status":"allocating", "name":"cli-gw-compassionate-murdock", + "tags":[], "ip":{"id":"f89e9296-419a-4cf5-90df-35fc24ad438a", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-17T20:17:23.570490Z", + "updated_at":"2024-12-17T20:17:23.570490Z", "tags":[], "address":"51.158.101.65", + "reverse":"65-101-158-51.instances.scw.cloud", "gateway_id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", "zone":"fr-par-1"}, "gateway_networks":[], "upstream_dns_servers":[], "version":null, "can_upgrade_to":null, "bastion_enabled":false, "bastion_port":61000, "smtp_enabled":false, "is_legacy":false, "ip_mobility_enabled":false, "zone":"fr-par-1"}' headers: Content-Length: - - "1011" + - "1020" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:57:36 GMT + - Tue, 17 Dec 2024 20:17:23 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -99,51 +105,51 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 634c8b0a-a15f-4deb-af00-89e3fa43da30 + - e6e5bdd2-b885-48c7-9191-20e0d4da1de6 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:57:36.125943Z", - "updated_at":"2024-02-23T14:57:36.165772Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, - "zone":"fr-par-1"}, "status":"allocating", "name":"cli-gw-dreamy-booth", "tags":[], - "ip":{"id":"2c139c4c-b21f-48f1-89ac-3aa31ad3dc88", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:57:36.110619Z", - "updated_at":"2024-02-23T14:57:36.110619Z", "tags":[], "address":"51.15.231.133", - "reverse":"133-231-15-51.instances.scw.cloud", "gateway_id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", - "zone":"fr-par-1"}, "gateway_networks":[], "upstream_dns_servers":[], "version":"0.6.1", + body: '{"id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-17T20:17:23.590269Z", + "updated_at":"2024-12-17T20:17:23.627078Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, + "zone":"fr-par-1"}, "status":"allocating", "name":"cli-gw-compassionate-murdock", + "tags":[], "ip":{"id":"f89e9296-419a-4cf5-90df-35fc24ad438a", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-17T20:17:23.570490Z", + "updated_at":"2024-12-17T20:17:23.570490Z", "tags":[], "address":"51.158.101.65", + "reverse":"65-101-158-51.instances.scw.cloud", "gateway_id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", + "zone":"fr-par-1"}, "gateway_networks":[], "upstream_dns_servers":[], "version":"0.7.2", "can_upgrade_to":null, "bastion_enabled":false, "bastion_port":61000, "smtp_enabled":false, - "is_legacy":false, "ip_mobility_enabled":false, "zone":"fr-par-1"}' + "is_legacy":false, "ip_mobility_enabled":true, "zone":"fr-par-1"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateways/842f7e39-cfed-41a3-bb7f-d4e77d069129 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateways/5acaf45d-d60a-416b-9901-0598a7c6fc0d method: GET response: - body: '{"id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:57:36.125943Z", - "updated_at":"2024-02-23T14:57:36.165772Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, - "zone":"fr-par-1"}, "status":"allocating", "name":"cli-gw-dreamy-booth", "tags":[], - "ip":{"id":"2c139c4c-b21f-48f1-89ac-3aa31ad3dc88", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:57:36.110619Z", - "updated_at":"2024-02-23T14:57:36.110619Z", "tags":[], "address":"51.15.231.133", - "reverse":"133-231-15-51.instances.scw.cloud", "gateway_id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", - "zone":"fr-par-1"}, "gateway_networks":[], "upstream_dns_servers":[], "version":"0.6.1", + body: '{"id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-17T20:17:23.590269Z", + "updated_at":"2024-12-17T20:17:23.627078Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, + "zone":"fr-par-1"}, "status":"allocating", "name":"cli-gw-compassionate-murdock", + "tags":[], "ip":{"id":"f89e9296-419a-4cf5-90df-35fc24ad438a", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-17T20:17:23.570490Z", + "updated_at":"2024-12-17T20:17:23.570490Z", "tags":[], "address":"51.158.101.65", + "reverse":"65-101-158-51.instances.scw.cloud", "gateway_id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", + "zone":"fr-par-1"}, "gateway_networks":[], "upstream_dns_servers":[], "version":"0.7.2", "can_upgrade_to":null, "bastion_enabled":false, "bastion_port":61000, "smtp_enabled":false, - "is_legacy":false, "ip_mobility_enabled":false, "zone":"fr-par-1"}' + "is_legacy":false, "ip_mobility_enabled":true, "zone":"fr-par-1"}' headers: Content-Length: - - "1014" + - "1022" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:57:36 GMT + - Tue, 17 Dec 2024 20:17:23 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -151,51 +157,51 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f50211b4-17ca-4c48-a6e8-c87a98c8bba5 + - 8cf71c79-7000-40ca-8205-6af447cd899c status: 200 OK code: 200 duration: "" - request: - body: '{"id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:57:36.125943Z", - "updated_at":"2024-02-23T14:57:36.775395Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, - "zone":"fr-par-1"}, "status":"running", "name":"cli-gw-dreamy-booth", "tags":[], - "ip":{"id":"2c139c4c-b21f-48f1-89ac-3aa31ad3dc88", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:57:36.110619Z", - "updated_at":"2024-02-23T14:57:36.110619Z", "tags":[], "address":"51.15.231.133", - "reverse":"133-231-15-51.instances.scw.cloud", "gateway_id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", - "zone":"fr-par-1"}, "gateway_networks":[], "upstream_dns_servers":[], "version":"0.6.1", + body: '{"id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-17T20:17:23.590269Z", + "updated_at":"2024-12-17T20:17:26.362992Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, + "zone":"fr-par-1"}, "status":"running", "name":"cli-gw-compassionate-murdock", + "tags":[], "ip":{"id":"f89e9296-419a-4cf5-90df-35fc24ad438a", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-17T20:17:23.570490Z", + "updated_at":"2024-12-17T20:17:23.570490Z", "tags":[], "address":"51.158.101.65", + "reverse":"65-101-158-51.instances.scw.cloud", "gateway_id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", + "zone":"fr-par-1"}, "gateway_networks":[], "upstream_dns_servers":[], "version":"0.7.2", "can_upgrade_to":null, "bastion_enabled":false, "bastion_port":61000, "smtp_enabled":false, - "is_legacy":false, "ip_mobility_enabled":false, "zone":"fr-par-1"}' + "is_legacy":false, "ip_mobility_enabled":true, "zone":"fr-par-1"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateways/842f7e39-cfed-41a3-bb7f-d4e77d069129 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateways/5acaf45d-d60a-416b-9901-0598a7c6fc0d method: GET response: - body: '{"id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:57:36.125943Z", - "updated_at":"2024-02-23T14:57:36.775395Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, - "zone":"fr-par-1"}, "status":"running", "name":"cli-gw-dreamy-booth", "tags":[], - "ip":{"id":"2c139c4c-b21f-48f1-89ac-3aa31ad3dc88", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:57:36.110619Z", - "updated_at":"2024-02-23T14:57:36.110619Z", "tags":[], "address":"51.15.231.133", - "reverse":"133-231-15-51.instances.scw.cloud", "gateway_id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", - "zone":"fr-par-1"}, "gateway_networks":[], "upstream_dns_servers":[], "version":"0.6.1", + body: '{"id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-17T20:17:23.590269Z", + "updated_at":"2024-12-17T20:17:26.362992Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, + "zone":"fr-par-1"}, "status":"running", "name":"cli-gw-compassionate-murdock", + "tags":[], "ip":{"id":"f89e9296-419a-4cf5-90df-35fc24ad438a", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-17T20:17:23.570490Z", + "updated_at":"2024-12-17T20:17:23.570490Z", "tags":[], "address":"51.158.101.65", + "reverse":"65-101-158-51.instances.scw.cloud", "gateway_id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", + "zone":"fr-par-1"}, "gateway_networks":[], "upstream_dns_servers":[], "version":"0.7.2", "can_upgrade_to":null, "bastion_enabled":false, "bastion_port":61000, "smtp_enabled":false, - "is_legacy":false, "ip_mobility_enabled":false, "zone":"fr-par-1"}' + "is_legacy":false, "ip_mobility_enabled":true, "zone":"fr-par-1"}' headers: Content-Length: - - "1011" + - "1019" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:57:51 GMT + - Tue, 17 Dec 2024 20:17:38 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -203,43 +209,43 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 5df70175-4a81-45e0-aec1-903d18cb5488 + - e80cbbbb-6dab-40a2-ace9-20878ba5dfd4 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"94a3b5f9-8a80-40f8-9560-5079747e0679", "created_at":"2024-02-23T14:57:51.402979Z", - "updated_at":"2024-02-23T14:57:51.402979Z", "gateway_id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", - "private_network_id":"e92fc64c-0a33-4293-8a5d-d53b949b38d1", "mac_address":null, - "enable_masquerade":false, "status":"created", "dhcp":null, "enable_dhcp":false, - "address":"172.16.28.2/22", "ipam_config":{"push_default_route":false, "ipam_ip_id":"36a6c5de-695b-4b79-a435-07308cb0e25a"}, + body: '{"id":"e08f8ff5-c00b-4cde-badd-a6c6a5dff911", "created_at":"2024-12-17T20:17:39.105486Z", + "updated_at":"2024-12-17T20:17:39.105486Z", "gateway_id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", + "private_network_id":"8d2e6968-3376-405b-9d10-fb17941a44b2", "mac_address":null, + "enable_masquerade":false, "status":"created", "dhcp":null, "enable_dhcp":true, + "address":"172.16.60.2/22", "ipam_config":{"push_default_route":true, "ipam_ip_id":"48b053e5-e9db-4186-a215-0e3b13899b30"}, "zone":"fr-par-1"}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateway-networks method: POST response: - body: '{"id":"94a3b5f9-8a80-40f8-9560-5079747e0679", "created_at":"2024-02-23T14:57:51.402979Z", - "updated_at":"2024-02-23T14:57:51.402979Z", "gateway_id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", - "private_network_id":"e92fc64c-0a33-4293-8a5d-d53b949b38d1", "mac_address":null, - "enable_masquerade":false, "status":"created", "dhcp":null, "enable_dhcp":false, - "address":"172.16.28.2/22", "ipam_config":{"push_default_route":false, "ipam_ip_id":"36a6c5de-695b-4b79-a435-07308cb0e25a"}, + body: '{"id":"e08f8ff5-c00b-4cde-badd-a6c6a5dff911", "created_at":"2024-12-17T20:17:39.105486Z", + "updated_at":"2024-12-17T20:17:39.105486Z", "gateway_id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", + "private_network_id":"8d2e6968-3376-405b-9d10-fb17941a44b2", "mac_address":null, + "enable_masquerade":false, "status":"created", "dhcp":null, "enable_dhcp":true, + "address":"172.16.60.2/22", "ipam_config":{"push_default_route":true, "ipam_ip_id":"48b053e5-e9db-4186-a215-0e3b13899b30"}, "zone":"fr-par-1"}' headers: Content-Length: - - "492" + - "490" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:57:51 GMT + - Tue, 17 Dec 2024 20:17:39 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -247,41 +253,41 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ce5e105a-e0f2-4b4d-a85f-5efbd9954fe3 + - d975c20f-baa8-438c-a5ae-4efcbb6ac275 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"94a3b5f9-8a80-40f8-9560-5079747e0679", "created_at":"2024-02-23T14:57:51.402979Z", - "updated_at":"2024-02-23T14:57:51.402979Z", "gateway_id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", - "private_network_id":"e92fc64c-0a33-4293-8a5d-d53b949b38d1", "mac_address":null, - "enable_masquerade":false, "status":"created", "dhcp":null, "enable_dhcp":false, - "address":"172.16.28.2/22", "ipam_config":{"push_default_route":false, "ipam_ip_id":"36a6c5de-695b-4b79-a435-07308cb0e25a"}, + body: '{"id":"e08f8ff5-c00b-4cde-badd-a6c6a5dff911", "created_at":"2024-12-17T20:17:39.105486Z", + "updated_at":"2024-12-17T20:17:39.105486Z", "gateway_id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", + "private_network_id":"8d2e6968-3376-405b-9d10-fb17941a44b2", "mac_address":null, + "enable_masquerade":false, "status":"created", "dhcp":null, "enable_dhcp":true, + "address":"172.16.60.2/22", "ipam_config":{"push_default_route":true, "ipam_ip_id":"48b053e5-e9db-4186-a215-0e3b13899b30"}, "zone":"fr-par-1"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateway-networks/94a3b5f9-8a80-40f8-9560-5079747e0679 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateway-networks/e08f8ff5-c00b-4cde-badd-a6c6a5dff911 method: GET response: - body: '{"id":"94a3b5f9-8a80-40f8-9560-5079747e0679", "created_at":"2024-02-23T14:57:51.402979Z", - "updated_at":"2024-02-23T14:57:51.402979Z", "gateway_id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", - "private_network_id":"e92fc64c-0a33-4293-8a5d-d53b949b38d1", "mac_address":null, - "enable_masquerade":false, "status":"created", "dhcp":null, "enable_dhcp":false, - "address":"172.16.28.2/22", "ipam_config":{"push_default_route":false, "ipam_ip_id":"36a6c5de-695b-4b79-a435-07308cb0e25a"}, + body: '{"id":"e08f8ff5-c00b-4cde-badd-a6c6a5dff911", "created_at":"2024-12-17T20:17:39.105486Z", + "updated_at":"2024-12-17T20:17:39.105486Z", "gateway_id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", + "private_network_id":"8d2e6968-3376-405b-9d10-fb17941a44b2", "mac_address":null, + "enable_masquerade":false, "status":"created", "dhcp":null, "enable_dhcp":true, + "address":"172.16.60.2/22", "ipam_config":{"push_default_route":true, "ipam_ip_id":"48b053e5-e9db-4186-a215-0e3b13899b30"}, "zone":"fr-par-1"}' headers: Content-Length: - - "492" + - "490" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:57:52 GMT + - Tue, 17 Dec 2024 20:17:39 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -289,41 +295,41 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 022ef597-55f9-48bf-8d49-1c5045a5c0dd + - 513bbd3c-1a58-41ac-8cab-f4b4f57d0416 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"94a3b5f9-8a80-40f8-9560-5079747e0679", "created_at":"2024-02-23T14:57:51.402979Z", - "updated_at":"2024-02-23T14:58:03.955522Z", "gateway_id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", - "private_network_id":"e92fc64c-0a33-4293-8a5d-d53b949b38d1", "mac_address":"02:00:00:18:95:2B", - "enable_masquerade":false, "status":"ready", "dhcp":null, "enable_dhcp":false, - "address":"172.16.28.2/22", "ipam_config":{"push_default_route":false, "ipam_ip_id":"36a6c5de-695b-4b79-a435-07308cb0e25a"}, + body: '{"id":"e08f8ff5-c00b-4cde-badd-a6c6a5dff911", "created_at":"2024-12-17T20:17:39.105486Z", + "updated_at":"2024-12-17T20:17:47.412708Z", "gateway_id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", + "private_network_id":"8d2e6968-3376-405b-9d10-fb17941a44b2", "mac_address":"02:00:00:1E:FA:2E", + "enable_masquerade":false, "status":"ready", "dhcp":null, "enable_dhcp":true, + "address":"172.16.60.2/22", "ipam_config":{"push_default_route":true, "ipam_ip_id":"48b053e5-e9db-4186-a215-0e3b13899b30"}, "zone":"fr-par-1"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateway-networks/94a3b5f9-8a80-40f8-9560-5079747e0679 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateway-networks/e08f8ff5-c00b-4cde-badd-a6c6a5dff911 method: GET response: - body: '{"id":"94a3b5f9-8a80-40f8-9560-5079747e0679", "created_at":"2024-02-23T14:57:51.402979Z", - "updated_at":"2024-02-23T14:58:03.955522Z", "gateway_id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", - "private_network_id":"e92fc64c-0a33-4293-8a5d-d53b949b38d1", "mac_address":"02:00:00:18:95:2B", - "enable_masquerade":false, "status":"ready", "dhcp":null, "enable_dhcp":false, - "address":"172.16.28.2/22", "ipam_config":{"push_default_route":false, "ipam_ip_id":"36a6c5de-695b-4b79-a435-07308cb0e25a"}, + body: '{"id":"e08f8ff5-c00b-4cde-badd-a6c6a5dff911", "created_at":"2024-12-17T20:17:39.105486Z", + "updated_at":"2024-12-17T20:17:47.412708Z", "gateway_id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", + "private_network_id":"8d2e6968-3376-405b-9d10-fb17941a44b2", "mac_address":"02:00:00:1E:FA:2E", + "enable_masquerade":false, "status":"ready", "dhcp":null, "enable_dhcp":true, + "address":"172.16.60.2/22", "ipam_config":{"push_default_route":true, "ipam_ip_id":"48b053e5-e9db-4186-a215-0e3b13899b30"}, "zone":"fr-par-1"}' headers: Content-Length: - - "505" + - "503" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:58:07 GMT + - Tue, 17 Dec 2024 20:17:54 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -331,61 +337,61 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 423f30ed-009b-485d-b51e-ec430ef344ab + - c119aeee-5a93-4056-90ed-dd66f7da2b4f status: 200 OK code: 200 duration: "" - request: - body: '{"id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:57:36.125943Z", - "updated_at":"2024-02-23T14:58:04.098065Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, - "zone":"fr-par-1"}, "status":"running", "name":"cli-gw-dreamy-booth", "tags":[], - "ip":{"id":"2c139c4c-b21f-48f1-89ac-3aa31ad3dc88", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:57:36.110619Z", - "updated_at":"2024-02-23T14:57:36.110619Z", "tags":[], "address":"51.15.231.133", - "reverse":"133-231-15-51.instances.scw.cloud", "gateway_id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", - "zone":"fr-par-1"}, "gateway_networks":[{"id":"94a3b5f9-8a80-40f8-9560-5079747e0679", - "created_at":"2024-02-23T14:57:51.402979Z", "updated_at":"2024-02-23T14:58:03.955522Z", - "gateway_id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", "private_network_id":"e92fc64c-0a33-4293-8a5d-d53b949b38d1", - "mac_address":"02:00:00:18:95:2B", "enable_masquerade":false, "status":"ready", - "dhcp":null, "enable_dhcp":false, "address":"172.16.28.2/22", "ipam_config":{"push_default_route":false, - "ipam_ip_id":"36a6c5de-695b-4b79-a435-07308cb0e25a"}, "zone":"fr-par-1"}], "upstream_dns_servers":[], - "version":"0.6.1", "can_upgrade_to":null, "bastion_enabled":false, "bastion_port":61000, - "smtp_enabled":false, "is_legacy":false, "ip_mobility_enabled":false, "zone":"fr-par-1"}' + body: '{"id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-17T20:17:23.590269Z", + "updated_at":"2024-12-17T20:17:47.544433Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, + "zone":"fr-par-1"}, "status":"running", "name":"cli-gw-compassionate-murdock", + "tags":[], "ip":{"id":"f89e9296-419a-4cf5-90df-35fc24ad438a", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-17T20:17:23.570490Z", + "updated_at":"2024-12-17T20:17:23.570490Z", "tags":[], "address":"51.158.101.65", + "reverse":"65-101-158-51.instances.scw.cloud", "gateway_id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", + "zone":"fr-par-1"}, "gateway_networks":[{"id":"e08f8ff5-c00b-4cde-badd-a6c6a5dff911", + "created_at":"2024-12-17T20:17:39.105486Z", "updated_at":"2024-12-17T20:17:47.412708Z", + "gateway_id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", "private_network_id":"8d2e6968-3376-405b-9d10-fb17941a44b2", + "mac_address":"02:00:00:1E:FA:2E", "enable_masquerade":false, "status":"ready", + "dhcp":null, "enable_dhcp":true, "address":"172.16.60.2/22", "ipam_config":{"push_default_route":true, + "ipam_ip_id":"48b053e5-e9db-4186-a215-0e3b13899b30"}, "zone":"fr-par-1"}], "upstream_dns_servers":[], + "version":"0.7.2", "can_upgrade_to":null, "bastion_enabled":false, "bastion_port":61000, + "smtp_enabled":false, "is_legacy":false, "ip_mobility_enabled":true, "zone":"fr-par-1"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateways/842f7e39-cfed-41a3-bb7f-d4e77d069129 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateways/5acaf45d-d60a-416b-9901-0598a7c6fc0d method: GET response: - body: '{"id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:57:36.125943Z", - "updated_at":"2024-02-23T14:58:04.098065Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, - "zone":"fr-par-1"}, "status":"running", "name":"cli-gw-dreamy-booth", "tags":[], - "ip":{"id":"2c139c4c-b21f-48f1-89ac-3aa31ad3dc88", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:57:36.110619Z", - "updated_at":"2024-02-23T14:57:36.110619Z", "tags":[], "address":"51.15.231.133", - "reverse":"133-231-15-51.instances.scw.cloud", "gateway_id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", - "zone":"fr-par-1"}, "gateway_networks":[{"id":"94a3b5f9-8a80-40f8-9560-5079747e0679", - "created_at":"2024-02-23T14:57:51.402979Z", "updated_at":"2024-02-23T14:58:03.955522Z", - "gateway_id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", "private_network_id":"e92fc64c-0a33-4293-8a5d-d53b949b38d1", - "mac_address":"02:00:00:18:95:2B", "enable_masquerade":false, "status":"ready", - "dhcp":null, "enable_dhcp":false, "address":"172.16.28.2/22", "ipam_config":{"push_default_route":false, - "ipam_ip_id":"36a6c5de-695b-4b79-a435-07308cb0e25a"}, "zone":"fr-par-1"}], "upstream_dns_servers":[], - "version":"0.6.1", "can_upgrade_to":null, "bastion_enabled":false, "bastion_port":61000, - "smtp_enabled":false, "is_legacy":false, "ip_mobility_enabled":false, "zone":"fr-par-1"}' + body: '{"id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-17T20:17:23.590269Z", + "updated_at":"2024-12-17T20:17:47.544433Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, + "zone":"fr-par-1"}, "status":"running", "name":"cli-gw-compassionate-murdock", + "tags":[], "ip":{"id":"f89e9296-419a-4cf5-90df-35fc24ad438a", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-17T20:17:23.570490Z", + "updated_at":"2024-12-17T20:17:23.570490Z", "tags":[], "address":"51.158.101.65", + "reverse":"65-101-158-51.instances.scw.cloud", "gateway_id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", + "zone":"fr-par-1"}, "gateway_networks":[{"id":"e08f8ff5-c00b-4cde-badd-a6c6a5dff911", + "created_at":"2024-12-17T20:17:39.105486Z", "updated_at":"2024-12-17T20:17:47.412708Z", + "gateway_id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", "private_network_id":"8d2e6968-3376-405b-9d10-fb17941a44b2", + "mac_address":"02:00:00:1E:FA:2E", "enable_masquerade":false, "status":"ready", + "dhcp":null, "enable_dhcp":true, "address":"172.16.60.2/22", "ipam_config":{"push_default_route":true, + "ipam_ip_id":"48b053e5-e9db-4186-a215-0e3b13899b30"}, "zone":"fr-par-1"}], "upstream_dns_servers":[], + "version":"0.7.2", "can_upgrade_to":null, "bastion_enabled":false, "bastion_port":61000, + "smtp_enabled":false, "is_legacy":false, "ip_mobility_enabled":true, "zone":"fr-par-1"}' headers: Content-Length: - - "1516" + - "1522" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:58:07 GMT + - Tue, 17 Dec 2024 20:17:54 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -393,7 +399,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 0e0e89e7-d42e-4c32-803c-a163d233355e + - bcd46864-e944-4ae0-8500-209437a93010 status: 200 OK code: 200 duration: "" @@ -402,8 +408,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateway-networks/94a3b5f9-8a80-40f8-9560-5079747e0679?cleanup_dhcp=false + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateway-networks/e08f8ff5-c00b-4cde-badd-a6c6a5dff911?cleanup_dhcp=false method: DELETE response: body: "" @@ -413,9 +419,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:58:07 GMT + - Tue, 17 Dec 2024 20:17:54 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -423,41 +429,41 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - e3275fab-4157-4f5a-b3ae-99463ca26680 + - 91d5268e-ee5b-44c9-ba80-637e0ca71e1b status: 204 No Content code: 204 duration: "" - request: - body: '{"id":"94a3b5f9-8a80-40f8-9560-5079747e0679", "created_at":"2024-02-23T14:57:51.402979Z", - "updated_at":"2024-02-23T14:58:07.807763Z", "gateway_id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", - "private_network_id":"e92fc64c-0a33-4293-8a5d-d53b949b38d1", "mac_address":"02:00:00:18:95:2B", - "enable_masquerade":false, "status":"detaching", "dhcp":null, "enable_dhcp":false, - "address":"172.16.28.2/22", "ipam_config":{"push_default_route":false, "ipam_ip_id":"36a6c5de-695b-4b79-a435-07308cb0e25a"}, + body: '{"id":"e08f8ff5-c00b-4cde-badd-a6c6a5dff911", "created_at":"2024-12-17T20:17:39.105486Z", + "updated_at":"2024-12-17T20:17:54.458905Z", "gateway_id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", + "private_network_id":"8d2e6968-3376-405b-9d10-fb17941a44b2", "mac_address":"02:00:00:1E:FA:2E", + "enable_masquerade":false, "status":"detaching", "dhcp":null, "enable_dhcp":true, + "address":"172.16.60.2/22", "ipam_config":{"push_default_route":true, "ipam_ip_id":"48b053e5-e9db-4186-a215-0e3b13899b30"}, "zone":"fr-par-1"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateway-networks/94a3b5f9-8a80-40f8-9560-5079747e0679 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateway-networks/e08f8ff5-c00b-4cde-badd-a6c6a5dff911 method: GET response: - body: '{"id":"94a3b5f9-8a80-40f8-9560-5079747e0679", "created_at":"2024-02-23T14:57:51.402979Z", - "updated_at":"2024-02-23T14:58:07.807763Z", "gateway_id":"842f7e39-cfed-41a3-bb7f-d4e77d069129", - "private_network_id":"e92fc64c-0a33-4293-8a5d-d53b949b38d1", "mac_address":"02:00:00:18:95:2B", - "enable_masquerade":false, "status":"detaching", "dhcp":null, "enable_dhcp":false, - "address":"172.16.28.2/22", "ipam_config":{"push_default_route":false, "ipam_ip_id":"36a6c5de-695b-4b79-a435-07308cb0e25a"}, + body: '{"id":"e08f8ff5-c00b-4cde-badd-a6c6a5dff911", "created_at":"2024-12-17T20:17:39.105486Z", + "updated_at":"2024-12-17T20:17:54.458905Z", "gateway_id":"5acaf45d-d60a-416b-9901-0598a7c6fc0d", + "private_network_id":"8d2e6968-3376-405b-9d10-fb17941a44b2", "mac_address":"02:00:00:1E:FA:2E", + "enable_masquerade":false, "status":"detaching", "dhcp":null, "enable_dhcp":true, + "address":"172.16.60.2/22", "ipam_config":{"push_default_route":true, "ipam_ip_id":"48b053e5-e9db-4186-a215-0e3b13899b30"}, "zone":"fr-par-1"}' headers: Content-Length: - - "509" + - "507" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:58:07 GMT + - Tue, 17 Dec 2024 20:17:54 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -465,20 +471,20 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 3a8d96bf-e980-4193-a696-0eb9390a6bd5 + - cc49cb6c-ac74-4203-b344-87fcbb818d05 status: 200 OK code: 200 duration: "" - request: - body: '{"message":"resource is not found","resource":"gateway_network","resource_id":"94a3b5f9-8a80-40f8-9560-5079747e0679","type":"not_found"}' + body: '{"message":"resource is not found","resource":"gateway_network","resource_id":"e08f8ff5-c00b-4cde-badd-a6c6a5dff911","type":"not_found"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateway-networks/94a3b5f9-8a80-40f8-9560-5079747e0679 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateway-networks/e08f8ff5-c00b-4cde-badd-a6c6a5dff911 method: GET response: - body: '{"message":"resource is not found","resource":"gateway_network","resource_id":"94a3b5f9-8a80-40f8-9560-5079747e0679","type":"not_found"}' + body: '{"message":"resource is not found","resource":"gateway_network","resource_id":"e08f8ff5-c00b-4cde-badd-a6c6a5dff911","type":"not_found"}' headers: Content-Length: - "136" @@ -487,9 +493,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:58:22 GMT + - Tue, 17 Dec 2024 20:18:09 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -497,7 +503,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - cd33f578-d043-4161-a5b1-2a0b171e8b63 + - f6bf753e-f26a-4a35-a292-5c969e775468 status: 404 Not Found code: 404 duration: "" @@ -506,8 +512,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/e92fc64c-0a33-4293-8a5d-d53b949b38d1 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/8d2e6968-3376-405b-9d10-fb17941a44b2 method: DELETE response: body: "" @@ -517,9 +523,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:58:24 GMT + - Tue, 17 Dec 2024 20:18:10 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -527,7 +533,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c8b00bc2-e9ea-4018-b6f4-02c382849a7d + - 94392a17-d5e4-4c0a-bed5-8f52b287f484 status: 204 No Content code: 204 duration: "" @@ -536,8 +542,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateways/842f7e39-cfed-41a3-bb7f-d4e77d069129?cleanup_dhcp=false + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateways/5acaf45d-d60a-416b-9901-0598a7c6fc0d?cleanup_dhcp=false method: DELETE response: body: "" @@ -547,9 +553,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:58:24 GMT + - Tue, 17 Dec 2024 20:18:10 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -557,7 +563,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 22e2150a-45fb-470e-9646-fa6c88d8ca61 + - f5679ff1-c467-4037-90d7-8ddb7330848c status: 204 No Content code: 204 duration: "" @@ -566,8 +572,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/ips/2c139c4c-b21f-48f1-89ac-3aa31ad3dc88 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/ips/f89e9296-419a-4cf5-90df-35fc24ad438a method: DELETE response: body: "" @@ -577,9 +583,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:58:24 GMT + - Tue, 17 Dec 2024 20:18:11 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-3;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -587,7 +593,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 2c670153-6b42-4c47-a234-95564a980b56 + - 5cce3a7b-0954-41e9-9815-0bff902474ff status: 204 No Content code: 204 duration: "" diff --git a/internal/namespaces/vpcgw/v1/testdata/test-vpc-gw-gateway-get-simple.golden b/internal/namespaces/vpcgw/v1/testdata/test-vpc-gw-gateway-get-simple.golden index d47f89d7d3..5f0aa2170a 100644 --- a/internal/namespaces/vpcgw/v1/testdata/test-vpc-gw-gateway-get-simple.golden +++ b/internal/namespaces/vpcgw/v1/testdata/test-vpc-gw-gateway-get-simple.golden @@ -1,42 +1,42 @@ 🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 🟩🟩🟩 STDOUT️ 🟩🟩🟩️ -ID 842f7e39-cfed-41a3-bb7f-d4e77d069129 -OrganizationID d3520a52-2c75-4ba0-bda8-82dd087f07f2 -ProjectID d3520a52-2c75-4ba0-bda8-82dd087f07f2 +ID 5acaf45d-d60a-416b-9901-0598a7c6fc0d +OrganizationID 564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5 +ProjectID 564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5 CreatedAt few seconds ago UpdatedAt few seconds ago Type.Name VPC-GW-S Type.Bandwidth 100000000 Type.Zone fr-par-1 Status running -Name cli-gw-dreamy-booth -Version 0.6.1 +Name cli-gw-compassionate-murdock +Version 0.7.2 BastionEnabled false BastionPort 61000 SMTPEnabled false IsLegacy false -IPMobilityEnabled false +IPMobilityEnabled true Zone fr-par-1 IP: -ID 2c139c4c-b21f-48f1-89ac-3aa31ad3dc88 -OrganizationID d3520a52-2c75-4ba0-bda8-82dd087f07f2 -ProjectID d3520a52-2c75-4ba0-bda8-82dd087f07f2 +ID f89e9296-419a-4cf5-90df-35fc24ad438a +OrganizationID 564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5 +ProjectID 564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5 CreatedAt few seconds ago UpdatedAt few seconds ago -Address 51.15.231.133 -Reverse 133-231-15-51.instances.scw.cloud -GatewayID 842f7e39-cfed-41a3-bb7f-d4e77d069129 +Address 51.158.101.65 +Reverse 65-101-158-51.instances.scw.cloud +GatewayID 5acaf45d-d60a-416b-9901-0598a7c6fc0d Zone fr-par-1 GatewayNetworks: ID CREATED AT UPDATED AT GATEWAY ID PRIVATE NETWORK ID MAC ADDRESS ENABLE MASQUERADE STATUS ENABLE DHCP ADDRESS ZONE -94a3b5f9-8a80-40f8-9560-5079747e0679 few seconds ago few seconds ago 842f7e39-cfed-41a3-bb7f-d4e77d069129 e92fc64c-0a33-4293-8a5d-d53b949b38d1 02:00:00:18:95:2B false ready false 172.16.28.2/22 fr-par-1 +e08f8ff5-c00b-4cde-badd-a6c6a5dff911 few seconds ago few seconds ago 5acaf45d-d60a-416b-9901-0598a7c6fc0d 8d2e6968-3376-405b-9d10-fb17941a44b2 02:00:00:1E:FA:2E false ready true 172.16.60.2/22 fr-par-1 🟩🟩🟩 JSON STDOUT 🟩🟩🟩 { - "id": "842f7e39-cfed-41a3-bb7f-d4e77d069129", - "organization_id": "d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id": "d3520a52-2c75-4ba0-bda8-82dd087f07f2", + "id": "5acaf45d-d60a-416b-9901-0598a7c6fc0d", + "organization_id": "564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id": "564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at": "1970-01-01T00:00:00.0Z", "updated_at": "1970-01-01T00:00:00.0Z", "type": { @@ -45,47 +45,47 @@ ID CREATED AT UPDATED AT GATEWAY "zone": "fr-par-1" }, "status": "running", - "name": "cli-gw-dreamy-booth", + "name": "cli-gw-compassionate-murdock", "tags": [], "ip": { - "id": "2c139c4c-b21f-48f1-89ac-3aa31ad3dc88", - "organization_id": "d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id": "d3520a52-2c75-4ba0-bda8-82dd087f07f2", + "id": "f89e9296-419a-4cf5-90df-35fc24ad438a", + "organization_id": "564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id": "564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at": "1970-01-01T00:00:00.0Z", "updated_at": "1970-01-01T00:00:00.0Z", "tags": [], - "address": "51.15.231.133", - "reverse": "133-231-15-51.instances.scw.cloud", - "gateway_id": "842f7e39-cfed-41a3-bb7f-d4e77d069129", + "address": "51.158.101.65", + "reverse": "65-101-158-51.instances.scw.cloud", + "gateway_id": "5acaf45d-d60a-416b-9901-0598a7c6fc0d", "zone": "fr-par-1" }, "gateway_networks": [ { - "id": "94a3b5f9-8a80-40f8-9560-5079747e0679", + "id": "e08f8ff5-c00b-4cde-badd-a6c6a5dff911", "created_at": "1970-01-01T00:00:00.0Z", "updated_at": "1970-01-01T00:00:00.0Z", - "gateway_id": "842f7e39-cfed-41a3-bb7f-d4e77d069129", - "private_network_id": "e92fc64c-0a33-4293-8a5d-d53b949b38d1", - "mac_address": "02:00:00:18:95:2B", + "gateway_id": "5acaf45d-d60a-416b-9901-0598a7c6fc0d", + "private_network_id": "8d2e6968-3376-405b-9d10-fb17941a44b2", + "mac_address": "02:00:00:1E:FA:2E", "enable_masquerade": false, "status": "ready", "dhcp": null, - "enable_dhcp": false, - "address": "172.16.28.2/22", + "enable_dhcp": true, + "address": "172.16.60.2/22", "ipam_config": { - "push_default_route": false, - "ipam_ip_id": "36a6c5de-695b-4b79-a435-07308cb0e25a" + "push_default_route": true, + "ipam_ip_id": "48b053e5-e9db-4186-a215-0e3b13899b30" }, "zone": "fr-par-1" } ], "upstream_dns_servers": [], - "version": "0.6.1", + "version": "0.7.2", "can_upgrade_to": null, "bastion_enabled": false, "bastion_port": 61000, "smtp_enabled": false, "is_legacy": false, - "ip_mobility_enabled": false, + "ip_mobility_enabled": true, "zone": "fr-par-1" } diff --git a/internal/namespaces/vpcgw/v1/testdata/test-vpc-gw-gateway-network-get-simple.cassette.yaml b/internal/namespaces/vpcgw/v1/testdata/test-vpc-gw-gateway-network-get-simple.cassette.yaml index 7a78bcda14..37f6512bdd 100644 --- a/internal/namespaces/vpcgw/v1/testdata/test-vpc-gw-gateway-network-get-simple.cassette.yaml +++ b/internal/namespaces/vpcgw/v1/testdata/test-vpc-gw-gateway-network-get-simple.cassette.yaml @@ -2,42 +2,48 @@ version: 1 interactions: - request: - body: '{"id":"33e309e0-71eb-4915-95e6-baafe98c0759", "name":"cli-pn-condescending-gould", - "tags":[], "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:56:43.750806Z", - "updated_at":"2024-02-23T14:56:43.750806Z", "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "subnets":[{"id":"5ccf72f1-52ab-4cd4-996c-21d11ebec40b", "created_at":"2024-02-23T14:56:43.750806Z", - "updated_at":"2024-02-23T14:56:43.750806Z", "subnet":"172.16.28.0/22"}, {"id":"d85ad822-afaf-49df-9288-0f34bc3f429d", - "created_at":"2024-02-23T14:56:43.750806Z", "updated_at":"2024-02-23T14:56:43.750806Z", - "subnet":"fd64:badd:7710:7150::/64"}], "vpc_id":"e092f3d5-d85b-46fd-8d08-025e3282c8c1", + body: '{"id":"fd87fb88-d9d4-4406-82f9-dab6ec87336e", "name":"cli-pn-affectionate-pike", + "tags":[], "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-18T16:04:46.341679Z", + "updated_at":"2024-12-18T16:04:46.341679Z", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "subnets":[{"id":"b8abf35f-a85b-4788-94a0-59e85cf3a6ae", "created_at":"2024-12-18T16:04:46.341679Z", + "updated_at":"2024-12-18T16:04:46.341679Z", "subnet":"172.16.88.0/22", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "private_network_id":"fd87fb88-d9d4-4406-82f9-dab6ec87336e", "vpc_id":"086a5171-f7ab-4667-a231-840a81203f19"}, + {"id":"804b3955-cd30-4592-82c5-474f83a98970", "created_at":"2024-12-18T16:04:46.341679Z", + "updated_at":"2024-12-18T16:04:46.341679Z", "subnet":"fd46:78ab:30b8:710f::/64", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "private_network_id":"fd87fb88-d9d4-4406-82f9-dab6ec87336e", + "vpc_id":"086a5171-f7ab-4667-a231-840a81203f19"}], "vpc_id":"086a5171-f7ab-4667-a231-840a81203f19", "dhcp_enabled":true, "region":"fr-par"}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks method: POST response: - body: '{"id":"33e309e0-71eb-4915-95e6-baafe98c0759", "name":"cli-pn-condescending-gould", - "tags":[], "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:56:43.750806Z", - "updated_at":"2024-02-23T14:56:43.750806Z", "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "subnets":[{"id":"5ccf72f1-52ab-4cd4-996c-21d11ebec40b", "created_at":"2024-02-23T14:56:43.750806Z", - "updated_at":"2024-02-23T14:56:43.750806Z", "subnet":"172.16.28.0/22"}, {"id":"d85ad822-afaf-49df-9288-0f34bc3f429d", - "created_at":"2024-02-23T14:56:43.750806Z", "updated_at":"2024-02-23T14:56:43.750806Z", - "subnet":"fd64:badd:7710:7150::/64"}], "vpc_id":"e092f3d5-d85b-46fd-8d08-025e3282c8c1", + body: '{"id":"fd87fb88-d9d4-4406-82f9-dab6ec87336e", "name":"cli-pn-affectionate-pike", + "tags":[], "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-18T16:04:46.341679Z", + "updated_at":"2024-12-18T16:04:46.341679Z", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "subnets":[{"id":"b8abf35f-a85b-4788-94a0-59e85cf3a6ae", "created_at":"2024-12-18T16:04:46.341679Z", + "updated_at":"2024-12-18T16:04:46.341679Z", "subnet":"172.16.88.0/22", "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "private_network_id":"fd87fb88-d9d4-4406-82f9-dab6ec87336e", "vpc_id":"086a5171-f7ab-4667-a231-840a81203f19"}, + {"id":"804b3955-cd30-4592-82c5-474f83a98970", "created_at":"2024-12-18T16:04:46.341679Z", + "updated_at":"2024-12-18T16:04:46.341679Z", "subnet":"fd46:78ab:30b8:710f::/64", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "private_network_id":"fd87fb88-d9d4-4406-82f9-dab6ec87336e", + "vpc_id":"086a5171-f7ab-4667-a231-840a81203f19"}], "vpc_id":"086a5171-f7ab-4667-a231-840a81203f19", "dhcp_enabled":true, "region":"fr-par"}' headers: Content-Length: - - "727" + - "1051" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:56:44 GMT + - Wed, 18 Dec 2024 16:04:46 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -45,53 +51,39 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - df2e4a3f-1fb4-4ea7-88ae-1d4a43264483 + - e9647119-8d28-4e3c-9a59-d5d07663d791 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"b0920865-db15-452b-8a59-3fdc05d4339a", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:56:44.935109Z", - "updated_at":"2024-02-23T14:56:44.935109Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, - "zone":"fr-par-1"}, "status":"allocating", "name":"cli-gw-suspicious-poitras", - "tags":[], "ip":{"id":"9987a45c-2068-4aa9-a517-816382f55806", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:56:44.911498Z", - "updated_at":"2024-02-23T14:56:44.911498Z", "tags":[], "address":"51.158.104.196", - "reverse":"196-104-158-51.instances.scw.cloud", "gateway_id":"b0920865-db15-452b-8a59-3fdc05d4339a", - "zone":"fr-par-1"}, "gateway_networks":[], "upstream_dns_servers":[], "version":null, - "can_upgrade_to":null, "bastion_enabled":false, "bastion_port":61000, "smtp_enabled":false, - "is_legacy":false, "ip_mobility_enabled":false, "zone":"fr-par-1"}' + body: '{"access_key":"SCWBDFF054RNNE8204AJ", "secret_key":null, "description":"my-key", + "created_at":"2022-06-10T08:39:27.845066Z", "updated_at":"2022-07-05T15:12:12.987880Z", + "expires_at":null, "default_project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "editable":true, "deletable":true, "managed":false, "creation_ip":"51.159.46.153", + "application_id":"531f5518-a0a5-44c2-b790-a9975505c89d"}' form: {} headers: - Content-Type: - - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateways - method: POST + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/iam/v1alpha1/api-keys/SCWBDFF054RNNE8204AJ + method: GET response: - body: '{"id":"b0920865-db15-452b-8a59-3fdc05d4339a", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:56:44.935109Z", - "updated_at":"2024-02-23T14:56:44.935109Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, - "zone":"fr-par-1"}, "status":"allocating", "name":"cli-gw-suspicious-poitras", - "tags":[], "ip":{"id":"9987a45c-2068-4aa9-a517-816382f55806", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:56:44.911498Z", - "updated_at":"2024-02-23T14:56:44.911498Z", "tags":[], "address":"51.158.104.196", - "reverse":"196-104-158-51.instances.scw.cloud", "gateway_id":"b0920865-db15-452b-8a59-3fdc05d4339a", - "zone":"fr-par-1"}, "gateway_networks":[], "upstream_dns_servers":[], "version":null, - "can_upgrade_to":null, "bastion_enabled":false, "bastion_port":61000, "smtp_enabled":false, - "is_legacy":false, "ip_mobility_enabled":false, "zone":"fr-par-1"}' + body: '{"access_key":"SCWBDFF054RNNE8204AJ", "secret_key":null, "description":"my-key", + "created_at":"2022-06-10T08:39:27.845066Z", "updated_at":"2022-07-05T15:12:12.987880Z", + "expires_at":null, "default_project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "editable":true, "deletable":true, "managed":false, "creation_ip":"51.159.46.153", + "application_id":"531f5518-a0a5-44c2-b790-a9975505c89d"}' headers: Content-Length: - - "1019" + - "388" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:56:44 GMT + - Wed, 18 Dec 2024 16:04:46 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -99,51 +91,53 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f8354a3c-cb58-4771-92f9-b85d7ad5b39d + - 669e60f5-c443-41c9-af0e-54a92efab9d9 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"b0920865-db15-452b-8a59-3fdc05d4339a", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:56:44.935109Z", - "updated_at":"2024-02-23T14:56:44.935109Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, - "zone":"fr-par-1"}, "status":"allocating", "name":"cli-gw-suspicious-poitras", - "tags":[], "ip":{"id":"9987a45c-2068-4aa9-a517-816382f55806", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:56:44.911498Z", - "updated_at":"2024-02-23T14:56:44.911498Z", "tags":[], "address":"51.158.104.196", - "reverse":"196-104-158-51.instances.scw.cloud", "gateway_id":"b0920865-db15-452b-8a59-3fdc05d4339a", + body: '{"id":"58088b82-7940-40fe-9bef-c8c971642a66", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-18T16:04:48.177842Z", + "updated_at":"2024-12-18T16:04:48.177842Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, + "zone":"fr-par-1"}, "status":"allocating", "name":"cli-gw-elegant-ptolemy", + "tags":[], "ip":{"id":"489a2543-644e-4687-9e5d-2e12ca8ca3aa", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-18T16:04:48.136050Z", + "updated_at":"2024-12-18T16:04:48.136050Z", "tags":[], "address":"51.158.120.154", + "reverse":"154-120-158-51.instances.scw.cloud", "gateway_id":"58088b82-7940-40fe-9bef-c8c971642a66", "zone":"fr-par-1"}, "gateway_networks":[], "upstream_dns_servers":[], "version":null, "can_upgrade_to":null, "bastion_enabled":false, "bastion_port":61000, "smtp_enabled":false, "is_legacy":false, "ip_mobility_enabled":false, "zone":"fr-par-1"}' form: {} headers: + Content-Type: + - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateways/b0920865-db15-452b-8a59-3fdc05d4339a - method: GET + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateways + method: POST response: - body: '{"id":"b0920865-db15-452b-8a59-3fdc05d4339a", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:56:44.935109Z", - "updated_at":"2024-02-23T14:56:44.935109Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, - "zone":"fr-par-1"}, "status":"allocating", "name":"cli-gw-suspicious-poitras", - "tags":[], "ip":{"id":"9987a45c-2068-4aa9-a517-816382f55806", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:56:44.911498Z", - "updated_at":"2024-02-23T14:56:44.911498Z", "tags":[], "address":"51.158.104.196", - "reverse":"196-104-158-51.instances.scw.cloud", "gateway_id":"b0920865-db15-452b-8a59-3fdc05d4339a", + body: '{"id":"58088b82-7940-40fe-9bef-c8c971642a66", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-18T16:04:48.177842Z", + "updated_at":"2024-12-18T16:04:48.177842Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, + "zone":"fr-par-1"}, "status":"allocating", "name":"cli-gw-elegant-ptolemy", + "tags":[], "ip":{"id":"489a2543-644e-4687-9e5d-2e12ca8ca3aa", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-18T16:04:48.136050Z", + "updated_at":"2024-12-18T16:04:48.136050Z", "tags":[], "address":"51.158.120.154", + "reverse":"154-120-158-51.instances.scw.cloud", "gateway_id":"58088b82-7940-40fe-9bef-c8c971642a66", "zone":"fr-par-1"}, "gateway_networks":[], "upstream_dns_servers":[], "version":null, "can_upgrade_to":null, "bastion_enabled":false, "bastion_port":61000, "smtp_enabled":false, "is_legacy":false, "ip_mobility_enabled":false, "zone":"fr-par-1"}' headers: Content-Length: - - "1019" + - "1016" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:56:45 GMT + - Wed, 18 Dec 2024 16:04:48 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -151,51 +145,51 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 750d0036-2318-46ca-b20a-36b497a0b3d1 + - 3e4b2a76-75df-42bf-8139-ce5dc6234005 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"b0920865-db15-452b-8a59-3fdc05d4339a", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:56:44.935109Z", - "updated_at":"2024-02-23T14:56:45.775561Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, - "zone":"fr-par-1"}, "status":"running", "name":"cli-gw-suspicious-poitras", - "tags":[], "ip":{"id":"9987a45c-2068-4aa9-a517-816382f55806", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:56:44.911498Z", - "updated_at":"2024-02-23T14:56:44.911498Z", "tags":[], "address":"51.158.104.196", - "reverse":"196-104-158-51.instances.scw.cloud", "gateway_id":"b0920865-db15-452b-8a59-3fdc05d4339a", - "zone":"fr-par-1"}, "gateway_networks":[], "upstream_dns_servers":[], "version":"0.6.1", + body: '{"id":"58088b82-7940-40fe-9bef-c8c971642a66", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-18T16:04:48.177842Z", + "updated_at":"2024-12-18T16:04:48.252998Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, + "zone":"fr-par-1"}, "status":"allocating", "name":"cli-gw-elegant-ptolemy", + "tags":[], "ip":{"id":"489a2543-644e-4687-9e5d-2e12ca8ca3aa", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-18T16:04:48.136050Z", + "updated_at":"2024-12-18T16:04:48.136050Z", "tags":[], "address":"51.158.120.154", + "reverse":"154-120-158-51.instances.scw.cloud", "gateway_id":"58088b82-7940-40fe-9bef-c8c971642a66", + "zone":"fr-par-1"}, "gateway_networks":[], "upstream_dns_servers":[], "version":"0.7.2", "can_upgrade_to":null, "bastion_enabled":false, "bastion_port":61000, "smtp_enabled":false, - "is_legacy":false, "ip_mobility_enabled":false, "zone":"fr-par-1"}' + "is_legacy":false, "ip_mobility_enabled":true, "zone":"fr-par-1"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateways/b0920865-db15-452b-8a59-3fdc05d4339a + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateways/58088b82-7940-40fe-9bef-c8c971642a66 method: GET response: - body: '{"id":"b0920865-db15-452b-8a59-3fdc05d4339a", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:56:44.935109Z", - "updated_at":"2024-02-23T14:56:45.775561Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, - "zone":"fr-par-1"}, "status":"running", "name":"cli-gw-suspicious-poitras", - "tags":[], "ip":{"id":"9987a45c-2068-4aa9-a517-816382f55806", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:56:44.911498Z", - "updated_at":"2024-02-23T14:56:44.911498Z", "tags":[], "address":"51.158.104.196", - "reverse":"196-104-158-51.instances.scw.cloud", "gateway_id":"b0920865-db15-452b-8a59-3fdc05d4339a", - "zone":"fr-par-1"}, "gateway_networks":[], "upstream_dns_servers":[], "version":"0.6.1", + body: '{"id":"58088b82-7940-40fe-9bef-c8c971642a66", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-18T16:04:48.177842Z", + "updated_at":"2024-12-18T16:04:48.252998Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, + "zone":"fr-par-1"}, "status":"allocating", "name":"cli-gw-elegant-ptolemy", + "tags":[], "ip":{"id":"489a2543-644e-4687-9e5d-2e12ca8ca3aa", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-18T16:04:48.136050Z", + "updated_at":"2024-12-18T16:04:48.136050Z", "tags":[], "address":"51.158.120.154", + "reverse":"154-120-158-51.instances.scw.cloud", "gateway_id":"58088b82-7940-40fe-9bef-c8c971642a66", + "zone":"fr-par-1"}, "gateway_networks":[], "upstream_dns_servers":[], "version":"0.7.2", "can_upgrade_to":null, "bastion_enabled":false, "bastion_port":61000, "smtp_enabled":false, - "is_legacy":false, "ip_mobility_enabled":false, "zone":"fr-par-1"}' + "is_legacy":false, "ip_mobility_enabled":true, "zone":"fr-par-1"}' headers: Content-Length: - - "1019" + - "1018" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:57:00 GMT + - Wed, 18 Dec 2024 16:04:48 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -203,45 +197,51 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ec04f50c-8e55-4232-8ecf-b57e92f6d13c + - 4cde05c2-3bd6-47ba-bb34-e5d57facbc8c status: 200 OK code: 200 duration: "" - request: - body: '{"id":"b9915f5e-7c29-421b-8fae-2e4bea947f91", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:57:00.099718Z", - "updated_at":"2024-02-23T14:57:00.099718Z", "subnet":"192.168.1.0/24", "address":"192.168.1.1", - "pool_low":"192.168.1.2", "pool_high":"192.168.1.254", "enable_dynamic":true, - "valid_lifetime":"3600s", "renew_timer":"3000s", "rebind_timer":"3060s", "push_default_route":true, - "push_dns_server":true, "dns_servers_override":[], "dns_search":[], "dns_local_name":"priv", - "zone":"fr-par-1"}' + body: '{"id":"58088b82-7940-40fe-9bef-c8c971642a66", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-18T16:04:48.177842Z", + "updated_at":"2024-12-18T16:04:53.167141Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, + "zone":"fr-par-1"}, "status":"running", "name":"cli-gw-elegant-ptolemy", "tags":[], + "ip":{"id":"489a2543-644e-4687-9e5d-2e12ca8ca3aa", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-18T16:04:48.136050Z", + "updated_at":"2024-12-18T16:04:48.136050Z", "tags":[], "address":"51.158.120.154", + "reverse":"154-120-158-51.instances.scw.cloud", "gateway_id":"58088b82-7940-40fe-9bef-c8c971642a66", + "zone":"fr-par-1"}, "gateway_networks":[], "upstream_dns_servers":[], "version":"0.7.2", + "can_upgrade_to":null, "bastion_enabled":false, "bastion_port":61000, "smtp_enabled":false, + "is_legacy":false, "ip_mobility_enabled":true, "zone":"fr-par-1"}' form: {} headers: - Content-Type: - - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/dhcps - method: POST + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateways/58088b82-7940-40fe-9bef-c8c971642a66 + method: GET response: - body: '{"id":"b9915f5e-7c29-421b-8fae-2e4bea947f91", "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "created_at":"2024-02-23T14:57:00.099718Z", - "updated_at":"2024-02-23T14:57:00.099718Z", "subnet":"192.168.1.0/24", "address":"192.168.1.1", - "pool_low":"192.168.1.2", "pool_high":"192.168.1.254", "enable_dynamic":true, - "valid_lifetime":"3600s", "renew_timer":"3000s", "rebind_timer":"3060s", "push_default_route":true, - "push_dns_server":true, "dns_servers_override":[], "dns_search":[], "dns_local_name":"priv", - "zone":"fr-par-1"}' + body: '{"id":"58088b82-7940-40fe-9bef-c8c971642a66", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-18T16:04:48.177842Z", + "updated_at":"2024-12-18T16:04:53.167141Z", "type":{"name":"VPC-GW-S", "bandwidth":100000000, + "zone":"fr-par-1"}, "status":"running", "name":"cli-gw-elegant-ptolemy", "tags":[], + "ip":{"id":"489a2543-644e-4687-9e5d-2e12ca8ca3aa", "organization_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", + "project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5", "created_at":"2024-12-18T16:04:48.136050Z", + "updated_at":"2024-12-18T16:04:48.136050Z", "tags":[], "address":"51.158.120.154", + "reverse":"154-120-158-51.instances.scw.cloud", "gateway_id":"58088b82-7940-40fe-9bef-c8c971642a66", + "zone":"fr-par-1"}, "gateway_networks":[], "upstream_dns_servers":[], "version":"0.7.2", + "can_upgrade_to":null, "bastion_enabled":false, "bastion_port":61000, "smtp_enabled":false, + "is_legacy":false, "ip_mobility_enabled":true, "zone":"fr-par-1"}' headers: Content-Length: - - "586" + - "1015" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:57:00 GMT + - Wed, 18 Dec 2024 16:05:03 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -249,53 +249,43 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - fa1b176f-1dc2-406b-9676-d961d776b7d5 + - 10e2a58c-ba91-4103-a8cf-30c72a15c28a status: 200 OK code: 200 duration: "" - request: - body: '{"id":"8d84f727-0251-48f5-8000-054706fd7def", "created_at":"2024-02-23T14:57:02.052162Z", - "updated_at":"2024-02-23T14:57:02.052162Z", "gateway_id":"b0920865-db15-452b-8a59-3fdc05d4339a", - "private_network_id":"33e309e0-71eb-4915-95e6-baafe98c0759", "mac_address":null, - "enable_masquerade":false, "status":"created", "dhcp":{"id":"b9915f5e-7c29-421b-8fae-2e4bea947f91", - "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "created_at":"2024-02-23T14:57:00.099718Z", "updated_at":"2024-02-23T14:57:00.099718Z", - "subnet":"192.168.1.0/24", "address":"192.168.1.1", "pool_low":"192.168.1.2", - "pool_high":"192.168.1.254", "enable_dynamic":true, "valid_lifetime":"3600s", - "renew_timer":"3000s", "rebind_timer":"3060s", "push_default_route":true, "push_dns_server":true, - "dns_servers_override":[], "dns_search":[], "dns_local_name":"priv", "zone":"fr-par-1"}, - "enable_dhcp":true, "address":null, "ipam_config":null, "zone":"fr-par-1"}' + body: '{"id":"c0eda470-15af-4ce1-b57f-d334f5def8a7", "created_at":"2024-12-18T16:05:03.801488Z", + "updated_at":"2024-12-18T16:05:03.801488Z", "gateway_id":"58088b82-7940-40fe-9bef-c8c971642a66", + "private_network_id":"fd87fb88-d9d4-4406-82f9-dab6ec87336e", "mac_address":null, + "enable_masquerade":false, "status":"created", "dhcp":null, "enable_dhcp":true, + "address":"172.16.88.2/22", "ipam_config":{"push_default_route":true, "ipam_ip_id":"496180b2-77ee-4239-9842-3e535b6b8daa"}, + "zone":"fr-par-1"}' form: {} headers: Content-Type: - application/json User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateway-networks method: POST response: - body: '{"id":"8d84f727-0251-48f5-8000-054706fd7def", "created_at":"2024-02-23T14:57:02.052162Z", - "updated_at":"2024-02-23T14:57:02.052162Z", "gateway_id":"b0920865-db15-452b-8a59-3fdc05d4339a", - "private_network_id":"33e309e0-71eb-4915-95e6-baafe98c0759", "mac_address":null, - "enable_masquerade":false, "status":"created", "dhcp":{"id":"b9915f5e-7c29-421b-8fae-2e4bea947f91", - "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "created_at":"2024-02-23T14:57:00.099718Z", "updated_at":"2024-02-23T14:57:00.099718Z", - "subnet":"192.168.1.0/24", "address":"192.168.1.1", "pool_low":"192.168.1.2", - "pool_high":"192.168.1.254", "enable_dynamic":true, "valid_lifetime":"3600s", - "renew_timer":"3000s", "rebind_timer":"3060s", "push_default_route":true, "push_dns_server":true, - "dns_servers_override":[], "dns_search":[], "dns_local_name":"priv", "zone":"fr-par-1"}, - "enable_dhcp":true, "address":null, "ipam_config":null, "zone":"fr-par-1"}' + body: '{"id":"c0eda470-15af-4ce1-b57f-d334f5def8a7", "created_at":"2024-12-18T16:05:03.801488Z", + "updated_at":"2024-12-18T16:05:03.801488Z", "gateway_id":"58088b82-7940-40fe-9bef-c8c971642a66", + "private_network_id":"fd87fb88-d9d4-4406-82f9-dab6ec87336e", "mac_address":null, + "enable_masquerade":false, "status":"created", "dhcp":null, "enable_dhcp":true, + "address":"172.16.88.2/22", "ipam_config":{"push_default_route":true, "ipam_ip_id":"496180b2-77ee-4239-9842-3e535b6b8daa"}, + "zone":"fr-par-1"}' headers: Content-Length: - - "984" + - "490" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:57:02 GMT + - Wed, 18 Dec 2024 16:05:03 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -303,51 +293,41 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - eb0b7b1c-c3f1-4096-b759-ef5f748e0460 + - 4024f858-5b3a-4054-bdc5-e2c309e5812c status: 200 OK code: 200 duration: "" - request: - body: '{"id":"8d84f727-0251-48f5-8000-054706fd7def", "created_at":"2024-02-23T14:57:02.052162Z", - "updated_at":"2024-02-23T14:57:02.052162Z", "gateway_id":"b0920865-db15-452b-8a59-3fdc05d4339a", - "private_network_id":"33e309e0-71eb-4915-95e6-baafe98c0759", "mac_address":null, - "enable_masquerade":false, "status":"created", "dhcp":{"id":"b9915f5e-7c29-421b-8fae-2e4bea947f91", - "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "created_at":"2024-02-23T14:57:00.099718Z", "updated_at":"2024-02-23T14:57:00.099718Z", - "subnet":"192.168.1.0/24", "address":"192.168.1.1", "pool_low":"192.168.1.2", - "pool_high":"192.168.1.254", "enable_dynamic":true, "valid_lifetime":"3600s", - "renew_timer":"3000s", "rebind_timer":"3060s", "push_default_route":true, "push_dns_server":true, - "dns_servers_override":[], "dns_search":[], "dns_local_name":"priv", "zone":"fr-par-1"}, - "enable_dhcp":true, "address":null, "ipam_config":null, "zone":"fr-par-1"}' + body: '{"id":"c0eda470-15af-4ce1-b57f-d334f5def8a7", "created_at":"2024-12-18T16:05:03.801488Z", + "updated_at":"2024-12-18T16:05:03.801488Z", "gateway_id":"58088b82-7940-40fe-9bef-c8c971642a66", + "private_network_id":"fd87fb88-d9d4-4406-82f9-dab6ec87336e", "mac_address":null, + "enable_masquerade":false, "status":"created", "dhcp":null, "enable_dhcp":true, + "address":"172.16.88.2/22", "ipam_config":{"push_default_route":true, "ipam_ip_id":"496180b2-77ee-4239-9842-3e535b6b8daa"}, + "zone":"fr-par-1"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateway-networks/8d84f727-0251-48f5-8000-054706fd7def + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateway-networks/c0eda470-15af-4ce1-b57f-d334f5def8a7 method: GET response: - body: '{"id":"8d84f727-0251-48f5-8000-054706fd7def", "created_at":"2024-02-23T14:57:02.052162Z", - "updated_at":"2024-02-23T14:57:02.052162Z", "gateway_id":"b0920865-db15-452b-8a59-3fdc05d4339a", - "private_network_id":"33e309e0-71eb-4915-95e6-baafe98c0759", "mac_address":null, - "enable_masquerade":false, "status":"created", "dhcp":{"id":"b9915f5e-7c29-421b-8fae-2e4bea947f91", - "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "created_at":"2024-02-23T14:57:00.099718Z", "updated_at":"2024-02-23T14:57:00.099718Z", - "subnet":"192.168.1.0/24", "address":"192.168.1.1", "pool_low":"192.168.1.2", - "pool_high":"192.168.1.254", "enable_dynamic":true, "valid_lifetime":"3600s", - "renew_timer":"3000s", "rebind_timer":"3060s", "push_default_route":true, "push_dns_server":true, - "dns_servers_override":[], "dns_search":[], "dns_local_name":"priv", "zone":"fr-par-1"}, - "enable_dhcp":true, "address":null, "ipam_config":null, "zone":"fr-par-1"}' + body: '{"id":"c0eda470-15af-4ce1-b57f-d334f5def8a7", "created_at":"2024-12-18T16:05:03.801488Z", + "updated_at":"2024-12-18T16:05:03.801488Z", "gateway_id":"58088b82-7940-40fe-9bef-c8c971642a66", + "private_network_id":"fd87fb88-d9d4-4406-82f9-dab6ec87336e", "mac_address":null, + "enable_masquerade":false, "status":"created", "dhcp":null, "enable_dhcp":true, + "address":"172.16.88.2/22", "ipam_config":{"push_default_route":true, "ipam_ip_id":"496180b2-77ee-4239-9842-3e535b6b8daa"}, + "zone":"fr-par-1"}' headers: Content-Length: - - "984" + - "490" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:57:02 GMT + - Wed, 18 Dec 2024 16:05:03 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -355,51 +335,41 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 43ee2643-57c9-4634-98ee-d2051f145ab3 + - eb7c222f-1323-408e-a61b-6a74433efc15 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"8d84f727-0251-48f5-8000-054706fd7def", "created_at":"2024-02-23T14:57:02.052162Z", - "updated_at":"2024-02-23T14:57:11.149313Z", "gateway_id":"b0920865-db15-452b-8a59-3fdc05d4339a", - "private_network_id":"33e309e0-71eb-4915-95e6-baafe98c0759", "mac_address":"02:00:00:18:95:29", - "enable_masquerade":false, "status":"ready", "dhcp":{"id":"b9915f5e-7c29-421b-8fae-2e4bea947f91", - "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "created_at":"2024-02-23T14:57:00.099718Z", "updated_at":"2024-02-23T14:57:00.099718Z", - "subnet":"192.168.1.0/24", "address":"192.168.1.1", "pool_low":"192.168.1.2", - "pool_high":"192.168.1.254", "enable_dynamic":true, "valid_lifetime":"3600s", - "renew_timer":"3000s", "rebind_timer":"3060s", "push_default_route":true, "push_dns_server":true, - "dns_servers_override":[], "dns_search":[], "dns_local_name":"priv", "zone":"fr-par-1"}, - "enable_dhcp":true, "address":null, "ipam_config":null, "zone":"fr-par-1"}' + body: '{"id":"c0eda470-15af-4ce1-b57f-d334f5def8a7", "created_at":"2024-12-18T16:05:03.801488Z", + "updated_at":"2024-12-18T16:05:13.845233Z", "gateway_id":"58088b82-7940-40fe-9bef-c8c971642a66", + "private_network_id":"fd87fb88-d9d4-4406-82f9-dab6ec87336e", "mac_address":"02:00:00:11:2B:E4", + "enable_masquerade":false, "status":"ready", "dhcp":null, "enable_dhcp":true, + "address":"172.16.88.2/22", "ipam_config":{"push_default_route":true, "ipam_ip_id":"496180b2-77ee-4239-9842-3e535b6b8daa"}, + "zone":"fr-par-1"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateway-networks/8d84f727-0251-48f5-8000-054706fd7def + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateway-networks/c0eda470-15af-4ce1-b57f-d334f5def8a7 method: GET response: - body: '{"id":"8d84f727-0251-48f5-8000-054706fd7def", "created_at":"2024-02-23T14:57:02.052162Z", - "updated_at":"2024-02-23T14:57:11.149313Z", "gateway_id":"b0920865-db15-452b-8a59-3fdc05d4339a", - "private_network_id":"33e309e0-71eb-4915-95e6-baafe98c0759", "mac_address":"02:00:00:18:95:29", - "enable_masquerade":false, "status":"ready", "dhcp":{"id":"b9915f5e-7c29-421b-8fae-2e4bea947f91", - "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "created_at":"2024-02-23T14:57:00.099718Z", "updated_at":"2024-02-23T14:57:00.099718Z", - "subnet":"192.168.1.0/24", "address":"192.168.1.1", "pool_low":"192.168.1.2", - "pool_high":"192.168.1.254", "enable_dynamic":true, "valid_lifetime":"3600s", - "renew_timer":"3000s", "rebind_timer":"3060s", "push_default_route":true, "push_dns_server":true, - "dns_servers_override":[], "dns_search":[], "dns_local_name":"priv", "zone":"fr-par-1"}, - "enable_dhcp":true, "address":null, "ipam_config":null, "zone":"fr-par-1"}' + body: '{"id":"c0eda470-15af-4ce1-b57f-d334f5def8a7", "created_at":"2024-12-18T16:05:03.801488Z", + "updated_at":"2024-12-18T16:05:13.845233Z", "gateway_id":"58088b82-7940-40fe-9bef-c8c971642a66", + "private_network_id":"fd87fb88-d9d4-4406-82f9-dab6ec87336e", "mac_address":"02:00:00:11:2B:E4", + "enable_masquerade":false, "status":"ready", "dhcp":null, "enable_dhcp":true, + "address":"172.16.88.2/22", "ipam_config":{"push_default_route":true, "ipam_ip_id":"496180b2-77ee-4239-9842-3e535b6b8daa"}, + "zone":"fr-par-1"}' headers: Content-Length: - - "997" + - "503" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:57:17 GMT + - Wed, 18 Dec 2024 16:05:19 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -407,51 +377,41 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 02c1a480-1faa-4365-9351-2dfd1bfd5e93 + - 0604c53f-05f3-49f2-96f5-dfddbb7405bc status: 200 OK code: 200 duration: "" - request: - body: '{"id":"8d84f727-0251-48f5-8000-054706fd7def", "created_at":"2024-02-23T14:57:02.052162Z", - "updated_at":"2024-02-23T14:57:11.149313Z", "gateway_id":"b0920865-db15-452b-8a59-3fdc05d4339a", - "private_network_id":"33e309e0-71eb-4915-95e6-baafe98c0759", "mac_address":"02:00:00:18:95:29", - "enable_masquerade":false, "status":"ready", "dhcp":{"id":"b9915f5e-7c29-421b-8fae-2e4bea947f91", - "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "created_at":"2024-02-23T14:57:00.099718Z", "updated_at":"2024-02-23T14:57:00.099718Z", - "subnet":"192.168.1.0/24", "address":"192.168.1.1", "pool_low":"192.168.1.2", - "pool_high":"192.168.1.254", "enable_dynamic":true, "valid_lifetime":"3600s", - "renew_timer":"3000s", "rebind_timer":"3060s", "push_default_route":true, "push_dns_server":true, - "dns_servers_override":[], "dns_search":[], "dns_local_name":"priv", "zone":"fr-par-1"}, - "enable_dhcp":true, "address":null, "ipam_config":null, "zone":"fr-par-1"}' + body: '{"id":"c0eda470-15af-4ce1-b57f-d334f5def8a7", "created_at":"2024-12-18T16:05:03.801488Z", + "updated_at":"2024-12-18T16:05:13.845233Z", "gateway_id":"58088b82-7940-40fe-9bef-c8c971642a66", + "private_network_id":"fd87fb88-d9d4-4406-82f9-dab6ec87336e", "mac_address":"02:00:00:11:2B:E4", + "enable_masquerade":false, "status":"ready", "dhcp":null, "enable_dhcp":true, + "address":"172.16.88.2/22", "ipam_config":{"push_default_route":true, "ipam_ip_id":"496180b2-77ee-4239-9842-3e535b6b8daa"}, + "zone":"fr-par-1"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateway-networks/8d84f727-0251-48f5-8000-054706fd7def + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateway-networks/c0eda470-15af-4ce1-b57f-d334f5def8a7 method: GET response: - body: '{"id":"8d84f727-0251-48f5-8000-054706fd7def", "created_at":"2024-02-23T14:57:02.052162Z", - "updated_at":"2024-02-23T14:57:11.149313Z", "gateway_id":"b0920865-db15-452b-8a59-3fdc05d4339a", - "private_network_id":"33e309e0-71eb-4915-95e6-baafe98c0759", "mac_address":"02:00:00:18:95:29", - "enable_masquerade":false, "status":"ready", "dhcp":{"id":"b9915f5e-7c29-421b-8fae-2e4bea947f91", - "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "created_at":"2024-02-23T14:57:00.099718Z", "updated_at":"2024-02-23T14:57:00.099718Z", - "subnet":"192.168.1.0/24", "address":"192.168.1.1", "pool_low":"192.168.1.2", - "pool_high":"192.168.1.254", "enable_dynamic":true, "valid_lifetime":"3600s", - "renew_timer":"3000s", "rebind_timer":"3060s", "push_default_route":true, "push_dns_server":true, - "dns_servers_override":[], "dns_search":[], "dns_local_name":"priv", "zone":"fr-par-1"}, - "enable_dhcp":true, "address":null, "ipam_config":null, "zone":"fr-par-1"}' + body: '{"id":"c0eda470-15af-4ce1-b57f-d334f5def8a7", "created_at":"2024-12-18T16:05:03.801488Z", + "updated_at":"2024-12-18T16:05:13.845233Z", "gateway_id":"58088b82-7940-40fe-9bef-c8c971642a66", + "private_network_id":"fd87fb88-d9d4-4406-82f9-dab6ec87336e", "mac_address":"02:00:00:11:2B:E4", + "enable_masquerade":false, "status":"ready", "dhcp":null, "enable_dhcp":true, + "address":"172.16.88.2/22", "ipam_config":{"push_default_route":true, "ipam_ip_id":"496180b2-77ee-4239-9842-3e535b6b8daa"}, + "zone":"fr-par-1"}' headers: Content-Length: - - "997" + - "503" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:57:17 GMT + - Wed, 18 Dec 2024 16:05:19 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -459,7 +419,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a48e2101-efde-4737-80a8-4e4ad8bda91c + - 1754f781-4b52-4f33-85dd-139563ccf49e status: 200 OK code: 200 duration: "" @@ -468,8 +428,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateway-networks/8d84f727-0251-48f5-8000-054706fd7def?cleanup_dhcp=false + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateway-networks/c0eda470-15af-4ce1-b57f-d334f5def8a7?cleanup_dhcp=false method: DELETE response: body: "" @@ -479,9 +439,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:57:17 GMT + - Wed, 18 Dec 2024 16:05:19 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -489,51 +449,41 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - bfe56ccb-a100-4505-b8f4-31e12283b0ff + - 2cf09658-b253-42a1-ad5a-9487c5ea0eec status: 204 No Content code: 204 duration: "" - request: - body: '{"id":"8d84f727-0251-48f5-8000-054706fd7def", "created_at":"2024-02-23T14:57:02.052162Z", - "updated_at":"2024-02-23T14:57:17.582022Z", "gateway_id":"b0920865-db15-452b-8a59-3fdc05d4339a", - "private_network_id":"33e309e0-71eb-4915-95e6-baafe98c0759", "mac_address":"02:00:00:18:95:29", - "enable_masquerade":false, "status":"detaching", "dhcp":{"id":"b9915f5e-7c29-421b-8fae-2e4bea947f91", - "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "created_at":"2024-02-23T14:57:00.099718Z", "updated_at":"2024-02-23T14:57:00.099718Z", - "subnet":"192.168.1.0/24", "address":"192.168.1.1", "pool_low":"192.168.1.2", - "pool_high":"192.168.1.254", "enable_dynamic":true, "valid_lifetime":"3600s", - "renew_timer":"3000s", "rebind_timer":"3060s", "push_default_route":true, "push_dns_server":true, - "dns_servers_override":[], "dns_search":[], "dns_local_name":"priv", "zone":"fr-par-1"}, - "enable_dhcp":true, "address":null, "ipam_config":null, "zone":"fr-par-1"}' + body: '{"id":"c0eda470-15af-4ce1-b57f-d334f5def8a7", "created_at":"2024-12-18T16:05:03.801488Z", + "updated_at":"2024-12-18T16:05:19.187089Z", "gateway_id":"58088b82-7940-40fe-9bef-c8c971642a66", + "private_network_id":"fd87fb88-d9d4-4406-82f9-dab6ec87336e", "mac_address":"02:00:00:11:2B:E4", + "enable_masquerade":false, "status":"detaching", "dhcp":null, "enable_dhcp":true, + "address":"172.16.88.2/22", "ipam_config":{"push_default_route":true, "ipam_ip_id":"496180b2-77ee-4239-9842-3e535b6b8daa"}, + "zone":"fr-par-1"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateway-networks/8d84f727-0251-48f5-8000-054706fd7def + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateway-networks/c0eda470-15af-4ce1-b57f-d334f5def8a7 method: GET response: - body: '{"id":"8d84f727-0251-48f5-8000-054706fd7def", "created_at":"2024-02-23T14:57:02.052162Z", - "updated_at":"2024-02-23T14:57:17.582022Z", "gateway_id":"b0920865-db15-452b-8a59-3fdc05d4339a", - "private_network_id":"33e309e0-71eb-4915-95e6-baafe98c0759", "mac_address":"02:00:00:18:95:29", - "enable_masquerade":false, "status":"detaching", "dhcp":{"id":"b9915f5e-7c29-421b-8fae-2e4bea947f91", - "organization_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", "project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "created_at":"2024-02-23T14:57:00.099718Z", "updated_at":"2024-02-23T14:57:00.099718Z", - "subnet":"192.168.1.0/24", "address":"192.168.1.1", "pool_low":"192.168.1.2", - "pool_high":"192.168.1.254", "enable_dynamic":true, "valid_lifetime":"3600s", - "renew_timer":"3000s", "rebind_timer":"3060s", "push_default_route":true, "push_dns_server":true, - "dns_servers_override":[], "dns_search":[], "dns_local_name":"priv", "zone":"fr-par-1"}, - "enable_dhcp":true, "address":null, "ipam_config":null, "zone":"fr-par-1"}' + body: '{"id":"c0eda470-15af-4ce1-b57f-d334f5def8a7", "created_at":"2024-12-18T16:05:03.801488Z", + "updated_at":"2024-12-18T16:05:19.187089Z", "gateway_id":"58088b82-7940-40fe-9bef-c8c971642a66", + "private_network_id":"fd87fb88-d9d4-4406-82f9-dab6ec87336e", "mac_address":"02:00:00:11:2B:E4", + "enable_masquerade":false, "status":"detaching", "dhcp":null, "enable_dhcp":true, + "address":"172.16.88.2/22", "ipam_config":{"push_default_route":true, "ipam_ip_id":"496180b2-77ee-4239-9842-3e535b6b8daa"}, + "zone":"fr-par-1"}' headers: Content-Length: - - "1001" + - "507" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:57:17 GMT + - Wed, 18 Dec 2024 16:05:19 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -541,20 +491,20 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - d8174035-b975-4e49-b02b-128efac8a29a + - 81f1ea67-5ea5-4431-be6b-aa794bf84868 status: 200 OK code: 200 duration: "" - request: - body: '{"message":"resource is not found","resource":"gateway_network","resource_id":"8d84f727-0251-48f5-8000-054706fd7def","type":"not_found"}' + body: '{"message":"resource is not found","resource":"gateway_network","resource_id":"c0eda470-15af-4ce1-b57f-d334f5def8a7","type":"not_found"}' form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateway-networks/8d84f727-0251-48f5-8000-054706fd7def + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateway-networks/c0eda470-15af-4ce1-b57f-d334f5def8a7 method: GET response: - body: '{"message":"resource is not found","resource":"gateway_network","resource_id":"8d84f727-0251-48f5-8000-054706fd7def","type":"not_found"}' + body: '{"message":"resource is not found","resource":"gateway_network","resource_id":"c0eda470-15af-4ce1-b57f-d334f5def8a7","type":"not_found"}' headers: Content-Length: - "136" @@ -563,9 +513,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:57:32 GMT + - Wed, 18 Dec 2024 16:05:34 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -573,7 +523,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - c43b993b-b568-4caa-bacd-0a02a642e632 + - 582b1ca4-4ccc-42a5-834f-b29c672f481d status: 404 Not Found code: 404 duration: "" @@ -582,38 +532,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/33e309e0-71eb-4915-95e6-baafe98c0759 - method: DELETE - response: - body: "" - headers: - Content-Security-Policy: - - default-src 'none'; frame-ancestors 'none' - Content-Type: - - application/json - Date: - - Fri, 23 Feb 2024 14:57:34 GMT - Server: - - Scaleway API Gateway (fr-par-2;edge02) - Strict-Transport-Security: - - max-age=63072000 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Request-Id: - - 3cc2ad40-b188-4879-bab3-4a4b64249d2f - status: 204 No Content - code: 204 - duration: "" -- request: - body: "" - form: {} - headers: - User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/dhcps/b9915f5e-7c29-421b-8fae-2e4bea947f91 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/vpc/v2/regions/fr-par/private-networks/fd87fb88-d9d4-4406-82f9-dab6ec87336e method: DELETE response: body: "" @@ -623,9 +543,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:57:34 GMT + - Wed, 18 Dec 2024 16:05:35 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -633,7 +553,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f00fe321-7e22-4eac-8e04-3bda5308aeb3 + - 50c9f16f-b2f9-4441-9795-1e4225de2ef8 status: 204 No Content code: 204 duration: "" @@ -642,8 +562,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateways/b0920865-db15-452b-8a59-3fdc05d4339a?cleanup_dhcp=false + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/gateways/58088b82-7940-40fe-9bef-c8c971642a66?cleanup_dhcp=false method: DELETE response: body: "" @@ -653,9 +573,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:57:34 GMT + - Wed, 18 Dec 2024 16:05:35 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -663,7 +583,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - d11c5f1a-41e3-488b-ab72-04afa5d8cee8 + - 632548e8-9729-48d8-bfd8-d710701f2dda status: 204 No Content code: 204 duration: "" @@ -672,8 +592,8 @@ interactions: form: {} headers: User-Agent: - - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.21.7; darwin; amd64) cli-e2e-test - url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/ips/9987a45c-2068-4aa9-a517-816382f55806 + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.2; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/vpc-gw/v1/zones/fr-par-1/ips/489a2543-644e-4687-9e5d-2e12ca8ca3aa method: DELETE response: body: "" @@ -683,9 +603,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 23 Feb 2024 14:57:34 GMT + - Wed, 18 Dec 2024 16:05:36 GMT Server: - - Scaleway API Gateway (fr-par-2;edge02) + - Scaleway API Gateway (fr-par-1;edge03) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -693,7 +613,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - fb1c95a5-19b2-448d-96b9-85dbfd1800d1 + - 7cbdbb7f-33e0-41d3-95d6-5460c2608d58 status: 204 No Content code: 204 duration: "" diff --git a/internal/namespaces/vpcgw/v1/testdata/test-vpc-gw-gateway-network-get-simple.golden b/internal/namespaces/vpcgw/v1/testdata/test-vpc-gw-gateway-network-get-simple.golden index e72f19a567..fd857cbf17 100644 --- a/internal/namespaces/vpcgw/v1/testdata/test-vpc-gw-gateway-network-get-simple.golden +++ b/internal/namespaces/vpcgw/v1/testdata/test-vpc-gw-gateway-network-get-simple.golden @@ -1,67 +1,37 @@ 🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 🟩🟩🟩 STDOUT️ 🟩🟩🟩️ -ID 8d84f727-0251-48f5-8000-054706fd7def -CreatedAt few seconds ago -UpdatedAt few seconds ago -GatewayID b0920865-db15-452b-8a59-3fdc05d4339a -PrivateNetworkID 33e309e0-71eb-4915-95e6-baafe98c0759 -MacAddress 02:00:00:18:95:29 -EnableMasquerade false -Status ready -EnableDHCP true -Zone fr-par-1 +ID c0eda470-15af-4ce1-b57f-d334f5def8a7 +CreatedAt few seconds ago +UpdatedAt few seconds ago +GatewayID 58088b82-7940-40fe-9bef-c8c971642a66 +PrivateNetworkID fd87fb88-d9d4-4406-82f9-dab6ec87336e +MacAddress 02:00:00:11:2B:E4 +EnableMasquerade false +Status ready +EnableDHCP true +Address 172.16.88.2/22 +IpamConfig.PushDefaultRoute true +IpamConfig.IpamIPID 496180b2-77ee-4239-9842-3e535b6b8daa +Zone fr-par-1 DHCP: -ID b9915f5e-7c29-421b-8fae-2e4bea947f91 -OrganizationID d3520a52-2c75-4ba0-bda8-82dd087f07f2 -ProjectID d3520a52-2c75-4ba0-bda8-82dd087f07f2 -CreatedAt few seconds ago -UpdatedAt few seconds ago -Subnet 192.168.1.0/24 -Address 192.168.1.1 -PoolLow 192.168.1.2 -PoolHigh 192.168.1.254 -EnableDynamic true -ValidLifetime 1 hours -RenewTimer 50 minutes -RebindTimer 51 minutes -PushDefaultRoute true -PushDNSServer true -DNSLocalName priv -Zone fr-par-1 +- 🟩🟩🟩 JSON STDOUT 🟩🟩🟩 { - "id": "8d84f727-0251-48f5-8000-054706fd7def", + "id": "c0eda470-15af-4ce1-b57f-d334f5def8a7", "created_at": "1970-01-01T00:00:00.0Z", "updated_at": "1970-01-01T00:00:00.0Z", - "gateway_id": "b0920865-db15-452b-8a59-3fdc05d4339a", - "private_network_id": "33e309e0-71eb-4915-95e6-baafe98c0759", - "mac_address": "02:00:00:18:95:29", + "gateway_id": "58088b82-7940-40fe-9bef-c8c971642a66", + "private_network_id": "fd87fb88-d9d4-4406-82f9-dab6ec87336e", + "mac_address": "02:00:00:11:2B:E4", "enable_masquerade": false, "status": "ready", - "dhcp": { - "id": "b9915f5e-7c29-421b-8fae-2e4bea947f91", - "organization_id": "d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "project_id": "d3520a52-2c75-4ba0-bda8-82dd087f07f2", - "created_at": "1970-01-01T00:00:00.0Z", - "updated_at": "1970-01-01T00:00:00.0Z", - "subnet": "192.168.1.0/24", - "address": "192.168.1.1", - "pool_low": "192.168.1.2", - "pool_high": "192.168.1.254", - "enable_dynamic": true, - "valid_lifetime": "3600.000000000s", - "renew_timer": "3000.000000000s", - "rebind_timer": "3060.000000000s", + "dhcp": null, + "enable_dhcp": true, + "address": "172.16.88.2/22", + "ipam_config": { "push_default_route": true, - "push_dns_server": true, - "dns_servers_override": [], - "dns_search": [], - "dns_local_name": "priv", - "zone": "fr-par-1" + "ipam_ip_id": "496180b2-77ee-4239-9842-3e535b6b8daa" }, - "enable_dhcp": true, - "address": null, - "ipam_config": null, "zone": "fr-par-1" } diff --git a/internal/testhelpers/helpers_vpcgw.go b/internal/testhelpers/helpers_vpcgw.go index d0d8b9fe4f..239412a791 100644 --- a/internal/testhelpers/helpers_vpcgw.go +++ b/internal/testhelpers/helpers_vpcgw.go @@ -17,21 +17,7 @@ func CreateGateway(metakey string) core.BeforeFunc { func CreateGatewayNetwork(metakey string) core.BeforeFunc { return core.ExecStoreBeforeCmd( "GWNT", - "scw vpc-gw gateway-network create gateway-id={{ ."+metakey+".ID }} private-network-id={{ .PN.ID }} --wait", - ) -} - -func CreateGatewayNetworkDHCP(metakey string) core.BeforeFunc { - return core.ExecStoreBeforeCmd( - "GWNT", - "scw vpc-gw gateway-network create gateway-id={{ ."+metakey+".ID }} private-network-id={{ .PN.ID }} enable-dhcp=true dhcp-id={{ .DHCP.ID }} --wait", - ) -} - -func CreateDHCP() core.BeforeFunc { - return core.ExecStoreBeforeCmd( - "DHCP", - "scw vpc-gw dhcp create subnet=192.168.1.0/24 enable-dynamic=true", + "scw vpc-gw gateway-network create gateway-id={{ ."+metakey+".ID }} private-network-id={{ .PN.ID }} ipam-config.push-default-route=true --wait", ) } @@ -46,7 +32,3 @@ func DeleteGateway(metakey string) core.AfterFunc { func DeleteIPVpcGw(metakey string) core.AfterFunc { return core.ExecAfterCmd("scw vpc-gw ip delete {{ ." + metakey + ".IP.ID }}") } - -func DeleteDHCP() core.AfterFunc { - return core.ExecAfterCmd("scw vpc-gw dhcp delete {{ .DHCP.ID }}") -}