diff options
Diffstat (limited to 'nixpkgs/nixos/tests/uptime-kuma.nix')
-rw-r--r-- | nixpkgs/nixos/tests/uptime-kuma.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/nixpkgs/nixos/tests/uptime-kuma.nix b/nixpkgs/nixos/tests/uptime-kuma.nix new file mode 100644 index 000000000000..00e2008a5257 --- /dev/null +++ b/nixpkgs/nixos/tests/uptime-kuma.nix @@ -0,0 +1,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/") + ''; +}) |