feat: complete governed Walloon coverage sources
This commit is contained in:
@@ -95,6 +95,7 @@ def test_all_in_one_dockerfile_copies_operator_scripts_for_runtime_use() -> None
|
||||
"activate_promoted_yolo_candidate.py",
|
||||
"manage_grb_refresh.py",
|
||||
"orthophoto_release_preflight.py",
|
||||
"provision_walous_sources.py",
|
||||
}
|
||||
for script_name in required_runtime_scripts:
|
||||
assert f"COPY scripts/{script_name} /app/scripts/{script_name}" in dockerfile
|
||||
@@ -149,6 +150,24 @@ def test_env_example_uses_runtime_env_names_read_by_backend_and_frontend() -> No
|
||||
assert "VITE_API_PROXY_TARGET=http://localhost:8000" in env_example
|
||||
|
||||
|
||||
def test_walloon_runtime_settings_are_editable_in_compose_and_unraid() -> None:
|
||||
files = [
|
||||
(ROOT / "docker-compose.yml").read_text(encoding="utf-8"),
|
||||
(ROOT / "docker-compose.unraid.yml").read_text(encoding="utf-8"),
|
||||
(ROOT / "deploy" / "unraid" / "geointel.env.example").read_text(encoding="utf-8"),
|
||||
(ROOT / "deploy" / "unraid" / "run-dockerman-container.sh").read_text(encoding="utf-8"),
|
||||
(ROOT / "deploy" / "unraid" / "geointel-unraid-template.xml").read_text(encoding="utf-8"),
|
||||
]
|
||||
for content in files:
|
||||
assert "SPW_FLOOD_HAZARD_ENABLED" in content
|
||||
assert "SPW_FLOOD_HAZARD_MAPSERVER_URL" in content
|
||||
assert "WALOUS_ENABLED" in content
|
||||
assert "WALOUS_SOURCE_DIR" in content
|
||||
assert "WALOUS_ANALYSIS_RESOLUTION_M" in content
|
||||
assert "WALOUS_MAX_SIDE_M" in content
|
||||
assert "WALOUS_MAX_PIXELS" in content
|
||||
|
||||
|
||||
def test_frontend_uses_same_origin_api_proxy_by_default() -> None:
|
||||
api_client = (ROOT / "frontend" / "src" / "services" / "api" / "client.ts").read_text(encoding="utf-8")
|
||||
nginx_config = (ROOT / "frontend" / "nginx.conf").read_text(encoding="utf-8")
|
||||
|
||||
Reference in New Issue
Block a user