URL:
https://github.com/freeipa/freeipa/pull/5007
Author: flo-renaud
Title: #5007: ipatests: fix TestIpaHealthCheckWithoutDNS failure
Action: opened
PR body:
"""
TestIpaHealthCheckWithoutDNS is launched after
TestIpaHealthCheck::test_ipa_healthcheck_expiring that is playing with
the date. At the end of test_ipa_healthcheck_expiring, the date is
reset using systemctl start chronyd but the date may need time to adjust
and the subsequent tests may be launched with a system date set in the
future.
When this happens, dnf install fails because the certificate for
the package repo is seen as expired, and TestIpaHealthCheckWithoutDNS
fails.
In order to avoid this issue, call chronyc waitsync to make sure the
date was adjusted back.
Fixes:
https://pagure.io/freeipa/issue/8447
"""
To pull the PR as Git branch:
git remote add ghfreeipa
https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/5007/head:pr5007
git checkout pr5007