nixpkgs/nixos/tests/private-gpt.nix
Wolfgang Walther 1c6af9ba0a
treewide: remove unused with
Auto-fixed by nixf-diagnose.

(cherry picked from commit c283f32d29)
2025-10-05 12:38:28 +02:00

32 lines
529 B
Nix

import ./make-test-python.nix (
{ pkgs, lib, ... }:
let
mainPort = "8001";
in
{
name = "private-gpt";
meta = {
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}")
'';
}
)