Files
nixpkgs/nixos/tests/prefect.nix
2026-05-08 19:27:51 +08:00

29 lines
450 B
Nix

{ lib, ... }:
let
mainPort = "4200";
in
{
name = "prefect";
nodes = {
machine =
{ ... }:
{
services.prefect = {
enable = true;
baseUrl = "http://127.0.0.1";
};
};
};
testScript = ''
machine.start()
machine.wait_for_unit("prefect-server.service")
machine.wait_for_open_port(${mainPort})
'';
meta = with lib.maintainers; {
maintainers = [ happysalada ];
};
}