Fix runtime GIS uploads for operator QA
This commit is contained in:
@@ -118,6 +118,14 @@ def test_frontend_uses_same_origin_api_proxy_by_default() -> None:
|
||||
assert "try_files $uri $uri/ /index.html" in nginx_config
|
||||
|
||||
|
||||
def test_nginx_runtime_allows_real_gis_upload_payloads() -> None:
|
||||
frontend_nginx = (ROOT / "frontend" / "nginx.conf").read_text(encoding="utf-8")
|
||||
all_in_one_nginx = (ROOT / "deploy" / "unraid" / "nginx-all-in-one.conf").read_text(encoding="utf-8")
|
||||
|
||||
assert "client_max_body_size 250m;" in frontend_nginx
|
||||
assert "client_max_body_size 250m;" in all_in_one_nginx
|
||||
|
||||
|
||||
def test_compose_does_not_publish_postgis_on_default_host_port() -> None:
|
||||
compose = (ROOT / "docker-compose.yml").read_text(encoding="utf-8")
|
||||
|
||||
|
||||
@@ -60,6 +60,8 @@ def test_operator_yolo_train_smoke_script_contract() -> None:
|
||||
assert "TRAIN_MODEL_OUTPUT_PATH" in script
|
||||
assert "TRAIN_EPOCHS" in script
|
||||
assert "TRAIN_IMGSZ" in script
|
||||
assert "/opt/geointel/venv/bin/python" in script
|
||||
assert "PYTHON_BIN=\"python3\"" in script
|
||||
assert "dataset.yaml" in script
|
||||
assert "from ultralytics import YOLO" in script
|
||||
assert "model.train" in script
|
||||
|
||||
Reference in New Issue
Block a user