feat: warn for secret generation

This commit is contained in:
2025-08-30 12:27:29 +02:00
parent 36d4648114
commit 09176801e1
4 changed files with 103 additions and 74 deletions

View File

@ -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"
}