nixos/ombi: add test for ombi to ensure startup

wip/yesman
Andrei Pampu 3 years ago
parent a364121ef9
commit b3082615d9
No known key found for this signature in database
GPG Key ID: E49BA299263D4E23
  1. 1
      nixos/tests/all-tests.nix
  2. 18
      nixos/tests/ombi.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 {};

@ -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/")
'';
})
Loading…
Cancel
Save