nixos/tests/firefoxpwa: ensure Jellyfin readiness and increase disk size

Add required VM disk space for Jellyfin (2 GiB) and wait for web manifest endpoint before installing PWA
This commit is contained in:
2kybe3
2026-04-17 19:48:19 +02:00
parent b5b050d127
commit cec1a8e6bd

View File

@@ -19,6 +19,8 @@
};
services.jellyfin.enable = true;
# Jellyfin requires at least 2 GB of disk space
virtualisation.diskSize = 3 * 1024; # 3 GB
};
enableOCR = true;
@@ -26,9 +28,12 @@
testScript = ''
machine.start()
with subtest("Install a progressive web app"):
with subtest("Wait for Jellyfin to be ready"):
machine.wait_for_unit("jellyfin.service")
machine.wait_for_open_port(8096)
machine.wait_until_succeeds("curl -fs http://localhost:8096/web/manifest.json")
with subtest("Install a progressive web app"):
machine.succeed("firefoxpwa site install http://localhost:8096/web/manifest.json >&2")
with subtest("Launch the progressive web app"):