test: Robustify ipa-getcerts in check-realms

It sometimes fails with a message that certmonger is not running, or
something like that.

Closes #13757
This commit is contained in:
Marius Vollmer 2020-03-19 15:33:38 +02:00 committed by GitHub
parent 9868283791
commit 2a3653a780
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ class TestRealms(MachineCase):
# should have cleaned up certificates
m.execute("! test -e /etc/cockpit/ws-certs.d/10-ipa.cert")
# should have stopped cert tracking
self.assertNotIn("status:", m.execute("ipa-getcert list"))
wait(lambda: "status:" not in m.execute("ipa-getcert list"))
# Sometimes with some versions of realmd the Leave operation
# from above is still active in the realmd daemon. So we loop