test: moar domain check tests [ci skip]
This commit is contained in:
		@ -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" \
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user