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>
This commit is contained in:
Denis Defolie
2026-10-30 15:46:17 +01:00
parent 75a7e108d7
commit 64b9b15f19
5 changed files with 414 additions and 2 deletions
+1
View File
@@ -299,6 +299,7 @@ without a certificate warning.
| `make status` / `make logs` | service status and journal |
| `make firewall` | open the port to private networks with ufw (`HTTP_PORT=8766` for the plain HTTP port) |
| `make lint` / `make test` | pyright / unit tests |
| `make test-integration` | full scenario (server, private D-Bus bus, fake player, fake `gio` and `pactl`); also part of `make test` |
| `make service-uninstall`, `make uinput-remove`, `make distclean` | uninstall |
## Security