nixpkgs/nixos/tests/docling-serve.nix

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

29 lines
473 B
Nix
Raw Permalink Normal View History

2025-04-01 09:26:12 +02:00
{ lib, ... }:
let
mainPort = "5001";
in
{
name = "docling-serve";
meta = with lib.maintainers; {
maintainers = [ drupol ];
};
nodes = {
machine =
{ ... }:
{
services.docling-serve = {
enable = true;
};
};
};
testScript = ''
machine.start()
machine.wait_for_unit("docling-serve.service")
machine.wait_for_open_port(${mainPort})
machine.succeed("curl http://127.0.0.1:${mainPort}")
'';
}