about summary refs log tree commit diff
path: root/nixos/tests/lidarr.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests/lidarr.nix')
-rw-r--r--nixos/tests/lidarr.nix18
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/");
+  '';
+})