diff options
author | Elis Hirwing <elis@hirwing.se> | 2019-01-24 23:09:42 +0100 |
---|---|---|
committer | Elis Hirwing <elis@hirwing.se> | 2019-01-25 07:12:08 +0100 |
commit | eb356ef3f890065b7ce650c41988870b83b36a6c (patch) | |
tree | 709be87569041f915d19570916eb7d77c1001e8c /nixos/tests/lidarr.nix | |
parent | ddcb2c473d41ebc78e00eb61458b5ead9bd187ca (diff) |
nixos/lidarr: Add test for lidarr to ensure startup
Diffstat (limited to 'nixos/tests/lidarr.nix')
-rw-r--r-- | nixos/tests/lidarr.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/nixos/tests/lidarr.nix b/nixos/tests/lidarr.nix new file mode 100644 index 0000000000000..58bf82503f8c3 --- /dev/null +++ b/nixos/tests/lidarr.nix @@ -0,0 +1,18 @@ +import ./make-test.nix ({ lib, ... }: + +with lib; + +rec { + name = "lidarr"; + meta.maintainers = with maintainers; [ etu ]; + + nodes.machine = + { pkgs, ... }: + { services.lidarr.enable = true; }; + + testScript = '' + $machine->waitForUnit('lidarr.service'); + $machine->waitForOpenPort('8686'); + $machine->succeed("curl --fail http://localhost:8686/"); + ''; +}) |