diff --git a/bats/tests/pyrsia_cli.bats b/bats/tests/pyrsia_cli.bats index dd5e47b..b78ede9 100644 --- a/bats/tests/pyrsia_cli.bats +++ b/bats/tests/pyrsia_cli.bats @@ -24,23 +24,26 @@ setup() { } teardown() { + shopt -u nocasematch run "$PYRSIA_CLI" config edit --host localhost --port 7888 --diskspace "10 GB" } @test "Testing 'pyrsia help' CLI, check if the help is shown." { + # ignore case in this @test + shopt -s nocasematch # run pyrsia help run "$PYRSIA_CLI" help # check if pyrsia help is shown - assert_output --partial 'USAGE:' - assert_output --partial 'OPTIONS:' - assert_output --partial 'SUBCOMMANDS:' + assert_output --partial 'Usage:' + assert_output --partial 'Commands:' + assert_output --partial 'Options:' # run pyrsia help run "$PYRSIA_CLI" -h # check if pyrsia help is shown - assert_output --partial 'USAGE:' - assert_output --partial 'OPTIONS:' - assert_output --partial 'SUBCOMMANDS:' + assert_output --partial 'Usage:' + assert_output --partial 'Commands:' + assert_output --partial 'Options:' } @test "Testing 'pyrsia ping' CLI, check if the node is up and reachable." {