From a472448fa4bf434413ad6c300116ccc6d0f0e2bc Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 4 Dec 2025 17:04:30 -0800 Subject: [PATCH] Add a magic wait for the Active Directory kickstart enrol test We get quite a few failures where the getent passwd 'SAMDOM\Administrator' check just returns nothing for some reason. It seems like it might be a network race or something, and this magic wait looks like it helps after a few days testing on staging, so let's try it in prod too. Signed-off-by: Adam Williamson --- tests/domain_client.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/domain_client.pm b/tests/domain_client.pm index 9e92d508..c38538b0 100644 --- a/tests/domain_client.pm +++ b/tests/domain_client.pm @@ -21,6 +21,8 @@ sub run { # we don't have sssd debugging enabled yet assert_script_run 'dnf -y install sssd-tools', 240; assert_script_run 'sss_debuglevel 9'; + # magic wait for AD test to avoid getent passwd check fails + sleep 15 if ($domain =~ m/samdom/); } # check domain is listed in 'realm list' validate_script_output 'realm list', sub { $_ =~ m/domain-name: $qdomain.*configured: kerberos-member/s };