config alignement #253
GitHub Actions / JUnit bash-tools-ubuntu-5.3
failed
May 8, 2024 in 0s
178 tests run, 175 passed, 0 skipped, 3 failed.
Annotations
Check failure on line 1 in vendor/bash-tools-framework/.vscode/bats.code-snippets
github-actions / JUnit bash-tools-ubuntu-5.3
bats.Database::dbImport::display_help
(from function `fail' in file vendor/bash-tools-framework/vendor/bats-support/src/error.bash, line 40,
from function `assert_success' in file vendor/bash-tools-framework/vendor/bats-assert/src/assert_success.bash, line 42,
Raw output
(from function `fail' in file vendor/bash-tools-framework/vendor/bats-support/src/error.bash, line 40,
from function `assert_success' in file vendor/bash-tools-framework/vendor/bats-assert/src/assert_success.bash, line 42,
from function `testCommand' in file src/batsHeaders.sh, line 51,
in test file src/_binaries/DbImport/dbImport.bats, line 36)
`testCommand "${binDir}/dbImport" dbImport.help.txt' failed
-- command failed --
status : 1
output (122 lines):
DESCRIPTION:
Import source db into target db using eventual table filter
USAGE: dbImport [OPTIONS] [ARGUMENTS]
USAGE: dbImport [--profile|-p <String>]
[--tables <tablesSeparatedByComma>] [--from-dsn|-f <String>]
[--skip-schema|-s] [--from-aws|-a <awsFile>] [--target-dsn|-t <targetDsn>]
[--character-set|-c <String>] [--collation-name|-o <String>]
[--bash-framework-config <String>] [--config] [--verbose|-v] [-vv] [-vvv]
[--env-file <String>] [--no-color] [--theme <String>] [--help|-h] [--version]
[--quiet|-q] [--log-level <String>] [--log-file <String>]
[--display-level <String>]
ARGUMENTS:
fromDbName {single} (mandatory)
the name of the source/remote database
[targetDbName {single}]
the name of the target database, use fromDbName(without extension) if not pr
ovided
PROFILE OPTIONS:
--profile, -p <String> {single}
the name of the profile to use in order to include or exclude tables (if not
specified in default.sh from 'User profiles directory' if exists or 'Def
ault profiles directory')
--tables <tablesSeparatedByComma> {single}
import only table specified in the list. If aws mode, ignore profile option
FROM OPTIONS:
--from-dsn, -f <String> {single}
dsn to use for source database
this option is incompatible with -a|--from-aws option
--skip-schema, -s {single}
avoid to import the schema
--from-aws, -a <awsFile> {single}
db dump will be downloaded from s3 instead of using remote db. The value <aw
sFile> is the name of the file without s3 location (Only .gz or tar.gz f
ile are supported). This option is incompatible with -f|--from-dsn option
TARGET OPTIONS:
--target-dsn, -t <targetDsn> {single}
dsn to use for target database (Default: default.local)
--character-set, -c <String> {single}
change the character set used during database creation (default value: utf8)
--collation-name, -o <String> {single}
change the collation name used during database creation (default value: utf8
_general_ci)
GLOBAL OPTIONS:
--bash-framework-config <String> {single}
use alternate bash framework configuration.
--config {single}
Display configuration
--verbose, -v {single}
info level verbose mode (alias of --display-level INFO)
-vv {single}
debug level verbose mode (alias of --display-level DEBUG)
-vvv {single}
trace level verbose mode (alias of --display-level TRACE)
--env-file <String> {list} (optional)
Load the specified env file (deprecated, please use --bash-framework-config
option instead)
--no-color {single}
Produce monochrome output. alias of --theme noColor.
--theme <String> {single}
choose color theme - default-force means colors will be produced even if com
mand is piped
Default value: default
Possible values: default|default-force|noColor
--help, -h {single}
Display this command help
--version {single}
Print version information and quit
--quiet, -q {single}
quiet mode, doesn't display any output
--log-level <String> {single}
Set log level
Possible values: OFF|ERR|ERROR|WARN|WARNING|INFO|DEBUG|TRACE
--log-file <String> {single}
Set log file
--display-level <String> {single}
set display level
Possible values: OFF|ERR|ERROR|WARN|WARNING|INFO|DEBUG|TRACE
Default profiles directory:
/bash/conf/dbImportProfiles
User profiles directory:
/tmp/bats-run-IAttWM/test/73/home/.bash-tools/dbImportProfiles
Allows to override profiles defined in Default profiles directory
List of available profiles:
- all
- default
- none
List of available dsn:
- default.local
- default.remote
- localhost-root
Aws s3 location:
s3://s3server/exports
Example 1: from one database to another one
TODO
Example 2: import from S3
TODO
VERSION: 2.0
AUTHOR:
[François Chastanet](https://github.com/fchastanet)
SOURCE FILE:
https://github.com/fchastanet/bash-tools/tree/master/src/_binaries/DbImport/dbImport.sh
LICENSE:
MIT License
Copyright (c) 2020-now François ChastanetERROR - gawk minimal version is 5.1.0, your version is 5.0.1
--
Check failure on line 1 in vendor/bash-tools-framework/.vscode/bats.code-snippets
github-actions / JUnit bash-tools-ubuntu-5.3
bats.Database::dbImportStream::display_help
(from function `fail' in file vendor/bash-tools-framework/vendor/bats-support/src/error.bash, line 40,
from function `assert_success' in file vendor/bash-tools-framework/vendor/bats-assert/src/assert_success.bash, line 42,
Raw output
(from function `fail' in file vendor/bash-tools-framework/vendor/bats-support/src/error.bash, line 40,
from function `assert_success' in file vendor/bash-tools-framework/vendor/bats-assert/src/assert_success.bash, line 42,
from function `testCommand' in file src/batsHeaders.sh, line 51,
in test file src/_binaries/DbImport/dbImportStream.bats, line 34)
`testCommand "${binDir}/dbImportStream" dbImportStream.help.txt' failed
-- command failed --
status : 1
output (92 lines):
DESCRIPTION: stream tar.gz file or gz file through mysql
USAGE: dbImportStream [OPTIONS] [ARGUMENTS]
USAGE: dbImportStream [--profile|-p <String>]
[--tables <tablesSeparatedByComma>] [--target-dsn|-t <targetDsn>]
[--character-set|-c <String>] [--bash-framework-config <String>] [--config]
[--verbose|-v] [-vv] [-vvv] [--env-file <String>] [--no-color]
[--theme <String>] [--help|-h] [--version] [--quiet|-q] [--log-level <String>]
[--log-file <String>] [--display-level <String>]
ARGUMENTS:
argDumpFile {single} (mandatory)
the of the file that will be streamed through mysql
argTargetDbName {single} (mandatory)
the name of the mysql target database
PROFILE OPTIONS:
--profile, -p <String> {single}
the name of the profile to use in order to include or exclude tables (if not
specified in default.sh from 'User profiles directory' if exists or 'Def
ault profiles directory')
--tables <tablesSeparatedByComma> {single}
import only table specified in the list. If aws mode, ignore profile option
TARGET OPTIONS:
--target-dsn, -t <targetDsn> {single}
dsn to use for target database (Default: default.local)
--character-set, -c <String> {single}
change the character set used during database creation (default value: utf8)
GLOBAL OPTIONS:
--bash-framework-config <String> {single}
use alternate bash framework configuration.
--config {single}
Display configuration
--verbose, -v {single}
info level verbose mode (alias of --display-level INFO)
-vv {single}
debug level verbose mode (alias of --display-level DEBUG)
-vvv {single}
trace level verbose mode (alias of --display-level TRACE)
--env-file <String> {list} (optional)
Load the specified env file (deprecated, please use --bash-framework-config
option instead)
--no-color {single}
Produce monochrome output. alias of --theme noColor.
--theme <String> {single}
choose color theme - default-force means colors will be produced even if com
mand is piped
Default value: default
Possible values: default|default-force|noColor
--help, -h {single}
Display this command help
--version {single}
Print version information and quit
--quiet, -q {single}
quiet mode, doesn't display any output
--log-level <String> {single}
Set log level
Possible values: OFF|ERR|ERROR|WARN|WARNING|INFO|DEBUG|TRACE
--log-file <String> {single}
Set log file
--display-level <String> {single}
set display level
Possible values: OFF|ERR|ERROR|WARN|WARNING|INFO|DEBUG|TRACE
Default profiles directory:
/bash/conf/dbImportProfiles
User profiles directory:
/tmp/bats-run-IAttWM/test/98/home/.bash-tools/dbImportProfiles
Allows to override profiles defined in Default profiles directory
List of available profiles:
List of available dsn:
- default.local
- default.remote
- localhost-root
VERSION: 2.0
AUTHOR:
[François Chastanet](https://github.com/fchastanet)
SOURCE FILE:
https://github.com/fchastanet/bash-tools/tree/master/src/_binaries/DbImport/dbImportStream.sh
LICENSE:
MIT License
Copyright (c) 2020-now François ChastanetERROR - gawk minimal version is 5.1.0, your version is 5.0.1
--
Check failure on line 1 in vendor/bash-tools-framework/.vscode/bats.code-snippets
github-actions / JUnit bash-tools-ubuntu-5.3
bats.Database::dbQueryAllDatabases::display_help
(from function `fail' in file vendor/bash-tools-framework/vendor/bats-support/src/error.bash, line 40,
from function `assert_success' in file vendor/bash-tools-framework/vendor/bats-assert/src/assert_success.bash, line 42,
Raw output
(from function `fail' in file vendor/bash-tools-framework/vendor/bats-support/src/error.bash, line 40,
from function `assert_success' in file vendor/bash-tools-framework/vendor/bats-assert/src/assert_success.bash, line 42,
from function `testCommand' in file src/batsHeaders.sh, line 51,
in test file src/_binaries/DbQueryAllDatabases/dbQueryAllDatabases.bats, line 39)
`testCommand "${binDir}/dbQueryAllDatabases" dbQueryAllDatabases.help.txt' failed
-- command failed --
status : 1
output (97 lines):
DESCRIPTION: Execute a query on multiple databases in order to gene
rate a report with tsv format, query can be parallelized on multiple databases
USAGE: dbQueryAllDatabases [OPTIONS] [ARGUMENTS]
USAGE: dbQueryAllDatabases [--jobs|-j <jobsCount>] [--bar|-b]
[--separator|-s <separator>] [--from-dsn|-f <String>]
[--bash-framework-config <String>] [--config] [--verbose|-v] [-vv] [-vvv]
[--env-file <String>] [--no-color] [--theme <String>] [--help|-h] [--version]
[--quiet|-q] [--log-level <String>] [--log-file <String>]
[--display-level <String>]
ARGUMENTS:
argQuery {single} (mandatory)
Query to execute
- <file>, try to execute the mysql query provided by the file
- <queryFile>, search for query file in queries directory (see below)
- else the argument is interpreted as query string
OPTIONS:
--jobs, -j <jobsCount> {single}
specify the number of db to query in parallel
Default value: 1
--bar, -b {single}
Show progress as a progress bar. In the bar is shown: % of jobs completed, e
stimated seconds left, and number of jobs started.
--separator, -s <separator> {single}
character to use to separate mysql column
Default value: |
QUERY OPTIONS:
--from-dsn, -f <String> {single}
target mysql server
GLOBAL OPTIONS:
--bash-framework-config <String> {single}
use alternate bash framework configuration.
--config {single}
Display configuration
--verbose, -v {single}
info level verbose mode (alias of --display-level INFO)
-vv {single}
debug level verbose mode (alias of --display-level DEBUG)
-vvv {single}
trace level verbose mode (alias of --display-level TRACE)
--env-file <String> {list} (optional)
Load the specified env file (deprecated, please use --bash-framework-config
option instead)
--no-color {single}
Produce monochrome output. alias of --theme noColor.
--theme <String> {single}
choose color theme - default-force means colors will be produced even if com
mand is piped
Default value: default
Possible values: default|default-force|noColor
--help, -h {single}
Display this command help
--version {single}
Print version information and quit
--quiet, -q {single}
quiet mode, doesn't display any output
--log-level <String> {single}
Set log level
Possible values: OFF|ERR|ERROR|WARN|WARNING|INFO|DEBUG|TRACE
--log-file <String> {single}
Set log file
--display-level <String> {single}
set display level
Possible values: OFF|ERR|ERROR|WARN|WARNING|INFO|DEBUG|TRACE
LIST OF AVAILABLE DSN:
- dsn_local
- dsn_valid
DEFAULT QUERIES DIRECTORY:
/bash/conf/dbQueries
USER QUERIES DIRECTORY:
/tmp/bats-run-IAttWM/test/99/home/.bash-tools/dbQueries
Allows to override queries defined in Default queries directory
LIST OF AVAILABLE QUERIES:
EXAMPLES:
dbQueryAllDatabases databaseSize -j 12 --separator "|" --bar 2>/dev/null | column -s "|" -t -n -c 40
VERSION: 2.0
AUTHOR:
[François Chastanet](https://github.com/fchastanet)
SOURCE FILE:
https://github.com/fchastanet/bash-tools/tree/master/src/_binaries/DbQueryAllDatabases/dbQueryAllDatabases.sh
LICENSE:
MIT License
Copyright (c) 2020-now François ChastanetERROR - gawk minimal version is 5.1.0, your version is 5.0.1
--
Loading