Initial public release
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
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
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def test_live_migration_smoke_checks_postgis_after_migrations() -> None:
|
||||
script = Path(__file__).resolve().parents[2] / "scripts" / "live_migration_smoke.sh"
|
||||
content = script.read_text(encoding="utf-8")
|
||||
|
||||
upgrade_index = content.index("-m alembic upgrade head")
|
||||
postgis_index = content.index("PostGIS_Version()")
|
||||
|
||||
assert upgrade_index < postgis_index
|
||||
|
||||
|
||||
def test_live_migration_smoke_checks_required_runtime_schema_objects() -> None:
|
||||
script = Path(__file__).resolve().parents[2] / "scripts" / "live_migration_smoke.sh"
|
||||
content = script.read_text(encoding="utf-8")
|
||||
|
||||
assert "to_regclass(:object_name)" in content
|
||||
assert '"public.projects"' in content
|
||||
assert '"public.datasets"' in content
|
||||
assert '"public.vector_features"' in content
|
||||
assert '"public.detections"' in content
|
||||
assert '"public.segmentations"' in content
|
||||
assert '"public.ix_segmentations_geometry"' in content
|
||||
|
||||
|
||||
def test_live_migration_smoke_reports_collation_version_mismatch_without_failing() -> None:
|
||||
script = Path(__file__).resolve().parents[2] / "scripts" / "live_migration_smoke.sh"
|
||||
content = script.read_text(encoding="utf-8")
|
||||
|
||||
assert "pg_database_collation_actual_version(oid)" in content
|
||||
assert "COLLATION_VERSION_MISMATCH" in content
|
||||
assert "REFRESH COLLATION VERSION" in content
|
||||
assert "Database collation version: ok" in content
|
||||
Reference in New Issue
Block a user