about summary refs log tree commit diff
path: root/nixos/tests/robustirc-bridge.nix
blob: 8493fd6282128c0e5729006e3d8d401e1a5c24c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import ./make-test-python.nix ({ pkgs, ... }:

{
  name = "robustirc-bridge";
  meta = with pkgs.lib.maintainers; {
    maintainers = [ hax404 ];
  };

  nodes =
    { bridge =
      { services.robustirc-bridge = {
          enable = true;
          extraFlags = [
            "-listen localhost:6667"
            "-network example.com"
          ];
        };
      };
    };

    testScript =
    ''
      start_all()

      bridge.wait_for_unit("robustirc-bridge.service")
      bridge.wait_for_open_port(1080)
      bridge.wait_for_open_port(6667)
    '';
})