diff --git a/backend/app/services/source_freshness_service.py b/backend/app/services/source_freshness_service.py index ab8dc7cb..554dded6 100644 --- a/backend/app/services/source_freshness_service.py +++ b/backend/app/services/source_freshness_service.py @@ -28,6 +28,9 @@ class SourcePolicy: SOURCE_POLICIES: dict[str, SourcePolicy] = { + "ngi_adminvector": SourcePolicy("NGI AdminVector bestuurlijke grenzen", "edition"), + "rbins_marine_reporting_units": SourcePolicy("RBINS mariene rapportage-eenheden", "edition"), + "rbins_msp_2026": SourcePolicy("Belgisch Marien Ruimtelijk Plan 2026-2034", "edition"), "grb": SourcePolicy("GRB gebouwen en context", "rolling_snapshot", 90), "vrbg": SourcePolicy("VRBG wegenregister", "rolling_snapshot", 90), "digitaal_vlaanderen_buildings_addresses_register": SourcePolicy( diff --git a/backend/tests/test_rc10_data_operations.py b/backend/tests/test_rc10_data_operations.py index 352ae41b..57ec1f97 100644 --- a/backend/tests/test_rc10_data_operations.py +++ b/backend/tests/test_rc10_data_operations.py @@ -317,6 +317,17 @@ def test_source_family_report_covers_national_regional_and_maritime( } +def test_national_and_maritime_sources_have_explicit_freshness_policies() -> None: + from app.services.source_freshness_service import SOURCE_POLICIES + + for source_name in ( + "ngi_adminvector", + "rbins_marine_reporting_units", + "rbins_msp_2026", + ): + assert SOURCE_POLICIES[source_name].refresh_policy == "edition" + + def test_cleanup_commands_require_backup_confirmation_and_read_only_mount() -> None: generic = (SCRIPTS / "cleanup_storage_artifacts.py").read_text(encoding="utf-8") demo = (ROOT / "backend/scripts/cleanup_demo_artifacts.py").read_text(encoding="utf-8")