1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 05:00:16 +00:00

nixos/jellyfin: add simple test

This commit is contained in:
Minijackson 2019-04-28 11:02:32 +02:00
parent 7f00383449
commit ab9378980a
No known key found for this signature in database
GPG key ID: FEA888C9F5D64F62

16
nixos/tests/jellyfin.nix Normal file
View file

@ -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/");
'';
})