nixpkgs/nixos/tests/docling-serve.nix
Wolfgang Walther c283f32d29
treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00

29 lines
444 B
Nix

{ lib, ... }:
let
mainPort = "5001";
in
{
name = "docling-serve";
meta = {
maintainers = [ ];
};
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}")
'';
}