-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add 'show system' subcommand tests
- Loading branch information
Showing
6 changed files
with
144 additions
and
0 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
11 changes: 11 additions & 0 deletions
11
influxdb3/tests/server/snapshots/server__cli__fail_without_database_name.snap
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
source: influxdb3/tests/server/cli.rs | ||
expression: output | ||
snapshot_kind: text | ||
--- | ||
error: the following required arguments were not provided: | ||
--database <DATABASE_NAME> | ||
|
||
Usage: influxdb3 show system --database <DATABASE_NAME> <COMMAND> | ||
|
||
For more information, try '--help'. |
6 changes: 6 additions & 0 deletions
6
..._table_name_exists,_but_should_error_because_we're_concerned_here_with_system_tables.snap
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
source: influxdb3/tests/server/cli.rs | ||
expression: output | ||
snapshot_kind: text | ||
--- | ||
Show command failed: system table 'cpu' not found: please use a valid system table name: ["distinct_caches", "last_caches", "parquet_files", "processing_engine_plugins", "processing_engine_triggers", "queries"] |
6 changes: 6 additions & 0 deletions
6
...b3/tests/server/snapshots/server__cli__random_table_name_doesn't_exist,_should_error.snap
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
source: influxdb3/tests/server/cli.rs | ||
expression: output | ||
snapshot_kind: text | ||
--- | ||
Show command failed: system table 'meow' not found: please use a valid system table name: ["distinct_caches", "last_caches", "parquet_files", "processing_engine_plugins", "processing_engine_triggers", "queries"] |
15 changes: 15 additions & 0 deletions
15
...s/server/snapshots/server__cli__summary_should_show_default_registered_system_tables.snap
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
source: influxdb3/tests/server/cli.rs | ||
expression: output | ||
snapshot_kind: text | ||
--- | ||
+----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ||
| table_name | column_names | | ||
+----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ||
| distinct_caches | [table, name, column_ids, column_names, max_cardinality, max_age_seconds] | | ||
| last_caches | [table, name, key_column_ids, key_column_names, value_column_ids, value_column_names, count, ttl] | | ||
| parquet_files | [table_name, path, size_bytes, row_count, min_time, max_time] | | ||
| processing_engine_plugins | [plugin_name, file_name, plugin_type] | | ||
| processing_engine_triggers | [trigger_name, plugin_name, trigger_specification, disabled] | | ||
| queries | [id, phase, issue_time, query_type, query_text, partitions, parquet_files, plan_duration, permit_duration, execute_duration, end2end_duration, compute_duration, max_memory, success, running, cancelled, trace_id] | | ||
+----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ |
26 changes: 26 additions & 0 deletions
26
.../server/snapshots/server__cli__summary_should_show_up_to_ten_entries_from_each_table.snap
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
source: influxdb3/tests/server/cli.rs | ||
expression: output | ||
snapshot_kind: text | ||
--- | ||
distinct_caches summary: | ||
+-------+------+------------+--------------+-----------------+-----------------+ | ||
| table | name | column_ids | column_names | max_cardinality | max_age_seconds | | ||
+-------+------+------------+--------------+-----------------+-----------------+ | ||
+-------+------+------------+--------------+-----------------+-----------------+ | ||
last_caches summary: | ||
+-------+------+----------------+------------------+------------------+--------------------+-------+-----+ | ||
| table | name | key_column_ids | key_column_names | value_column_ids | value_column_names | count | ttl | | ||
+-------+------+----------------+------------------+------------------+--------------------+-------+-----+ | ||
+-------+------+----------------+------------------+------------------+--------------------+-------+-----+ | ||
parquet_files summary: | ||
+------------+------+------------+-----------+----------+----------+ | ||
| table_name | path | size_bytes | row_count | min_time | max_time | | ||
+------------+------+------------+-----------+----------+----------+ | ||
+------------+------+------------+-----------+----------+----------+ | ||
processing_engine_plugins summary: | ||
++ | ||
++ | ||
processing_engine_triggers summary: | ||
++ | ||
++ |