summary refs log tree commit diff
path: root/nixos/tests/ombi.nix
diff options
context:
space:
mode:
authorAndrei Pampu <pampu.s.andrei@gmail.com>2021-03-29 17:51:05 +0300
committerAndrei Pampu <pampu.s.andrei@gmail.com>2021-04-01 10:34:40 +0300
commitb3082615d990586b1bb7f361e80112ad0848ac6c (patch)
tree5306fd60b1fdd9cc4f84adde77fbd0d8365a79fd /nixos/tests/ombi.nix
parenta364121ef903497d9fc249211d71a2b690bd0781 (diff)
downloadnixpkgs-b3082615d990586b1bb7f361e80112ad0848ac6c.tar
nixpkgs-b3082615d990586b1bb7f361e80112ad0848ac6c.tar.gz
nixpkgs-b3082615d990586b1bb7f361e80112ad0848ac6c.tar.bz2
nixpkgs-b3082615d990586b1bb7f361e80112ad0848ac6c.tar.lz
nixpkgs-b3082615d990586b1bb7f361e80112ad0848ac6c.tar.xz
nixpkgs-b3082615d990586b1bb7f361e80112ad0848ac6c.tar.zst
nixpkgs-b3082615d990586b1bb7f361e80112ad0848ac6c.zip
nixos/ombi: add test for ombi to ensure startup
Diffstat (limited to 'nixos/tests/ombi.nix')
-rw-r--r--nixos/tests/ombi.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/nixos/tests/ombi.nix b/nixos/tests/ombi.nix
new file mode 100644
index 00000000000..bfca86af817
--- /dev/null
+++ b/nixos/tests/ombi.nix
@@ -0,0 +1,18 @@
+import ./make-test-python.nix ({ lib, ... }:
+
+with lib;
+
+{
+  name = "ombi";
+  meta.maintainers = with maintainers; [ woky ];
+
+  nodes.machine =
+    { pkgs, ... }:
+    { services.ombi.enable = true; };
+
+  testScript = ''
+    machine.wait_for_unit("ombi.service")
+    machine.wait_for_open_port("5000")
+    machine.succeed("curl --fail http://localhost:5000/")
+  '';
+})