forked from toolshed/abra
fix: "abra app restart" docs + --all-services
See coop-cloud/organising#605
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user