Add demo raster workflow smoke
This commit is contained in:
@@ -599,7 +599,12 @@ def test_raster_tile_returns_manifest_payload(monkeypatch, tmp_path) -> None:
|
||||
|
||||
@staticmethod
|
||||
def bounds(window: FakeWindow, _source_transform):
|
||||
return FakeWindowBounds(window.xoff, window.yoff, window.width, window.height)
|
||||
return (
|
||||
float(window.xoff),
|
||||
float(window.yoff),
|
||||
float(window.xoff + window.width),
|
||||
float(window.yoff + window.height),
|
||||
)
|
||||
|
||||
class FakeSource:
|
||||
width = 10
|
||||
@@ -666,6 +671,7 @@ def test_raster_tile_returns_manifest_payload(monkeypatch, tmp_path) -> None:
|
||||
assert payload["manifest"]["source_dataset_id"] == str(dataset_id)
|
||||
assert payload["manifest"]["source_raster_id"] == str(dataset_id)
|
||||
assert payload["manifest"]["count"] == payload["count"]
|
||||
assert payload["manifest"]["tiles"][0]["bounds"] == [0.0, 0.0, 4.0, 4.0]
|
||||
assert payload["manifest"]["ai_inference"] is False
|
||||
assert payload["manifest"]["tile_server"] is None
|
||||
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
|
||||
|
||||
def test_demo_raster_workflow_smoke_is_registered_and_checks_core_raster_path() -> None:
|
||||
script_path = ROOT / "scripts" / "verify_demo_raster_workflow.sh"
|
||||
readiness = (ROOT / "scripts" / "run_readiness_check.sh").read_text(encoding="utf-8")
|
||||
|
||||
assert script_path.exists()
|
||||
script = script_path.read_text(encoding="utf-8")
|
||||
|
||||
assert "bash -n scripts/verify_demo_raster_workflow.sh" in readiness
|
||||
assert "/api/v1/demo/workflow" in script
|
||||
assert "data.raster_dataset_id" in script
|
||||
assert "/raster/inspect" in script
|
||||
assert "/raster/preview" in script
|
||||
assert "/raster/stats" in script
|
||||
assert "/raster/tile" in script
|
||||
assert "demo_context_raster.tif" in script
|
||||
assert "EPSG:4326" in script
|
||||
assert "manifest_path" in script
|
||||
assert "tile_paths" in script
|
||||
assert "raster.tile" in script
|
||||
assert "Response is not a canonical GeoIntel data envelope" in script
|
||||
Reference in New Issue
Block a user