83627f9931
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
27 lines
479 B
Nix
27 lines
479 B
Nix
import ./make-test-python.nix ({ pkgs, lib, ... }:
|
|
let
|
|
mainPort = "8001";
|
|
in
|
|
{
|
|
name = "private-gpt";
|
|
meta = with lib.maintainers; {
|
|
maintainers = [ ];
|
|
};
|
|
|
|
nodes = {
|
|
machine = { ... }: {
|
|
services.private-gpt = {
|
|
enable = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
machine.start()
|
|
|
|
machine.wait_for_unit("private-gpt.service")
|
|
machine.wait_for_open_port(${mainPort})
|
|
|
|
machine.succeed("curl http://127.0.0.1:${mainPort}")
|
|
'';
|
|
})
|