Skip to content

Commit

Permalink
record goldens
Browse files Browse the repository at this point in the history
  • Loading branch information
Codelax committed Dec 26, 2023
1 parent 19727c8 commit 39d755f
Show file tree
Hide file tree
Showing 13 changed files with 246 additions and 0 deletions.
19 changes: 19 additions & 0 deletions cmd/scw/testdata/test-all-usage-sdb-sql-backup-export-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Export a database backup providing a download link once the export process is completed. You must provide the `backup_id` parameter.

USAGE:
scw sdb-sql backup export <backup-id ...> [arg=value ...]

ARGS:
backup-id UUID of the Serverless SQL Database backup.
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)

FLAGS:
-h, --help help for export

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
19 changes: 19 additions & 0 deletions cmd/scw/testdata/test-all-usage-sdb-sql-backup-get-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Retrieve information about your Serverless SQL Database backup. You must provide the `backup_id` parameter.

USAGE:
scw sdb-sql backup get <backup-id ...> [arg=value ...]

ARGS:
backup-id UUID of the Serverless SQL Database backup.
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)

FLAGS:
-h, --help help for get

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
20 changes: 20 additions & 0 deletions cmd/scw/testdata/test-all-usage-sdb-sql-backup-list-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
List all Serverless SQL Database backups for a given Scaleway Project or Database. By default, the backups returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field.

USAGE:
scw sdb-sql backup list [arg=value ...]

ARGS:
database-id Filter by the UUID of the Serverless SQL Database.
[order-by] Sorting criteria. One of `created_at_asc`, `created_at_desc`. (created_at_asc | created_at_desc)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | all)

FLAGS:
-h, --help help for list

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
20 changes: 20 additions & 0 deletions cmd/scw/testdata/test-all-usage-sdb-sql-backup-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
USAGE:
scw sdb-sql backup <command>

AVAILABLE COMMANDS:
export Export a database backup
get Get a database backup information
list List your Serverless SQL Database backups

FLAGS:
-h, --help help for backup

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use

Use "scw sdb-sql backup [command] --help" for more information about a command.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
You must provide the following parameters: `organization_id`, `project_id`, `name`, `cpu_min`, `cpu_max`. You can also provide `from_backup_id` to create a database from a backup.

USAGE:
scw sdb-sql database create [arg=value ...]

ARGS:
[project-id] Project ID to use. If none is passed the default project ID will be used
name The name of the Serverless SQL Database to be created.
cpu-min The minimum number of CPU units for your Serverless SQL Database.
cpu-max The maximum number of CPU units for your Serverless SQL Database.
[from-backup-id] The ID of the backup to create the database from.
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)

FLAGS:
-h, --help help for create

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Deletes a database. You must provide the `database_id` parameter. All data stored in the database will be permanently deleted.

USAGE:
scw sdb-sql database delete <database-id ...> [arg=value ...]

ARGS:
database-id UUID of the Serverless SQL Database.
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)

FLAGS:
-h, --help help for delete

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
19 changes: 19 additions & 0 deletions cmd/scw/testdata/test-all-usage-sdb-sql-database-get-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Retrieve information about your Serverless SQL Database. You must provide the `database_id` parameter.

USAGE:
scw sdb-sql database get <database-id ...> [arg=value ...]

ARGS:
database-id UUID of the Serverless SQL DB database.
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)

FLAGS:
-h, --help help for get

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
21 changes: 21 additions & 0 deletions cmd/scw/testdata/test-all-usage-sdb-sql-database-list-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
List all Serverless SQL Databases for a given Scaleway Organization or Scaleway Project. By default, the databases returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. For the `name` parameter, the value you include will be checked against the whole name string to see if it includes the string you put in the parameter.

USAGE:
scw sdb-sql database list [arg=value ...]

ARGS:
[project-id] Project ID to use. If none is passed the default project ID will be used
[name] Filter by the name of the database
[order-by] Sorting criteria. One of `created_at_asc`, `created_at_desc`, `name_asc`, `name_desc` (created_at_asc | created_at_desc | name_asc | name_desc)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | all)

FLAGS:
-h, --help help for list

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Restore a database from a backup. You must provide the `backup_id` parameter.

USAGE:
scw sdb-sql database restore [arg=value ...]

ARGS:
database-id UUID of the Serverless SQL Database.
backup-id UUID of the Serverless SQL Database backup to restore.
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)

FLAGS:
-h, --help help for restore

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Update CPU limits of your Serverless SQL Database. You must provide the `database_id` parameter.

USAGE:
scw sdb-sql database update <database-id ...> [arg=value ...]

ARGS:
database-id UUID of the Serverless SQL Database.
[cpu-min] The minimum number of CPU units for your Serverless SQL Database.
[cpu-max] The maximum number of CPU units for your Serverless SQL Database.
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)

FLAGS:
-h, --help help for update

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
23 changes: 23 additions & 0 deletions cmd/scw/testdata/test-all-usage-sdb-sql-database-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
USAGE:
scw sdb-sql database <command>

AVAILABLE COMMANDS:
create Create a new Serverless SQL Database
delete Delete a database
get Get a database information
list List your Serverless SQL Databases
restore Restore a database from a backup
update Update database information

FLAGS:
-h, --help help for database

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use

Use "scw sdb-sql database [command] --help" for more information about a command.
21 changes: 21 additions & 0 deletions cmd/scw/testdata/test-all-usage-sdb-sql-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
This API allows you to manage your Serverless SQL DB databases.

USAGE:
scw sdb-sql <command>

AVAILABLE COMMANDS:
backup
database

FLAGS:
-h, --help help for sdb-sql

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use

Use "scw sdb-sql [command] --help" for more information about a command.
1 change: 1 addition & 0 deletions cmd/scw/testdata/test-main-usage-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ AVAILABLE COMMANDS:
rdb Managed Database for PostgreSQL and MySQL API
redis Managed Database for Redis™ API
registry Container Registry API
sdb-sql This API allows you to manage your Serverless SQL DB databases
secret Secret Manager API
tem Transactional Email API
vpc VPC API
Expand Down

0 comments on commit 39d755f

Please sign in to comment.