nixpkgs/nixos/tests/gotenberg.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
429 B
Nix
Raw Normal View History

{ lib, ... }:
2024-07-11 03:07:40 -04:00
{
name = "gotenberg";
meta.maintainers = with lib.maintainers; [ pyrox0 ];
2024-07-11 03:07:40 -04:00
nodes.machine = {
services.gotenberg = {
enable = true;
2024-07-11 03:07:40 -04:00
};
};
2024-07-11 03:07:40 -04:00
testScript = ''
start_all()
2024-07-11 03:07:40 -04:00
machine.wait_for_unit("gotenberg.service")
2024-07-11 03:07:40 -04:00
# Gotenberg startup
machine.wait_for_open_port(3000)
2024-07-11 03:07:40 -04:00
# Ensure healthcheck endpoint succeeds
machine.succeed("curl http://localhost:3000/health")
'';
}