GeoIntel release gates / Compile, test, contracts and builds (push) Successful in 1m49s
GeoIntel release gates / Python and npm vulnerability policy (push) Successful in 21s
GeoIntel release gates / Production AI image, SBOM and container scan (push) Successful in 5m39s
GeoIntel release gates / Deploy exact gated revision to Unraid (push) Failing after 58m43s
26 lines
1.1 KiB
Python
26 lines
1.1 KiB
Python
from pathlib import Path
|
|
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
|
|
|
|
def test_evidence_bundle_script_accepts_browser_calibration_summary_export() -> None:
|
|
script_path = ROOT / "scripts" / "export_detection_calibration_evidence.sh"
|
|
readme_path = ROOT / "scripts" / "README.md"
|
|
todo_path = ROOT / "docs" / "TODO.md"
|
|
|
|
script = script_path.read_text(encoding="utf-8")
|
|
readme = readme_path.read_text(encoding="utf-8")
|
|
todo = todo_path.read_text(encoding="utf-8")
|
|
|
|
assert "detection-calibration-summary.json" in script
|
|
assert "export_type" in script
|
|
assert "detection_calibration_summary" in script
|
|
assert "normalize_calibration_items" in script
|
|
assert "summary.get(\"rows\")" in script
|
|
assert "root_project_id = summary.get(\"project_id\")" in script
|
|
assert "quality_check_ids" in script
|
|
assert "Browser Detection Lab calibration summary" in readme
|
|
assert "bash scripts/export_detection_calibration_evidence.sh http://192.0.2.10:1202 ./detection-calibration-summary.json" in readme
|
|
assert "[x] Allow the evidence bundle script to consume Detection Lab calibration summary exports" in todo
|