test: fixes for test suite post-cobra migrate

See toolshed/organising#650
This commit is contained in:
2024-12-27 20:44:07 +01:00
parent 8fa20e2c7f
commit 008582c3d9
25 changed files with 12 additions and 575 deletions

View File

@ -24,21 +24,17 @@ teardown(){
@test "validate app argument" {
run $ABRA app run
assert_failure
assert_output --partial 'no app provided'
run $ABRA app run DOESNTEXIST
assert_failure
assert_output --partial 'cannot find app'
}
@test "error if missing service" {
run $ABRA app run "$TEST_APP_DOMAIN"
assert_failure
assert_output --partial 'no <service> provided'
run $ABRA app run "$TEST_APP_DOMAIN" app
assert_failure
assert_output --partial 'no <args> provided'
}
# bats test_tags=slow
@ -54,7 +50,7 @@ teardown(){
@test "run command" {
_deploy_app
run $ABRA app run "$TEST_APP_DOMAIN" app ls /
run $ABRA app run "$TEST_APP_DOMAIN" app -- ls /
assert_success
assert_output --partial 'root'
}