守住 optional compose profile 邊界
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user