about summary refs log tree commit diff
path: root/nixpkgs/nixos/tests/readarr.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/nixos/tests/readarr.nix')
-rw-r--r--nixpkgs/nixos/tests/readarr.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/nixpkgs/nixos/tests/readarr.nix b/nixpkgs/nixos/tests/readarr.nix
new file mode 100644
index 000000000000..7c144e2ee02f
--- /dev/null
+++ b/nixpkgs/nixos/tests/readarr.nix
@@ -0,0 +1,14 @@
+import ./make-test-python.nix ({ lib, ... }: {
+  name = "readarr";
+  meta.maintainers = with lib.maintainers; [ jocelynthode ];
+
+  nodes.machine =
+    { pkgs, ... }:
+    { services.readarr.enable = true; };
+
+  testScript = ''
+    machine.wait_for_unit("readarr.service")
+    machine.wait_for_open_port(8787)
+    machine.succeed("curl --fail http://localhost:8787/")
+  '';
+})