守住 optional compose profile 邊界

This commit is contained in:
OoO
2026-05-13 15:56:35 +08:00
parent 7766e35578
commit 621c9f2b66

View File

@@ -39,3 +39,18 @@ def test_core_runtime_services_keep_memory_limits_and_healthchecks():
assert "healthcheck:" in block
assert 'curl", "-f", "http://localhost:80/health"' in _service_block(compose, "momo-app")
def test_optional_compose_services_stay_behind_profiles():
compose = DOCKER_COMPOSE.read_text(encoding="utf-8")
expected_profiles = {
"nginx": "- local-dev",
"nginx-monitor": "- deprecated",
"metabase": "- bi",
"grist": "- bi",
}
for service_name, profile_line in expected_profiles.items():
block = _service_block(compose, service_name)
assert "profiles:" in block
assert profile_line in block