From 906bf65d475ea7295ea3e27958a2b76c9bb1bde2 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Fri, 29 Sep 2023 09:31:25 +0200 Subject: [PATCH] test: moar domain check tests [ci skip] --- tests/integration/app_deploy.bats | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/integration/app_deploy.bats b/tests/integration/app_deploy.bats index e3a564770..3f81d225b 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" \