URL:
https://github.com/SSSD/sssd/pull/947
Title: #947: tests: fix race conditions in integration tests
sumit-bose commented:
"""
Hi,
about the race between adding e.g. the user to /etc/passwd and getting inotify
processed.
Isn't this similar to why calling `sss_cache` was added `useradd` and other utilities
from the shadow-utils package? Have you tried if instead of increasing the delay calling
`sss_cache -E` would work as well?
If I see it correctly the test just adds a new line to /etc/passwd and then tries to
lookup the freshly added user. I think whenever a cache is added in between this use case
can only be covered if the cache is explicitly invalidated after adding the new line
(shadow-utils is also calling `nscd -i ...` is `nscd` is used). Using inotify helps if
invalidating the cache was forgotten but it is only best effort.
bye,
Sumit
"""
See the full comment at
https://github.com/SSSD/sssd/pull/947#issuecomment-561611980