about summary refs log tree commit diff
path: root/nixos/tests/portunus.nix
blob: 6fcae7e1c4cead74535d2a39dcbef88f8beddcc2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import ./make-test-python.nix ({ 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.succeed("curl --fail -vvv http://localhost:8080/")
  '';
})