test: moar domain check tests [ci skip]
This commit is contained in:
parent
1e6a6e6174
commit
906bf65d47
|
@ -272,6 +272,21 @@ teardown(){
|
||||||
assert_success
|
assert_success
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "ensure domain is checked" {
|
||||||
|
appDomain="custom-html.DOESNTEXIST"
|
||||||
|
|
||||||
|
run $ABRA app new custom-html \
|
||||||
|
--no-input \
|
||||||
|
--server "$TEST_SERVER" \
|
||||||
|
--domain "$appDomain"
|
||||||
|
assert_success
|
||||||
|
assert_exists "$ABRA_DIR/servers/$TEST_SERVER/$appDomain.env"
|
||||||
|
|
||||||
|
run $ABRA app deploy "$appDomain" --no-input
|
||||||
|
assert_failure
|
||||||
|
assert_output --partial 'no such host'
|
||||||
|
}
|
||||||
|
|
||||||
# bats test_tags=slow
|
# bats test_tags=slow
|
||||||
@test "skip domain check when requested" {
|
@test "skip domain check when requested" {
|
||||||
run $ABRA app deploy "$TEST_APP_DOMAIN" \
|
run $ABRA app deploy "$TEST_APP_DOMAIN" \
|
||||||
|
|
Loading…
Reference in New Issue