3
0
Fork 0
forked from mirrors/nixpkgs

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