This commit is contained in:
@@ -24,3 +24,18 @@ def test_runtime_is_compatible_with_read_only_container() -> None:
|
||||
assert '"--no-control-socket"' in dockerfile
|
||||
assert "exec -T web python manage.py collectstatic" not in deploy_script
|
||||
assert "for required_host in 127.0.0.1 localhost" in deploy_script
|
||||
|
||||
|
||||
def test_deployment_examples_use_per_platform_mailbox_configuration() -> None:
|
||||
required_keys = {
|
||||
"MAILBOX_CREDENTIAL_KEYS",
|
||||
"IMAP_CONNECT_TIMEOUT_SECONDS",
|
||||
"IMAP_MAX_MESSAGES_PER_POLL",
|
||||
"IMAP_MAX_MESSAGE_BYTES",
|
||||
}
|
||||
for filename in (".env.example", "scripts/codex_bootstrap.sh", "scripts/release_verify.sh"):
|
||||
content = (ROOT / filename).read_text(encoding="utf-8")
|
||||
|
||||
assert "IMAP_ENABLED" not in content
|
||||
for key in required_keys:
|
||||
assert f"{key}=" in content
|
||||
|
||||
Reference in New Issue
Block a user