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
@@ -301,6 +301,7 @@ avertissement de certificat depuis le port HTTP.
| `make status` / `make logs` | état et journal du service |
| `make firewall` | ouvrir le port aux réseaux privés avec ufw (`HTTP_PORT=8766` pour le port HTTP en clair) |
| `make lint` / `make test` | pyright / tests unitaires |
| `make test-integration` | scénario complet (serveur, bus D-Bus privé, faux lecteur, faux `gio` et `pactl`) ; inclus dans `make test` |
| `make service-uninstall`, `make uinput-remove`, `make distclean` | désinstallation |
## Sécurité