6d4aeb4377
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
25 lines
472 B
Nix
25 lines
472 B
Nix
import ./make-test-python.nix ({ lib, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
port = 5678;
|
|
in
|
|
{
|
|
name = "n8n";
|
|
meta.maintainers = with maintainers; [ freezeboy k900 ];
|
|
|
|
nodes.machine =
|
|
{ pkgs, ... }:
|
|
{
|
|
services.n8n = {
|
|
enable = true;
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
machine.wait_for_unit("n8n.service")
|
|
machine.wait_for_console_text("Editor is now accessible via")
|
|
machine.succeed("curl --fail -vvv http://localhost:${toString port}/")
|
|
'';
|
|
})
|