mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
337d358300
Originally intended to just speed up the tests, but probably a good idea in general.
26 lines
472 B
Nix
26 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}/")
|
|
'';
|
|
})
|