28 lines
1.0 KiB
Python
28 lines
1.0 KiB
Python
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 "{\"success\", \"completed\"}" in script
|
|
assert "Response is not a canonical GeoIntel data envelope" in script
|