1 import ./make-test-python.nix ({ pkgs, ... }: {
3 meta = with pkgs.lib.maintainers; {
4 maintainers = [ matthewcroughan ];
8 client = { config, pkgs, ... }: {
9 environment.systemPackages = [ pkgs.curl ];
11 nodered = { config, pkgs, ... }: {
21 nodered.wait_for_unit("node-red.service")
22 nodered.wait_for_open_port(1880)
24 client.wait_for_unit("multi-user.target")
26 with subtest("Check that the Node-RED webserver can be reached."):
27 assert "<title>Node-RED</title>" in client.succeed(
28 "curl -sSf http:/nodered:1880/ | grep title"