ifcurl/tests
Bruno Postle 5d5b8c6516 tests: extend coverage — SSRF protection, GET endpoint, LRU eviction, branch ref
- SSRF: test local transport rejection, allowlist enforcement, private/loopback/
  link-local IP blocking, allowlist with port, public host permitted without list
- GET /preview: happy path, invalid scheme, local transport rejection
- Tier 2 LRU: eviction at capacity, LRU promotion, cache miss
- git: heads/<branch> ref form (was only tested via HEAD/tag/hash)
- clear_caches fixture now also resets _allowed_hosts between tests

103 → 118 passing tests.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 08:38:03 +01:00
..
conftest.py Authentication and test coverage 2026-04-15 23:21:13 +01:00
test_auth.py Authentication and test coverage 2026-04-15 23:21:13 +01:00
test_git.py tests: extend coverage — SSRF protection, GET endpoint, LRU eviction, branch ref 2026-04-24 08:38:03 +01:00
test_render.py Authentication and test coverage 2026-04-15 23:21:13 +01:00
test_service.py tests: extend coverage — SSRF protection, GET endpoint, LRU eviction, branch ref 2026-04-24 08:38:03 +01:00
test_url.py Fix port preservation and HTTP fallback for local Gitea 2026-04-15 23:50:54 +01:00
test_viewer_url.mjs viewer: extract URL logic to viewer-url.js, add JS tests 2026-04-24 07:31:19 +01:00