about summary refs log tree commit diff
path: root/nixos/tests/uptime-kuma.nix
blob: 3d588d73cdb5c7cd6409573f160155c8f8a70f1a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import ./make-test-python.nix ({ lib, ... }:

with lib;

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