1import ./make-test-python.nix ({ lib, ... }:
2
3with lib;
4
5{
6 name = "uptime-kuma";
7 meta.maintainers = with maintainers; [ julienmalka ];
8
9 nodes.machine =
10 { pkgs, ... }:
11 { services.uptime-kuma.enable = true; };
12
13 testScript = ''
14 machine.start()
15 machine.wait_for_unit("uptime-kuma.service")
16 machine.wait_for_open_port(3001)
17 machine.succeed("curl --fail http://localhost:3001/")
18 '';
19})