Complete release upgrade and operator controls
GeoIntel CI / docs-smoke (push) Canceled after 0s
GeoIntel CI / contract-smoke (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-18 02:52:28 +02:00
parent 851d0ef109
commit 05a2c372b7
8 changed files with 229 additions and 0 deletions
@@ -1,5 +1,6 @@
from __future__ import annotations
import re
from pathlib import Path
@@ -54,6 +55,26 @@ def test_unraid_env_template_matches_single_container_compose_variables() -> Non
assert '"${GEOINTEL_FRONTEND_PORT:-1202}:80"' in compose
def test_unraid_template_exposes_every_operator_owned_runtime_setting() -> None:
run_script = (ROOT / "deploy" / "unraid" / "run-dockerman-container.sh").read_text(encoding="utf-8")
template = (ROOT / "deploy" / "unraid" / "geointel-unraid-template.xml").read_text(encoding="utf-8")
runtime_variables = set(
re.findall(r'^([A-Z][A-Z0-9_]+)="\$\{\1:-', run_script, flags=re.MULTILINE)
)
template_variables = set(re.findall(r'Target="([A-Z][A-Z0-9_]+)"', template))
bridged_or_internal = {
"GEOINTEL_FRONTEND_PORT",
"GEOINTEL_IMAGE",
"GEOINTEL_MODELS_PATH",
"GEOINTEL_POSTGIS_DATA_PATH",
"GEOINTEL_STORAGE_PATH",
}
assert runtime_variables - template_variables == bridged_or_internal
assert 'Target="/app/models"' in template
def test_unraid_readme_explains_port_changes_and_safe_cleanup() -> None:
readme = (ROOT / "deploy" / "unraid" / "README.md").read_text(encoding="utf-8")