summaryrefslogtreecommitdiffstats
path: root/nixos/tests/ombi.nix
blob: 6d77aa3c5b70615abaca19a9dc479ebf20e3e8fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ lib, ... }:

{
  name = "ombi";
  meta.maintainers = with lib.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/")
  '';
}