summaryrefslogtreecommitdiffstats
path: root/nixos/tests/portunus.nix
blob: d5eba1cd3fdd238eebb9c201e7741062c8b6349e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ lib, ... }:

{
  name = "portunus";
  meta.maintainers = with lib.maintainers; [ SuperSandro2000 ];

  nodes.machine = _: {
    services.portunus = {
      enable = true;
      ldap.suffix = "dc=example,dc=org";
    };
  };

  testScript = ''
    machine.wait_for_unit("portunus.service")
    machine.wait_for_open_port(8080)
    machine.wait_until_succeeds("curl --fail -vvv http://localhost:8080/")
  '';
}