1import ./make-test-python.nix ({ lib, ... }:
2let
3 port = 5678;
4in
5{
6 name = "n8n";
7 meta.maintainers = with lib.maintainers; [ freezeboy k900 ];
8
9 nodes.machine =
10 { pkgs, ... }:
11 {
12 services.n8n = {
13 enable = true;
14 };
15 };
16
17 testScript = ''
18 machine.wait_for_unit("n8n.service")
19 machine.wait_for_console_text("Editor is now accessible via")
20 machine.succeed("curl --fail -vvv http://localhost:${toString port}/")
21 '';
22})