chore(release): initialize separated production env
This commit is contained in:
@@ -10,6 +10,19 @@ def test_restore_postgres_plan_is_non_destructive():
|
||||
assert "pg_restore" not in executable_prefix
|
||||
|
||||
|
||||
def test_init_production_env_is_non_deploying_and_separated():
|
||||
script = Path("scripts/init_production_env.sh").read_text(encoding="utf-8")
|
||||
|
||||
assert "APP_ENV=production" in script
|
||||
assert "ENVIRONMENT=production" in script
|
||||
assert "xiaoxia-postgres-production" in script
|
||||
assert "xiaoxia-redis-production" in script
|
||||
assert "GENERATED_FILES_HOST_DIR=$GENERATED_DIR" in script
|
||||
assert "ENABLE_EMAIL_DELIVERY=false" in script
|
||||
assert "docker compose" not in script
|
||||
assert "docker run" not in script
|
||||
|
||||
|
||||
def test_backup_postgres_writes_manifest_and_version():
|
||||
script = Path("scripts/backup_postgres.sh").read_text(encoding="utf-8")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user