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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user