feat(scope): make Belgium and North Sea operational default
This commit is contained in:
@@ -277,6 +277,48 @@ def test_regional_official_vector_sources_are_configurable_in_every_runtime() ->
|
||||
assert f'Target="{key}"' in template
|
||||
|
||||
|
||||
def test_segmentation_and_mdk_acquisition_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 / ".env.example").read_text(encoding="utf-8")
|
||||
unraid_env = (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 (
|
||||
"YOLO_SEG_ENABLED",
|
||||
"YOLO_SEG_MODEL_PATH",
|
||||
"SAM_ENABLED",
|
||||
"SAM_MODEL_PATH",
|
||||
"SEGMENTATION_MAX_MASKS_PER_TILE",
|
||||
"SEGMENTATION_DUPLICATE_IOU_THRESHOLD",
|
||||
"MDK_BATHYMETRY_ACQUISITION_ENABLED",
|
||||
"MDK_BATHYMETRY_COVERAGE_ID",
|
||||
"MDK_BATHYMETRY_MAX_BBOX_DEG2",
|
||||
):
|
||||
assert key in compose, key
|
||||
assert key in unraid_compose, key
|
||||
assert f'{key}="${{{key}:-' in run_script, key
|
||||
assert f'-e {key}="${key}"' in run_script, key
|
||||
assert f"{key}=" in env_example, key
|
||||
assert f"{key}=" in unraid_env, key
|
||||
assert f'Target="{key}"' in template, key
|
||||
|
||||
|
||||
def test_compose_reconciles_interrupted_runs_after_restart_like_unraid_runtime() -> None:
|
||||
compose = (ROOT / "docker-compose.yml").read_text(encoding="utf-8")
|
||||
start_script = (ROOT / "deploy" / "unraid" / "all-in-one-start.sh").read_text(encoding="utf-8")
|
||||
|
||||
assert (
|
||||
"GEOINTEL_RECONCILE_INTERRUPTED_RUNS_ON_STARTUP: "
|
||||
"${GEOINTEL_RECONCILE_INTERRUPTED_RUNS_ON_STARTUP:-true}"
|
||||
) in compose
|
||||
assert (
|
||||
'GEOINTEL_RECONCILE_INTERRUPTED_RUNS_ON_STARTUP='
|
||||
'"${GEOINTEL_RECONCILE_INTERRUPTED_RUNS_ON_STARTUP:-true}"'
|
||||
) in start_script
|
||||
|
||||
|
||||
def test_docker_build_contexts_exclude_vendor_build_and_cache_outputs() -> None:
|
||||
required_patterns = {
|
||||
"node_modules",
|
||||
|
||||
Reference in New Issue
Block a user