test: moar domain check tests [ci skip]

This commit is contained in:
decentral1se 2023-09-29 09:31:25 +02:00
parent 1e6a6e6174
commit 906bf65d47
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 15 additions and 0 deletions

View File

@ -272,6 +272,21 @@ teardown(){
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
@test "skip domain check when requested" {
run $ABRA app deploy "$TEST_APP_DOMAIN" \