mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
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:
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user