Files

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

40 lines
789 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
let
defaultPort = 8080;
customPort = 4242;
in
{ pkgs, ... }:
{
name = "podgrab";
nodes = {
default =
{ ... }:
{
services.podgrab.enable = true;
};
customized =
{ ... }:
{
services.podgrab = {
enable = true;
port = customPort;
};
};
};
testScript = ''
start_all()
default.wait_for_unit("podgrab")
default.wait_for_open_port(${toString defaultPort})
default.succeed("curl --fail http://localhost:${toString defaultPort}")
customized.wait_for_unit("podgrab")
customized.wait_for_open_port(${toString customPort})
customized.succeed("curl --fail http://localhost:${toString customPort}")
'';
meta.maintainers = with pkgs.lib.maintainers; [ ambroisie ];
}