diff options
author | Minijackson <minijackson@riseup.net> | 2019-04-28 11:02:32 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2019-04-28 11:03:51 +0200 |
commit | ab9378980a8a2bf8cffb71c62aff630e87013149 (patch) | |
tree | 76c4dcbcde1fa8636e645da02cce6483f814ef96 /nixos/tests/jellyfin.nix | |
parent | 7f0038344983e9a74f9b316beb939b00ed37aec8 (diff) |
nixos/jellyfin: add simple test
Diffstat (limited to 'nixos/tests/jellyfin.nix')
-rw-r--r-- | nixos/tests/jellyfin.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/nixos/tests/jellyfin.nix b/nixos/tests/jellyfin.nix new file mode 100644 index 0000000000000..b60c6eb94f468 --- /dev/null +++ b/nixos/tests/jellyfin.nix @@ -0,0 +1,16 @@ +import ./make-test.nix ({ lib, ...}: + +{ + name = "jellyfin"; + meta.maintainers = with lib.maintainers; [ minijackson ]; + + machine = + { ... }: + { services.jellyfin.enable = true; }; + + testScript = '' + $machine->waitForUnit('jellyfin.service'); + $machine->waitForOpenPort('8096'); + $machine->succeed("curl --fail http://localhost:8096/"); + ''; +}) |