Merge branch 'staging-next' into staging
[NixPkgs.git] / nixos / tests / uptime-kuma.nix
blob00e2008a5257dc6d4623dad9d48b3e7eb732588e
1 import ./make-test-python.nix ({ lib, ... }:
4   name = "uptime-kuma";
5   meta.maintainers = with lib.maintainers; [ julienmalka ];
7   nodes.machine =
8     { pkgs, ... }:
9     { services.uptime-kuma.enable = true; };
11   testScript = ''
12     machine.start()
13     machine.wait_for_unit("uptime-kuma.service")
14     machine.wait_for_open_port(3001)
15     machine.succeed("curl --fail http://localhost:3001/")
16   '';