Federate official Belgium data sources
This commit is contained in:
@@ -250,6 +250,33 @@ def test_runtime_sets_writable_ultralytics_config_directory() -> None:
|
||||
assert "YOLO_CONFIG_DIR=/app/storage/ultralytics" in unraid_env
|
||||
|
||||
|
||||
def test_regional_official_vector_sources_are_configurable_in_every_runtime() -> None:
|
||||
compose = (ROOT / "docker-compose.yml").read_text(encoding="utf-8")
|
||||
unraid_compose = (ROOT / "docker-compose.unraid.yml").read_text(encoding="utf-8")
|
||||
run_script = (ROOT / "deploy" / "unraid" / "run-dockerman-container.sh").read_text(
|
||||
encoding="utf-8"
|
||||
)
|
||||
env_example = (ROOT / "deploy" / "unraid" / "geointel.env.example").read_text(
|
||||
encoding="utf-8"
|
||||
)
|
||||
template = (ROOT / "deploy" / "unraid" / "geointel-unraid-template.xml").read_text(
|
||||
encoding="utf-8"
|
||||
)
|
||||
|
||||
for key in (
|
||||
"SPW_PICC_ENABLED",
|
||||
"SPW_PICC_MAPSERVER_URL",
|
||||
"URBIS_ENABLED",
|
||||
"URBIS_WFS_URL",
|
||||
):
|
||||
assert key in compose
|
||||
assert key in unraid_compose
|
||||
assert f'{key}="${{{key}:-' in run_script
|
||||
assert f'-e {key}="${key}"' in run_script
|
||||
assert f"{key}=" in env_example
|
||||
assert f'Target="{key}"' in template
|
||||
|
||||
|
||||
def test_docker_build_contexts_exclude_vendor_build_and_cache_outputs() -> None:
|
||||
required_patterns = {
|
||||
"node_modules",
|
||||
|
||||
Reference in New Issue
Block a user