mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-29 03:03:20 +01:00
Fifth coverage batch, all driven against the in-memory SQLite TestDb: - ModuleMigratorTest: install runs master database.sql (or falls back to replaying deltas <= target when there is none); up() applies only the (from, to] range ascending; uninstall runs database_drop.sql or no-ops; has() and discover() semver rules (non-semver files ignored, comments stripped); and failure propagation from a bad statement. - SettingsRepositoryTest: getAll() JSON/CSV field normalisation (allow_countries, allowed_stb_types lowercase/trim/blank-drop, bouquet_name spaces, api_ips, shared_mount_prefixes incl. the legacy-CSV self-heal) and empty-list collapse. Points CACHE_TMP_PATH at a temp dir for the trailing FileCache write. - AuthRepositoryTest: access-code and HMAC-key reads (getAllCodes with/without type filter, getCodeById, getCurrentCode via XC_CODE, getAllHMAC, getHMACById) and deleteHMAC existing/missing. getGroupPermissions (JSON_CONTAINS) and deleteCode (nginx config regen) are left for integration. +20 tests. Suite: 678 tests, 0 errors.