diff --git a/tests/integration/app_deploy.bats b/tests/integration/app_deploy.bats index e3a56477..3f81d225 100644 --- a/tests/integration/app_deploy.bats +++ b/tests/integration/app_deploy.bats @@ -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" \