1import ./make-test-python.nix (
2 { lib, ... }:
3
4 {
5 name = "gotenberg";
6 meta.maintainers = with lib.maintainers; [ pyrox0 ];
7
8 nodes.machine = {
9 services.gotenberg = {
10 enable = true;
11 };
12 };
13
14 testScript = ''
15 start_all()
16
17 machine.wait_for_unit("gotenberg.service")
18
19 # Gotenberg startup
20 machine.wait_for_open_port(3000)
21
22 # Ensure healthcheck endpoint succeeds
23 machine.succeed("curl http://localhost:3000/health")
24 '';
25 }
26)