summaryrefslogtreecommitdiffstats
path: root/nixos/tests/tuliprox.nix
blob: 425b06e0fd83c557e548a5f9226063ff83d68a86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ lib, pkgs, ... }:
{
  name = "tuliprox";
  meta.maintainers = with lib.maintainers; [ nyanloutre ];

  nodes.machine =
    { pkgs, ... }:
    {
      services.tuliprox = {
        enable = true;
      };
    };

  testScript = ''
    machine.wait_for_unit("multi-user.target")
    machine.wait_for_open_port(8901)
    machine.succeed("curl -v -s http://127.0.0.1:8901/")
  '';
}