fix: hard disable drive interactive auth in containers
Some checks failed
CD Pipeline / deploy (push) Has been cancelled

This commit is contained in:
ogt
2026-06-26 18:29:02 +08:00
parent c6c18f1c48
commit 1dfeee0506
4 changed files with 16 additions and 5 deletions

View File

@@ -51,6 +51,16 @@ def test_core_runtime_services_pin_gemini_fallback_off_by_default():
assert "- GEMINI_FALLBACK_ENABLED=${GEMINI_FALLBACK_ENABLED:-false}" in block
def test_core_runtime_services_hard_disable_google_drive_interactive_auth():
compose = DOCKER_COMPOSE.read_text(encoding="utf-8")
core_services = ("momo-app", "scheduler", "telegram-bot")
assert "GOOGLE_DRIVE_ALLOW_INTERACTIVE_AUTH=${" not in compose
for service_name in core_services:
block = _service_block(compose, service_name)
assert "- GOOGLE_DRIVE_ALLOW_INTERACTIVE_AUTH=false" in block
def test_optional_compose_services_stay_behind_profiles():
compose = DOCKER_COMPOSE.read_text(encoding="utf-8")
expected_profiles = {