mirror of
https://github.com/deunix-educ/mediadeck.git
synced 2026-11-25 04:39:42 +01:00
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:
@@ -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é
|
||||
|
||||
Reference in New Issue
Block a user