From 8193b6758fabe50bdf760180a44c48fb383c1cc6 Mon Sep 17 00:00:00 2001 From: Jules Casteran Date: Thu, 2 Jan 2025 10:19:07 +0100 Subject: [PATCH] test(instance): bump Test_ServerBackup/With_SBS_volumes cassettes --- ...rver-backup-with-sbs-volumes.cassette.yaml | 352 +++++++++++------- ...test-server-backup-with-sbs-volumes.golden | 12 +- 2 files changed, 226 insertions(+), 138 deletions(-) diff --git a/internal/namespaces/instance/v1/testdata/test-server-backup-with-sbs-volumes.cassette.yaml b/internal/namespaces/instance/v1/testdata/test-server-backup-with-sbs-volumes.cassette.yaml index c20fcda92f..7c1ee926bc 100644 --- a/internal/namespaces/instance/v1/testdata/test-server-backup-with-sbs-volumes.cassette.yaml +++ b/internal/namespaces/instance/v1/testdata/test-server-backup-with-sbs-volumes.cassette.yaml @@ -919,12 +919,12 @@ interactions: Content-Type: - application/json Date: - - Thu, 02 Jan 2025 08:45:45 GMT + - Thu, 02 Jan 2025 09:15:47 GMT Link: - ; rel="next",; rel="last" Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-1;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -932,7 +932,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a8fac5a9-1fe1-4863-a273-0c0e38287702 + - b124a34e-96c5-4d5a-b00c-034034011306 X-Total-Count: - "68" status: 200 OK @@ -1282,12 +1282,12 @@ interactions: Content-Type: - application/json Date: - - Thu, 02 Jan 2025 08:45:45 GMT + - Thu, 02 Jan 2025 09:15:47 GMT Link: - ; rel="first",; rel="previous",; rel="last" Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-1;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1295,7 +1295,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 4f611fa2-2e74-48b4-be10-21a2d26c250f + - 944410bb-444b-4226-9c6b-5e947127563d X-Total-Count: - "68" status: 200 OK @@ -1349,9 +1349,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 02 Jan 2025 08:45:45 GMT + - Thu, 02 Jan 2025 09:15:48 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-1;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1359,7 +1359,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 58d782c9-c614-43fd-9fe7-4515da4350d8 + - e92fb71f-0c61-42aa-9df4-0522a84adb95 status: 200 OK code: 200 duration: "" @@ -1395,9 +1395,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 02 Jan 2025 08:45:45 GMT + - Thu, 02 Jan 2025 09:15:48 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-1;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1405,15 +1405,15 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - e94f6126-69d4-4bc8-88fd-116d6731583f + - 8e830c9f-2a87-4705-a4cc-672fb82a8b05 status: 200 OK code: 200 duration: "" - request: - body: '{"server": {"id": "4ddeec43-333d-41bd-aa8e-b3d5667c0441", "name": "cli-srv-focused-archimedes", + body: '{"server": {"id": "669f509e-de8b-47c6-a0a6-7fa8b8ba396b", "name": "cli-srv-frosty-cohen", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", - "hostname": "cli-srv-focused-archimedes", "image": {"id": "1fb9bfa4-68c3-4d6f-a362-8913a1af27b0", + "hostname": "cli-srv-frosty-cohen", "image": {"id": "1fb9bfa4-68c3-4d6f-a362-8913a1af27b0", "name": "Ubuntu 22.04 Jammy Jellyfish", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "project": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"volume_type": "sbs_snapshot", "id": "4eb9437f-8993-444a-b564-f7654add2131", "size": 0, "name": @@ -1421,12 +1421,12 @@ interactions: "2024-10-07T11:39:13.069801+00:00", "modification_date": "2024-10-07T11:39:13.069801+00:00", "default_bootscript": null, "from_server": "", "state": "available", "tags": [], "zone": "fr-par-1"}, "volumes": {"0": {"boot": false, "volume_type": "sbs_volume", - "id": "d5edd5da-3d44-421c-a6b4-4772e41f4680", "zone": "fr-par-1"}}, "tags": + "id": "e8cfbac0-8807-4186-9950-605637873aa6", "zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": "", "public_ip": - null, "public_ips": [], "mac_address": "de:00:00:8a:ee:01", "routed_ip_enabled": + null, "public_ips": [], "mac_address": "de:00:00:8a:ef:bb", "routed_ip_enabled": true, "ipv6": null, "extra_networks": [], "dynamic_ip_required": false, "enable_ipv6": - false, "private_ip": null, "creation_date": "2025-01-02T08:45:45.861270+00:00", - "modification_date": "2025-01-02T08:45:45.861270+00:00", "bootscript": null, + false, "private_ip": null, "creation_date": "2025-01-02T09:15:48.570341+00:00", + "modification_date": "2025-01-02T09:15:48.570341+00:00", "bootscript": null, "security_group": {"id": "0fe819c3-274d-472a-b3f5-ddb258d2d8bb", "name": "Default security group"}, "location": null, "maintenances": [], "allowed_actions": ["poweron", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' @@ -1439,10 +1439,10 @@ interactions: url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers method: POST response: - body: '{"server": {"id": "4ddeec43-333d-41bd-aa8e-b3d5667c0441", "name": "cli-srv-focused-archimedes", + body: '{"server": {"id": "669f509e-de8b-47c6-a0a6-7fa8b8ba396b", "name": "cli-srv-frosty-cohen", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", - "hostname": "cli-srv-focused-archimedes", "image": {"id": "1fb9bfa4-68c3-4d6f-a362-8913a1af27b0", + "hostname": "cli-srv-frosty-cohen", "image": {"id": "1fb9bfa4-68c3-4d6f-a362-8913a1af27b0", "name": "Ubuntu 22.04 Jammy Jellyfish", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "project": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"volume_type": "sbs_snapshot", "id": "4eb9437f-8993-444a-b564-f7654add2131", "size": 0, "name": @@ -1450,28 +1450,28 @@ interactions: "2024-10-07T11:39:13.069801+00:00", "modification_date": "2024-10-07T11:39:13.069801+00:00", "default_bootscript": null, "from_server": "", "state": "available", "tags": [], "zone": "fr-par-1"}, "volumes": {"0": {"boot": false, "volume_type": "sbs_volume", - "id": "d5edd5da-3d44-421c-a6b4-4772e41f4680", "zone": "fr-par-1"}}, "tags": + "id": "e8cfbac0-8807-4186-9950-605637873aa6", "zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": "", "public_ip": - null, "public_ips": [], "mac_address": "de:00:00:8a:ee:01", "routed_ip_enabled": + null, "public_ips": [], "mac_address": "de:00:00:8a:ef:bb", "routed_ip_enabled": true, "ipv6": null, "extra_networks": [], "dynamic_ip_required": false, "enable_ipv6": - false, "private_ip": null, "creation_date": "2025-01-02T08:45:45.861270+00:00", - "modification_date": "2025-01-02T08:45:45.861270+00:00", "bootscript": null, + false, "private_ip": null, "creation_date": "2025-01-02T09:15:48.570341+00:00", + "modification_date": "2025-01-02T09:15:48.570341+00:00", "bootscript": null, "security_group": {"id": "0fe819c3-274d-472a-b3f5-ddb258d2d8bb", "name": "Default security group"}, "location": null, "maintenances": [], "allowed_actions": ["poweron", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Content-Length: - - "1686" + - "1674" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 02 Jan 2025 08:45:46 GMT + - Thu, 02 Jan 2025 09:15:49 GMT Location: - - https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/4ddeec43-333d-41bd-aa8e-b3d5667c0441 + - https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/669f509e-de8b-47c6-a0a6-7fa8b8ba396b Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-1;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1479,15 +1479,15 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - af89d26d-6606-439d-9075-598baa39ed4f + - 219e967c-fe57-4231-8bff-dbfd6ba0118d status: 201 Created code: 201 duration: "" - request: - body: '{"server": {"id": "4ddeec43-333d-41bd-aa8e-b3d5667c0441", "name": "cli-srv-focused-archimedes", + body: '{"server": {"id": "669f509e-de8b-47c6-a0a6-7fa8b8ba396b", "name": "cli-srv-frosty-cohen", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", - "hostname": "cli-srv-focused-archimedes", "image": {"id": "1fb9bfa4-68c3-4d6f-a362-8913a1af27b0", + "hostname": "cli-srv-frosty-cohen", "image": {"id": "1fb9bfa4-68c3-4d6f-a362-8913a1af27b0", "name": "Ubuntu 22.04 Jammy Jellyfish", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "project": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"volume_type": "sbs_snapshot", "id": "4eb9437f-8993-444a-b564-f7654add2131", "size": 0, "name": @@ -1495,12 +1495,12 @@ interactions: "2024-10-07T11:39:13.069801+00:00", "modification_date": "2024-10-07T11:39:13.069801+00:00", "default_bootscript": null, "from_server": "", "state": "available", "tags": [], "zone": "fr-par-1"}, "volumes": {"0": {"boot": false, "volume_type": "sbs_volume", - "id": "d5edd5da-3d44-421c-a6b4-4772e41f4680", "zone": "fr-par-1"}}, "tags": + "id": "e8cfbac0-8807-4186-9950-605637873aa6", "zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": "", "public_ip": - null, "public_ips": [], "mac_address": "de:00:00:8a:ee:01", "routed_ip_enabled": + null, "public_ips": [], "mac_address": "de:00:00:8a:ef:bb", "routed_ip_enabled": true, "ipv6": null, "extra_networks": [], "dynamic_ip_required": false, "enable_ipv6": - false, "private_ip": null, "creation_date": "2025-01-02T08:45:45.861270+00:00", - "modification_date": "2025-01-02T08:45:45.861270+00:00", "bootscript": null, + false, "private_ip": null, "creation_date": "2025-01-02T09:15:48.570341+00:00", + "modification_date": "2025-01-02T09:15:48.570341+00:00", "bootscript": null, "security_group": {"id": "0fe819c3-274d-472a-b3f5-ddb258d2d8bb", "name": "Default security group"}, "location": null, "maintenances": [], "allowed_actions": ["poweron", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' @@ -1508,13 +1508,13 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/4ddeec43-333d-41bd-aa8e-b3d5667c0441 + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/669f509e-de8b-47c6-a0a6-7fa8b8ba396b method: GET response: - body: '{"server": {"id": "4ddeec43-333d-41bd-aa8e-b3d5667c0441", "name": "cli-srv-focused-archimedes", + body: '{"server": {"id": "669f509e-de8b-47c6-a0a6-7fa8b8ba396b", "name": "cli-srv-frosty-cohen", "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", - "hostname": "cli-srv-focused-archimedes", "image": {"id": "1fb9bfa4-68c3-4d6f-a362-8913a1af27b0", + "hostname": "cli-srv-frosty-cohen", "image": {"id": "1fb9bfa4-68c3-4d6f-a362-8913a1af27b0", "name": "Ubuntu 22.04 Jammy Jellyfish", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", "project": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"volume_type": "sbs_snapshot", "id": "4eb9437f-8993-444a-b564-f7654add2131", "size": 0, "name": @@ -1522,26 +1522,26 @@ interactions: "2024-10-07T11:39:13.069801+00:00", "modification_date": "2024-10-07T11:39:13.069801+00:00", "default_bootscript": null, "from_server": "", "state": "available", "tags": [], "zone": "fr-par-1"}, "volumes": {"0": {"boot": false, "volume_type": "sbs_volume", - "id": "d5edd5da-3d44-421c-a6b4-4772e41f4680", "zone": "fr-par-1"}}, "tags": + "id": "e8cfbac0-8807-4186-9950-605637873aa6", "zone": "fr-par-1"}}, "tags": [], "state": "stopped", "protected": false, "state_detail": "", "public_ip": - null, "public_ips": [], "mac_address": "de:00:00:8a:ee:01", "routed_ip_enabled": + null, "public_ips": [], "mac_address": "de:00:00:8a:ef:bb", "routed_ip_enabled": true, "ipv6": null, "extra_networks": [], "dynamic_ip_required": false, "enable_ipv6": - false, "private_ip": null, "creation_date": "2025-01-02T08:45:45.861270+00:00", - "modification_date": "2025-01-02T08:45:45.861270+00:00", "bootscript": null, + false, "private_ip": null, "creation_date": "2025-01-02T09:15:48.570341+00:00", + "modification_date": "2025-01-02T09:15:48.570341+00:00", "bootscript": null, "security_group": {"id": "0fe819c3-274d-472a-b3f5-ddb258d2d8bb", "name": "Default security group"}, "location": null, "maintenances": [], "allowed_actions": ["poweron", "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Content-Length: - - "1686" + - "1674" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 02 Jan 2025 08:45:46 GMT + - Thu, 02 Jan 2025 09:15:49 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-1;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1549,15 +1549,15 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 030823a0-65ba-4bbc-9e95-c02d0ec62ca2 + - 4e43d346-11ab-464d-a587-8c1fddbff5c5 status: 200 OK code: 200 duration: "" - request: - body: '{"task": {"id": "97662390-65e5-4071-9be4-fee99637eb76", "description": - "server_backup", "status": "pending", "href_from": "/servers/4ddeec43-333d-41bd-aa8e-b3d5667c0441/action", - "href_result": "/images/08a8b11c-024e-4fa7-bda7-82a60bb55566", "started_at": - "2025-01-02T08:45:47.350635+00:00", "terminated_at": null, "progress": 0, "zone": + body: '{"task": {"id": "9f5d7817-905b-4b95-b3b2-6da4e69679fa", "description": + "server_backup", "status": "pending", "href_from": "/servers/669f509e-de8b-47c6-a0a6-7fa8b8ba396b/action", + "href_result": "/images/624b2ac7-826d-4d21-b288-5cfca16ab3bf", "started_at": + "2025-01-02T09:15:49.889956+00:00", "terminated_at": null, "progress": 0, "zone": "par1"}}' form: {} headers: @@ -1565,13 +1565,13 @@ interactions: - application/json User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/4ddeec43-333d-41bd-aa8e-b3d5667c0441/action + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/669f509e-de8b-47c6-a0a6-7fa8b8ba396b/action method: POST response: - body: '{"task": {"id": "97662390-65e5-4071-9be4-fee99637eb76", "description": - "server_backup", "status": "pending", "href_from": "/servers/4ddeec43-333d-41bd-aa8e-b3d5667c0441/action", - "href_result": "/images/08a8b11c-024e-4fa7-bda7-82a60bb55566", "started_at": - "2025-01-02T08:45:47.350635+00:00", "terminated_at": null, "progress": 0, "zone": + body: '{"task": {"id": "9f5d7817-905b-4b95-b3b2-6da4e69679fa", "description": + "server_backup", "status": "pending", "href_from": "/servers/669f509e-de8b-47c6-a0a6-7fa8b8ba396b/action", + "href_result": "/images/624b2ac7-826d-4d21-b288-5cfca16ab3bf", "started_at": + "2025-01-02T09:15:49.889956+00:00", "terminated_at": null, "progress": 0, "zone": "par1"}}' headers: Content-Length: @@ -1581,11 +1581,11 @@ interactions: Content-Type: - application/json Date: - - Thu, 02 Jan 2025 08:45:47 GMT + - Thu, 02 Jan 2025 09:15:49 GMT Location: - - https://api.scaleway.com/instance/v1/zones/fr-par-1/tasks/97662390-65e5-4071-9be4-fee99637eb76 + - https://api.scaleway.com/instance/v1/zones/fr-par-1/tasks/9f5d7817-905b-4b95-b3b2-6da4e69679fa Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-1;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1593,31 +1593,31 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 7b7a3368-7886-4f22-b2d1-22555c2b9791 + - 20f70ab5-8cda-4945-ab08-d96d2b300825 status: 202 Accepted code: 202 duration: "" - request: - body: '{"image": {"id": "08a8b11c-024e-4fa7-bda7-82a60bb55566", "name": "backup", + body: '{"image": {"id": "624b2ac7-826d-4d21-b288-5cfca16ab3bf", "name": "backup", "organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", - "root_volume": {"volume_type": "sbs_snapshot", "id": "1940eefa-bf45-4ab0-9019-474d4d0433e3", + "root_volume": {"volume_type": "sbs_snapshot", "id": "78fa5273-3ea8-4a41-ae45-abba9d58338c", "size": 0, "name": ""}, "extra_volumes": {}, "public": false, "arch": "x86_64", - "creation_date": "2025-01-02T08:45:46.928100+00:00", "modification_date": "2025-01-02T08:45:46.928100+00:00", - "default_bootscript": null, "from_server": "4ddeec43-333d-41bd-aa8e-b3d5667c0441", + "creation_date": "2025-01-02T09:15:49.462130+00:00", "modification_date": "2025-01-02T09:15:49.462130+00:00", + "default_bootscript": null, "from_server": "669f509e-de8b-47c6-a0a6-7fa8b8ba396b", "state": "available", "tags": [], "zone": "fr-par-1"}}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/images/08a8b11c-024e-4fa7-bda7-82a60bb55566 + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/images/624b2ac7-826d-4d21-b288-5cfca16ab3bf method: GET response: - body: '{"image": {"id": "08a8b11c-024e-4fa7-bda7-82a60bb55566", "name": "backup", + body: '{"image": {"id": "624b2ac7-826d-4d21-b288-5cfca16ab3bf", "name": "backup", "organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", - "root_volume": {"volume_type": "sbs_snapshot", "id": "1940eefa-bf45-4ab0-9019-474d4d0433e3", + "root_volume": {"volume_type": "sbs_snapshot", "id": "78fa5273-3ea8-4a41-ae45-abba9d58338c", "size": 0, "name": ""}, "extra_volumes": {}, "public": false, "arch": "x86_64", - "creation_date": "2025-01-02T08:45:46.928100+00:00", "modification_date": "2025-01-02T08:45:46.928100+00:00", - "default_bootscript": null, "from_server": "4ddeec43-333d-41bd-aa8e-b3d5667c0441", + "creation_date": "2025-01-02T09:15:49.462130+00:00", "modification_date": "2025-01-02T09:15:49.462130+00:00", + "default_bootscript": null, "from_server": "669f509e-de8b-47c6-a0a6-7fa8b8ba396b", "state": "available", "tags": [], "zone": "fr-par-1"}}' headers: Content-Length: @@ -1627,9 +1627,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 02 Jan 2025 08:45:47 GMT + - Thu, 02 Jan 2025 09:15:49 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-1;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1637,31 +1637,31 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 924bf366-6b23-4ac9-8d19-39f6288ec5c7 + - d048698d-8536-4698-a1da-492b964fa178 status: 200 OK code: 200 duration: "" - request: - body: '{"image": {"id": "08a8b11c-024e-4fa7-bda7-82a60bb55566", "name": "backup", + body: '{"image": {"id": "624b2ac7-826d-4d21-b288-5cfca16ab3bf", "name": "backup", "organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", - "root_volume": {"volume_type": "sbs_snapshot", "id": "1940eefa-bf45-4ab0-9019-474d4d0433e3", + "root_volume": {"volume_type": "sbs_snapshot", "id": "78fa5273-3ea8-4a41-ae45-abba9d58338c", "size": 0, "name": ""}, "extra_volumes": {}, "public": false, "arch": "x86_64", - "creation_date": "2025-01-02T08:45:46.928100+00:00", "modification_date": "2025-01-02T08:45:46.928100+00:00", - "default_bootscript": null, "from_server": "4ddeec43-333d-41bd-aa8e-b3d5667c0441", + "creation_date": "2025-01-02T09:15:49.462130+00:00", "modification_date": "2025-01-02T09:15:49.462130+00:00", + "default_bootscript": null, "from_server": "669f509e-de8b-47c6-a0a6-7fa8b8ba396b", "state": "available", "tags": [], "zone": "fr-par-1"}}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/images/08a8b11c-024e-4fa7-bda7-82a60bb55566 + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/images/624b2ac7-826d-4d21-b288-5cfca16ab3bf method: GET response: - body: '{"image": {"id": "08a8b11c-024e-4fa7-bda7-82a60bb55566", "name": "backup", + body: '{"image": {"id": "624b2ac7-826d-4d21-b288-5cfca16ab3bf", "name": "backup", "organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", - "root_volume": {"volume_type": "sbs_snapshot", "id": "1940eefa-bf45-4ab0-9019-474d4d0433e3", + "root_volume": {"volume_type": "sbs_snapshot", "id": "78fa5273-3ea8-4a41-ae45-abba9d58338c", "size": 0, "name": ""}, "extra_volumes": {}, "public": false, "arch": "x86_64", - "creation_date": "2025-01-02T08:45:46.928100+00:00", "modification_date": "2025-01-02T08:45:46.928100+00:00", - "default_bootscript": null, "from_server": "4ddeec43-333d-41bd-aa8e-b3d5667c0441", + "creation_date": "2025-01-02T09:15:49.462130+00:00", "modification_date": "2025-01-02T09:15:49.462130+00:00", + "default_bootscript": null, "from_server": "669f509e-de8b-47c6-a0a6-7fa8b8ba396b", "state": "available", "tags": [], "zone": "fr-par-1"}}' headers: Content-Length: @@ -1671,9 +1671,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 02 Jan 2025 08:45:47 GMT + - Thu, 02 Jan 2025 09:15:49 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-1;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1681,7 +1681,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - a1ddf572-55cb-45fc-8a4c-fec16712478a + - 69814eb6-d80f-4375-8a99-720278d6d4a5 status: 200 OK code: 200 duration: "" @@ -1691,7 +1691,7 @@ interactions: headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test - url: https://api.scaleway.com/instance/v1/zones/fr-par-1/images/08a8b11c-024e-4fa7-bda7-82a60bb55566 + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/images/624b2ac7-826d-4d21-b288-5cfca16ab3bf method: DELETE response: body: "" @@ -1701,9 +1701,9 @@ interactions: Content-Type: - application/json Date: - - Thu, 02 Jan 2025 08:45:48 GMT + - Thu, 02 Jan 2025 09:15:50 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-1;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1711,43 +1711,39 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 5c7a7bc9-fb21-42b7-b6e5-6b2b25db9bd4 + - 0a723fda-4838-4932-9f5b-1736e4c616ea status: 204 No Content code: 204 duration: "" - request: - body: '{"id":"1940eefa-bf45-4ab0-9019-474d4d0433e3", "name":"backup_snap_0", "parent_volume":{"id":"d5edd5da-3d44-421c-a6b4-4772e41f4680", + body: '{"id":"78fa5273-3ea8-4a41-ae45-abba9d58338c", "name":"backup_snap_0", "parent_volume":{"id":"e8cfbac0-8807-4186-9950-605637873aa6", "name":"Ubuntu 22.04 Jammy Jellyfish_sbs_volume_0", "type":"sbs_5k", "status":"in_use"}, - "size":20000000000, "project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "created_at":"2025-01-02T08:45:47.146762Z", - "updated_at":"2025-01-02T08:45:47.146762Z", "references":[{"id":"20d3b9b1-85a7-4b12-b5af-d6ca7f44866d", - "product_resource_type":"instance_image", "product_resource_id":"08a8b11c-024e-4fa7-bda7-82a60bb55566", - "created_at":"2025-01-02T08:45:47.146762Z", "type":"link", "status":"creating"}], - "status":"creating", "tags":[], "class":"sbs", "zone":"fr-par-1"}' + "size":20000000000, "project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "created_at":"2025-01-02T09:15:49.672649Z", + "updated_at":"2025-01-02T09:15:49.672649Z", "references":[], "status":"in_use", + "tags":[], "class":"sbs", "zone":"fr-par-1"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test - url: https://api.scaleway.com/block/v1alpha1/zones/fr-par-1/snapshots/1940eefa-bf45-4ab0-9019-474d4d0433e3 + url: https://api.scaleway.com/block/v1alpha1/zones/fr-par-1/snapshots/78fa5273-3ea8-4a41-ae45-abba9d58338c method: GET response: - body: '{"id":"1940eefa-bf45-4ab0-9019-474d4d0433e3", "name":"backup_snap_0", "parent_volume":{"id":"d5edd5da-3d44-421c-a6b4-4772e41f4680", + body: '{"id":"78fa5273-3ea8-4a41-ae45-abba9d58338c", "name":"backup_snap_0", "parent_volume":{"id":"e8cfbac0-8807-4186-9950-605637873aa6", "name":"Ubuntu 22.04 Jammy Jellyfish_sbs_volume_0", "type":"sbs_5k", "status":"in_use"}, - "size":20000000000, "project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "created_at":"2025-01-02T08:45:47.146762Z", - "updated_at":"2025-01-02T08:45:47.146762Z", "references":[{"id":"20d3b9b1-85a7-4b12-b5af-d6ca7f44866d", - "product_resource_type":"instance_image", "product_resource_id":"08a8b11c-024e-4fa7-bda7-82a60bb55566", - "created_at":"2025-01-02T08:45:47.146762Z", "type":"link", "status":"creating"}], - "status":"creating", "tags":[], "class":"sbs", "zone":"fr-par-1"}' + "size":20000000000, "project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "created_at":"2025-01-02T09:15:49.672649Z", + "updated_at":"2025-01-02T09:15:49.672649Z", "references":[], "status":"in_use", + "tags":[], "class":"sbs", "zone":"fr-par-1"}' headers: Content-Length: - - "693" + - "462" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 02 Jan 2025 08:45:48 GMT + - Thu, 02 Jan 2025 09:15:50 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-1;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1755,43 +1751,39 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - b3f0edd6-7dba-4226-81cb-f2e309af4a5c + - 2ece3f62-02c8-4022-982a-62fbb25d1160 status: 200 OK code: 200 duration: "" - request: - body: '{"id":"1940eefa-bf45-4ab0-9019-474d4d0433e3", "name":"backup_snap_0", "parent_volume":{"id":"d5edd5da-3d44-421c-a6b4-4772e41f4680", + body: '{"id":"78fa5273-3ea8-4a41-ae45-abba9d58338c", "name":"backup_snap_0", "parent_volume":{"id":"e8cfbac0-8807-4186-9950-605637873aa6", "name":"Ubuntu 22.04 Jammy Jellyfish_sbs_volume_0", "type":"sbs_5k", "status":"in_use"}, - "size":20000000000, "project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "created_at":"2025-01-02T08:45:47.146762Z", - "updated_at":"2025-01-02T08:45:47.146762Z", "references":[{"id":"20d3b9b1-85a7-4b12-b5af-d6ca7f44866d", - "product_resource_type":"instance_image", "product_resource_id":"08a8b11c-024e-4fa7-bda7-82a60bb55566", - "created_at":"2025-01-02T08:45:47.146762Z", "type":"link", "status":"attached"}], - "status":"in_use", "tags":[], "class":"sbs", "zone":"fr-par-1"}' + "size":20000000000, "project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "created_at":"2025-01-02T09:15:49.672649Z", + "updated_at":"2025-01-02T09:15:50.763588Z", "references":[], "status":"available", + "tags":[], "class":"sbs", "zone":"fr-par-1"}' form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test - url: https://api.scaleway.com/block/v1alpha1/zones/fr-par-1/snapshots/1940eefa-bf45-4ab0-9019-474d4d0433e3 + url: https://api.scaleway.com/block/v1alpha1/zones/fr-par-1/snapshots/78fa5273-3ea8-4a41-ae45-abba9d58338c method: GET response: - body: '{"id":"1940eefa-bf45-4ab0-9019-474d4d0433e3", "name":"backup_snap_0", "parent_volume":{"id":"d5edd5da-3d44-421c-a6b4-4772e41f4680", + body: '{"id":"78fa5273-3ea8-4a41-ae45-abba9d58338c", "name":"backup_snap_0", "parent_volume":{"id":"e8cfbac0-8807-4186-9950-605637873aa6", "name":"Ubuntu 22.04 Jammy Jellyfish_sbs_volume_0", "type":"sbs_5k", "status":"in_use"}, - "size":20000000000, "project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "created_at":"2025-01-02T08:45:47.146762Z", - "updated_at":"2025-01-02T08:45:47.146762Z", "references":[{"id":"20d3b9b1-85a7-4b12-b5af-d6ca7f44866d", - "product_resource_type":"instance_image", "product_resource_id":"08a8b11c-024e-4fa7-bda7-82a60bb55566", - "created_at":"2025-01-02T08:45:47.146762Z", "type":"link", "status":"attached"}], - "status":"in_use", "tags":[], "class":"sbs", "zone":"fr-par-1"}' + "size":20000000000, "project_id":"ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "created_at":"2025-01-02T09:15:49.672649Z", + "updated_at":"2025-01-02T09:15:50.763588Z", "references":[], "status":"available", + "tags":[], "class":"sbs", "zone":"fr-par-1"}' headers: Content-Length: - - "691" + - "465" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 02 Jan 2025 08:45:53 GMT + - Thu, 02 Jan 2025 09:15:56 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-1;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1799,33 +1791,99 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - cdc1c89c-3b39-4b65-a83c-b4f47d7b20b1 + - 9d8a8fe8-d957-4049-83fa-8de94cefc54c status: 200 OK code: 200 duration: "" - request: - body: '{"help_message":"Snapshot is currently in use, deletion is not permitted.","message":"precondition - is not respected","precondition":"protected_resource","type":"precondition_failed"}' + body: "" form: {} headers: User-Agent: - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test - url: https://api.scaleway.com/block/v1alpha1/zones/fr-par-1/snapshots/1940eefa-bf45-4ab0-9019-474d4d0433e3 + url: https://api.scaleway.com/block/v1alpha1/zones/fr-par-1/snapshots/78fa5273-3ea8-4a41-ae45-abba9d58338c method: DELETE response: - body: '{"help_message":"Snapshot is currently in use, deletion is not permitted.","message":"precondition - is not respected","precondition":"protected_resource","type":"precondition_failed"}' + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 Jan 2025 09:15:56 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 71d325a7-ff01-4937-93ff-db52bbbf686b + status: 204 No Content + code: 204 + duration: "" +- request: + body: '{"server": {"id": "669f509e-de8b-47c6-a0a6-7fa8b8ba396b", "name": "cli-srv-frosty-cohen", + "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": + "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "hostname": "cli-srv-frosty-cohen", "image": {"id": "1fb9bfa4-68c3-4d6f-a362-8913a1af27b0", + "name": "Ubuntu 22.04 Jammy Jellyfish", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", + "project": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"volume_type": + "sbs_snapshot", "id": "4eb9437f-8993-444a-b564-f7654add2131", "size": 0, "name": + ""}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": + "2024-10-07T11:39:13.069801+00:00", "modification_date": "2024-10-07T11:39:13.069801+00:00", + "default_bootscript": null, "from_server": "", "state": "available", "tags": + [], "zone": "fr-par-1"}, "volumes": {"0": {"boot": false, "volume_type": "sbs_volume", + "id": "e8cfbac0-8807-4186-9950-605637873aa6", "zone": "fr-par-1"}}, "tags": + [], "state": "stopped", "protected": false, "state_detail": "", "public_ip": + null, "public_ips": [], "mac_address": "de:00:00:8a:ef:bb", "routed_ip_enabled": + true, "ipv6": null, "extra_networks": [], "dynamic_ip_required": false, "enable_ipv6": + false, "private_ip": null, "creation_date": "2025-01-02T09:15:48.570341+00:00", + "modification_date": "2025-01-02T09:15:48.570341+00:00", "bootscript": null, + "security_group": {"id": "0fe819c3-274d-472a-b3f5-ddb258d2d8bb", "name": "Default + security group"}, "location": null, "maintenances": [], "allowed_actions": ["poweron", + "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/669f509e-de8b-47c6-a0a6-7fa8b8ba396b + method: GET + response: + body: '{"server": {"id": "669f509e-de8b-47c6-a0a6-7fa8b8ba396b", "name": "cli-srv-frosty-cohen", + "arch": "x86_64", "commercial_type": "DEV1-S", "boot_type": "local", "organization": + "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "project": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", + "hostname": "cli-srv-frosty-cohen", "image": {"id": "1fb9bfa4-68c3-4d6f-a362-8913a1af27b0", + "name": "Ubuntu 22.04 Jammy Jellyfish", "organization": "51b656e3-4865-41e8-adbc-0c45bdd780db", + "project": "51b656e3-4865-41e8-adbc-0c45bdd780db", "root_volume": {"volume_type": + "sbs_snapshot", "id": "4eb9437f-8993-444a-b564-f7654add2131", "size": 0, "name": + ""}, "extra_volumes": {}, "public": true, "arch": "x86_64", "creation_date": + "2024-10-07T11:39:13.069801+00:00", "modification_date": "2024-10-07T11:39:13.069801+00:00", + "default_bootscript": null, "from_server": "", "state": "available", "tags": + [], "zone": "fr-par-1"}, "volumes": {"0": {"boot": false, "volume_type": "sbs_volume", + "id": "e8cfbac0-8807-4186-9950-605637873aa6", "zone": "fr-par-1"}}, "tags": + [], "state": "stopped", "protected": false, "state_detail": "", "public_ip": + null, "public_ips": [], "mac_address": "de:00:00:8a:ef:bb", "routed_ip_enabled": + true, "ipv6": null, "extra_networks": [], "dynamic_ip_required": false, "enable_ipv6": + false, "private_ip": null, "creation_date": "2025-01-02T09:15:48.570341+00:00", + "modification_date": "2025-01-02T09:15:48.570341+00:00", "bootscript": null, + "security_group": {"id": "0fe819c3-274d-472a-b3f5-ddb258d2d8bb", "name": "Default + security group"}, "location": null, "maintenances": [], "allowed_actions": ["poweron", + "backup"], "placement_group": null, "private_nics": [], "zone": "fr-par-1"}}' headers: Content-Length: - - "182" + - "1674" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Thu, 02 Jan 2025 08:45:53 GMT + - Thu, 02 Jan 2025 09:15:56 GMT Server: - - Scaleway API Gateway (fr-par-2;edge01) + - Scaleway API Gateway (fr-par-1;edge01) Strict-Transport-Security: - max-age=63072000 X-Content-Type-Options: @@ -1833,7 +1891,37 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - f0a138e8-4cb0-42a0-a7ac-735f4fc2cc38 - status: 412 Precondition Failed - code: 412 + - 8bbe0397-f257-4210-8f1e-99f7e346ac20 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.23.4; darwin; arm64) cli-e2e-test + url: https://api.scaleway.com/instance/v1/zones/fr-par-1/servers/669f509e-de8b-47c6-a0a6-7fa8b8ba396b + method: DELETE + response: + body: "" + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Thu, 02 Jan 2025 09:15:56 GMT + Server: + - Scaleway API Gateway (fr-par-1;edge01) + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 440c641d-bcb6-4ce3-b212-3303dff01f7a + status: 204 No Content + code: 204 duration: "" diff --git a/internal/namespaces/instance/v1/testdata/test-server-backup-with-sbs-volumes.golden b/internal/namespaces/instance/v1/testdata/test-server-backup-with-sbs-volumes.golden index 7c46f928d9..9eea0f568d 100644 --- a/internal/namespaces/instance/v1/testdata/test-server-backup-with-sbs-volumes.golden +++ b/internal/namespaces/instance/v1/testdata/test-server-backup-with-sbs-volumes.golden @@ -1,33 +1,33 @@ 🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 🟩🟩🟩 STDOUT️ 🟩🟩🟩️ -Image.ID 08a8b11c-024e-4fa7-bda7-82a60bb55566 +Image.ID 624b2ac7-826d-4d21-b288-5cfca16ab3bf Image.Name backup Image.Arch x86_64 Image.CreationDate few seconds ago Image.ModificationDate few seconds ago Image.ExtraVolumes 0 -Image.FromServer 4ddeec43-333d-41bd-aa8e-b3d5667c0441 +Image.FromServer 669f509e-de8b-47c6-a0a6-7fa8b8ba396b Image.Organization ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b Image.Public false -Image.RootVolume 1940eefa-bf45-4ab0-9019-474d4d0433e3 +Image.RootVolume 78fa5273-3ea8-4a41-ae45-abba9d58338c Image.State available Image.Project ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b Image.Zone fr-par-1 🟩🟩🟩 JSON STDOUT 🟩🟩🟩 { "image": { - "id": "08a8b11c-024e-4fa7-bda7-82a60bb55566", + "id": "624b2ac7-826d-4d21-b288-5cfca16ab3bf", "name": "backup", "arch": "x86_64", "creation_date": "1970-01-01T00:00:00.0Z", "modification_date": "1970-01-01T00:00:00.0Z", "default_bootscript": null, "extra_volumes": {}, - "from_server": "4ddeec43-333d-41bd-aa8e-b3d5667c0441", + "from_server": "669f509e-de8b-47c6-a0a6-7fa8b8ba396b", "organization": "ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b", "public": false, "root_volume": { - "id": "1940eefa-bf45-4ab0-9019-474d4d0433e3", + "id": "78fa5273-3ea8-4a41-ae45-abba9d58338c", "name": "", "size": 0, "volume_type": "sbs_snapshot"