forked from toolshed/abra
feat: warn for secret generation
This commit is contained in:
@ -257,3 +257,16 @@ teardown(){
|
||||
assert_success
|
||||
assert_exists "$ABRA_DIR/servers/$TEST_SERVER/$TEST_APP_DOMAIN.env"
|
||||
}
|
||||
|
||||
@test "warn about secrets if present" {
|
||||
run $ABRA app new "$TEST_RECIPE" --domain "$TEST_APP_DOMAIN"
|
||||
assert_success
|
||||
assert_output --partial "requires secret generation"
|
||||
}
|
||||
|
||||
@test "do not warn about secrets if not present" {
|
||||
# NOTE(d1): here's hoping this won't flake, custom-html is pretty stable
|
||||
run $ABRA app new custom-html --domain "$TEST_APP_DOMAIN"
|
||||
assert_success
|
||||
refute_output --partial "requires secret generation"
|
||||
}
|
||||
|
Reference in New Issue
Block a user