about summary refs log tree commit diff
path: root/nixos/tests/readarr.nix
diff options
context:
space:
mode:
authorJocelyn Thode <jocelyn@thode.email>2023-03-12 20:54:23 +0100
committerJocelyn Thode <jocelyn@thode.email>2023-03-12 20:54:23 +0100
commite7f54823b1f8443f616096bd100c337ab6bbfd46 (patch)
tree8387abe779f8ea20fcab681787ad499013eae83c /nixos/tests/readarr.nix
parent233f94f7a36e01c41f7443e4b13053d72c0888a3 (diff)
readarr: init at 0.1.4.1596
Diffstat (limited to 'nixos/tests/readarr.nix')
-rw-r--r--nixos/tests/readarr.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/nixos/tests/readarr.nix b/nixos/tests/readarr.nix
new file mode 100644
index 0000000000000..bb7dd85298486
--- /dev/null
+++ b/nixos/tests/readarr.nix
@@ -0,0 +1,18 @@
+import ./make-test-python.nix ({ lib, ... }:
+
+with lib;
+
+{
+  name = "readarr";
+  meta.maintainers = with 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/")
+  '';
+})