Commit Graph

2 Commits

Author SHA1 Message Date
Denis Defolie 83065b13cb Share the isolated server environment between end-to-end tests
Move the private D-Bus bus, isolated XDG dirs and PATH, fake gio/pactl/
firefox/launcher programs and the real MediaDeckServer into tests/stack.py,
and make test_integration.py use it.

The test bus is started from a configuration without any service
directory, so nothing from the system (portals, kwallet, kdeconnect...) can
ever be activated on it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 16:42:52 +01:00
Denis Defolie 64b9b15f19 Add make test-integration: full server scenario on a private D-Bus bus
Real MediaDeckServer under aiohttp.test_utils, private session bus,
isolated XDG dirs and PATH, fake MPRIS player and fake gio/pactl/launcher
programs that log their arguments. Covers authentication, player listing
and control, audio, media listing and path escapes, shell-free opening of
a hostile file name, imported launchers and admin changes pushed to
clients. Verified to fail when the hidden-component check, the token check
or the metadata enrichment is removed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 15:46:17 +01:00