forked from mirrors/nixpkgs
nixos/jellyfin: add simple test
This commit is contained in:
parent
7f00383449
commit
ab9378980a
16
nixos/tests/jellyfin.nix
Normal file
16
nixos/tests/jellyfin.nix
Normal 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/");
|
||||
'';
|
||||
})
|
Loading…
Reference in a new issue