From fa0d5c969426a81f7925037ad8966ebcdef0f012 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 8 Mar 2026 03:58:05 +0100 Subject: [PATCH] tests/ldap: fail fast if openldap schema is broken This helps so much during development as it tells me openldap failed and doesn't require me to do a root cause analysis on a postmap failure much later in during the test. --- tests/ldap.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/ldap.nix b/tests/ldap.nix index d8f5af3..b875715 100644 --- a/tests/ldap.nix +++ b/tests/ldap.nix @@ -131,6 +131,9 @@ in machine.start() machine.wait_for_unit("multi-user.target") + # if the schema is broken, fail fast. helps during development. + machine.wait_for_unit("openldap.service") + # TODO put this blocking into the systemd units? machine.wait_until_succeeds( "set +e; timeout 1 nc -U /run/rspamd/rspamd-milter.sock < /dev/null; [ $? -eq 124 ]"