nixos/tests: init portunus

This commit is contained in:
Sandro Jäckel 2023-05-21 18:53:52 +02:00
parent 0000000324
commit 00000006e9
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 19 additions and 0 deletions

View File

@ -597,6 +597,7 @@ in {
podman-tls-ghostunnel = handleTestOn ["aarch64-linux" "x86_64-linux"] ./podman/tls-ghostunnel.nix {};
polaris = handleTest ./polaris.nix {};
pomerium = handleTestOn ["x86_64-linux"] ./pomerium.nix {};
portunus = handleTest ./portunus.nix { };
postfix = handleTest ./postfix.nix {};
postfix-raise-smtpd-tls-security-level = handleTest ./postfix-raise-smtpd-tls-security-level.nix {};
postfixadmin = handleTest ./postfixadmin.nix {};

18
nixos/tests/portunus.nix Normal file
View File

@ -0,0 +1,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/")
'';
})