about summary refs log tree commit diff
path: root/nixpkgs/nixos/tests/uptime-kuma.nix
blob: 00e2008a5257dc6d4623dad9d48b3e7eb732588e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import ./make-test-python.nix ({ 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/")
  '';
})