wait for change to be seen

This commit is contained in:
Trevor Cooper 2023-08-23 13:28:39 -07:00
parent 365e4e9192
commit efa71dc0b3
Signed by: tcooper
GPG Key ID: 52364D7BBCEB35B8

View File

@ -126,6 +126,7 @@ sub run {
validate_script_output 'ipa sudorule-show testrule', sub { $_ =~ m/Users: test1/ }; validate_script_output 'ipa sudorule-show testrule', sub { $_ =~ m/Users: test1/ };
# This may fail - Invalidate sudo cache and check test1's sudo perms # This may fail - Invalidate sudo cache and check test1's sudo perms
assert_script_run 'sss_cache -R'; assert_script_run 'sss_cache -R';
sleep(120);
validate_script_output 'sudo -l -U test1', sub { $_ =~ m/test1 may run the following commands/ }; validate_script_output 'sudo -l -U test1', sub { $_ =~ m/test1 may run the following commands/ };
# we're ready for children to enroll, now # we're ready for children to enroll, now