-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(rdb): add missing fields on backup builder (#2586)
Co-authored-by: Rémy Léone <rleone@scaleway.com>
- Loading branch information
Showing
3 changed files
with
99 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 27 additions & 9 deletions
36
internal/namespaces/rdb/v1/testdata/test-list-backup-simple.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,40 @@ | ||
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 | ||
🟩🟩🟩 STDOUT️ 🟩🟩🟩️ | ||
ID Name Status Instance ID Exported | ||
da73454a-8232-4d91-b773-8f16ad50a7e1 will_be_exported ready e3678a86-fc68-43ae-90b1-d267b2369576 true | ||
65ce3352-def6-4376-a9d2-cb063a3ce973 will_not_be_exported ready e3678a86-fc68-43ae-90b1-d267b2369576 false | ||
ID Name Database Name Size Status Instance ID URL Expired Download URL Expires At Created At Updated At Region Same Region | ||
da73454a-8232-4d91-b773-8f16ad50a7e1 will_be_exported rdb 2.1 kB ready e3678a86-fc68-43ae-90b1-d267b2369576 false https://s3.nl-ams.scw.cloud/65940610-0e5e-4a98-9306-568aa4eb3673/e3678a86-fc68-43ae-90b1-d267b2369576/da73454a-8232-4d91-b773-8f16ad50a7e1.custom?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=SCWBTK7RYYS1750DS37K%2F20220901%2Fnl-ams%2Fs3%2Faws4_request&X-Amz-Date=20220901T134254Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=4c1622ddf93fa720d38e9a7ba365c16ae07e9d731ba6f6182c95847214d7e21d few seconds ago few seconds ago few seconds ago fr-par false | ||
65ce3352-def6-4376-a9d2-cb063a3ce973 will_not_be_exported rdb 2.1 kB ready e3678a86-fc68-43ae-90b1-d267b2369576 true - few seconds ago few seconds ago few seconds ago fr-par false | ||
🟩🟩🟩 JSON STDOUT 🟩🟩🟩 | ||
[ | ||
{ | ||
"ID": "da73454a-8232-4d91-b773-8f16ad50a7e1", | ||
"name": "will_be_exported", | ||
"instance_ID": "e3678a86-fc68-43ae-90b1-d267b2369576", | ||
"exported": true, | ||
"status": "ready" | ||
"database_name": "rdb", | ||
"name": "will_be_exported", | ||
"status": "ready", | ||
"size": 2107, | ||
"expires_at": "2999-01-02T22:04:05Z", | ||
"created_at": "1970-01-01T00:00:00.0Z", | ||
"updated_at": "1970-01-01T00:00:00.0Z", | ||
"instance_name": "cli-test", | ||
"download_url": "https://s3.nl-ams.scw.cloud/65940610-0e5e-4a98-9306-568aa4eb3673/e3678a86-fc68-43ae-90b1-d267b2369576/da73454a-8232-4d91-b773-8f16ad50a7e1.custom?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=SCWBTK7RYYS1750DS37K%2F20220901%2Fnl-ams%2Fs3%2Faws4_request\u0026X-Amz-Date=20220901T134254Z\u0026X-Amz-Expires=86400\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=4c1622ddf93fa720d38e9a7ba365c16ae07e9d731ba6f6182c95847214d7e21d", | ||
"url_expired": false, | ||
"region": "fr-par", | ||
"same_region": false | ||
}, | ||
{ | ||
"ID": "65ce3352-def6-4376-a9d2-cb063a3ce973", | ||
"name": "will_not_be_exported", | ||
"instance_ID": "e3678a86-fc68-43ae-90b1-d267b2369576", | ||
"exported": false, | ||
"status": "ready" | ||
"database_name": "rdb", | ||
"name": "will_not_be_exported", | ||
"status": "ready", | ||
"size": 2107, | ||
"expires_at": "2999-01-02T22:04:05Z", | ||
"created_at": "1970-01-01T00:00:00.0Z", | ||
"updated_at": "1970-01-01T00:00:00.0Z", | ||
"instance_name": "cli-test", | ||
"download_url": "", | ||
"url_expired": true, | ||
"region": "fr-par", | ||
"same_region": false | ||
} | ||
] |