about summary refs log tree commit diff
path: root/nixos/tests/prowlarr.nix
diff options
context:
space:
mode:
authorDavid Reaver <johndreaver@gmail.com>2021-10-10 08:54:22 -0700
committerDavid Reaver <johndreaver@gmail.com>2021-10-10 14:05:33 -0700
commit11ce48184547625a2a02a0902839481336c6134d (patch)
tree543011e7f15b92b781352ce172be421f9b947e8e /nixos/tests/prowlarr.nix
parent3d79c9250aadebe59dcdf43352d9128ddbff675c (diff)
nixos/tests/prowlarr: init
Diffstat (limited to 'nixos/tests/prowlarr.nix')
-rw-r--r--nixos/tests/prowlarr.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/nixos/tests/prowlarr.nix b/nixos/tests/prowlarr.nix
new file mode 100644
index 0000000000000..4cbca107568f3
--- /dev/null
+++ b/nixos/tests/prowlarr.nix
@@ -0,0 +1,18 @@
+import ./make-test-python.nix ({ lib, ... }:
+
+with lib;
+
+{
+  name = "prowlarr";
+  meta.maintainers = with maintainers; [ jdreaver ];
+
+  nodes.machine =
+    { pkgs, ... }:
+    { services.prowlarr.enable = true; };
+
+  testScript = ''
+    machine.wait_for_unit("prowlarr.service")
+    machine.wait_for_open_port("9696")
+    machine.succeed("curl --fail http://localhost:9696/")
+  '';
+})