nixpkgs/nixos/tests/private-gpt.nix

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

32 lines
551 B
Nix
Raw Normal View History

2024-04-24 13:15:25 +00:00
import ./make-test-python.nix (
{ pkgs, lib, ... }:
let
mainPort = "8001";
in
{
name = "private-gpt";
meta = with lib.maintainers; {
maintainers = [ ];
2024-04-24 13:15:25 +00:00
};
nodes = {
machine =
{ ... }:
{
services.private-gpt = {
enable = true;
};
};
2024-04-24 13:15:25 +00:00
};
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}")
'';
}
)