summary refs log tree commit diff
path: root/nixos
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
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')
-rw-r--r--nixos/tests/all-tests.nix1
-rw-r--r--nixos/tests/ombi.nix18
2 files changed, 19 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix
index 65c7d84ee64..bd5f4c4b658 100644
--- a/nixos/tests/all-tests.nix
+++ b/nixos/tests/all-tests.nix
@@ -287,6 +287,7 @@ in
   nzbget = handleTest ./nzbget.nix {};
   nzbhydra2 = handleTest ./nzbhydra2.nix {};
   oh-my-zsh = handleTest ./oh-my-zsh.nix {};
+  ombi = handleTest ./ombi.nix {};
   openarena = handleTest ./openarena.nix {};
   openldap = handleTest ./openldap.nix {};
   opensmtpd = handleTest ./opensmtpd.nix {};
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/")
+  '';
+})