From ab9378980a8a2bf8cffb71c62aff630e87013149 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Sun, 28 Apr 2019 11:02:32 +0200 Subject: [PATCH] nixos/jellyfin: add simple test --- nixos/tests/jellyfin.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 nixos/tests/jellyfin.nix diff --git a/nixos/tests/jellyfin.nix b/nixos/tests/jellyfin.nix new file mode 100644 index 000000000000..b60c6eb94f46 --- /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/"); + ''; +})