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