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

{
  name = "uptime-kuma";
  meta.maintainers = with lib.maintainers; [ julienmalka ];

  nodes.machine =
    { pkgs, ... }:
    {
      services.uptime-kuma.enable = true;
    };

  testScript = ''
    machine.start()
    machine.wait_for_unit("uptime-kuma.service")
    machine.wait_for_open_port(3001)
    machine.succeed("curl --fail http://localhost:3001/")
  '';
}