assemblrr/tests
2026-11-22 21:43:50 +02:00
..
fixtures feat: full stack revival, modularization, Jellyfin 12.4, GPU/overlays, security & UX fixes 2026-11-21 20:40:34 +02:00
integration fix(usenet): use host port 8085, read USENET_* env vars in configure_sabnzbd, and verify Docker E2E 2026-11-21 23:29:53 +02:00
unit fix(setup): harden remaining set -u defaults, USER fallback, and /etc/localtime tz detection 2026-11-22 21:43:50 +02:00
helpers.sh fix(watchdog,seerr,ci): reuse qBit session cookie, fix single-instance Seerr is4k routing, resolve all shellcheck CI issues 2026-11-21 21:53:22 +02:00
README.md feat: full stack revival, modularization, Jellyfin 12.4, GPU/overlays, security & UX fixes 2026-11-21 20:40:34 +02:00
run.sh feat: full stack revival, modularization, Jellyfin 12.4, GPU/overlays, security & UX fixes 2026-11-21 20:40:34 +02:00

Tests

Runtime hooks stay in scripts/. Tests live here.

./tests/run.sh              # unit
./tests/run.sh compose      # docker compose config
./tests/run.sh all          # unit + compose + shellcheck (if installed)
make test

Live integration

Opt-in only — these mutate a real install:

ASSEMBLRR_ALLOW_LIVE_TEST=1 ./tests/run.sh integration

Or one suite:

ASSEMBLRR_ALLOW_LIVE_TEST=1 ./tests/integration/watchdog_stall.sh
ASSEMBLRR_ALLOW_LIVE_TEST=1 ./tests/integration/media_purge_e2e.sh

Install dir resolution: ASSEMBLRR_DIR, ASSEMBLRR_CONFIG, then ~/assemblrr.

Script What it does
watchdog_stall.sh Stalls qBittorrent connections; checks vpn-watchdog
media_purge_e2e.sh Full delete cascade for Big Buck Bunny (TMDB 10378) via Radarr, Seerr (file + request/gateway), and Jellyfin APIs
usenet_mock_e2e.sh Offline SABnzbd E2E verification against free local mock_nntp.py + mock_newznab.py servers (zero subscriptions)

media_purge_e2e

Requires a running stack with purge wiring (media-purge-watch up, seerr-gateway on 5055, Radarr “Media Purge” notification on).

  1. Creates a synthetic hardlinked title under media/ + torrents/ and a local qB torrent (no indexer grab).
  2. Radarr DELETE /api/v3/movie/:id?deleteFiles=true → CustomScript → qB cleanup.
  3. Seerr DELETE /api/v1/media/:id/file → Radarr delete → same cascade.
  4. Seerr DELETE /api/v1/request/:id through seerr-gateway → movie/title purge or TV season-scoped purge + request gone (checks X-Assemblrr-Request-Delete-Purge).
  5. Jellyfin DELETE /Items/:id → filesystem delete → media-purge-watch → full purge.
  6. Asserts Radarr row, media/, torrents/, and qB torrent are all gone (other titles untouched).

Offline unit suites for the gateway (no Docker stack):

./tests/unit/test_seerr_gateway.sh
python3 -m unittest discover -s tests/unit -p 'test_*.py' -v
./tests/unit/test_usenet.sh

See also: docs/seerr-delete-request.md (behavior + how to retire when Seerr does this natively).

Optional env: API_HOST, QBIT_HOST (defaults 127.0.0.1 / 127.0.0.1:8081).