fix: "abra app restart" docs + --all-services

See coop-cloud/organising#605
This commit is contained in:
2024-07-07 21:52:24 +02:00
parent beaa233421
commit 1097daa69f
3 changed files with 80 additions and 30 deletions

View File

@ -34,7 +34,7 @@ teardown(){
@test "error if service missing" {
run $ABRA app restart "$TEST_APP_DOMAIN"
assert_failure
assert_output --partial 'missing service'
assert_output --partial 'missing <service>'
}
@test "error if not deployed" {
@ -53,3 +53,17 @@ teardown(){
assert_output --regexp 'attempting to scale .* to 1'
assert_output --partial 'service successfully restarted'
}
@test "cannot use <service> and --all-services together" {
run $ABRA app restart "$TEST_APP_DOMAIN" app --all-services
assert_failure
assert_output --regexp "cannot use .* together"
}
# bats test_tags=slow
@test "all services are restarted" {
_deploy_app
run $ABRA app restart "$TEST_APP_DOMAIN" --all-services --debug
assert_success
}