Clone of https://issues.redhat.com/browse/RHEL-148481
Installation of a RHEL 9.8 server with IPA with --random-serial-numbers enables the pruning feature, but the test test_integration/test_acme.py::TestACMEPrune::test_enable_pruning doesn't expect pruning.
--random-serial-numbers
test_integration/test_acme.py::TestACMEPrune::test_enable_pruning
The test needs to be fixed.
dnf install -y ipa-server; ipa-server-install --domain ipa.test --realm IPA.TEST -a Secret123 -p Secret123 -U --random-serial-numbers
The file /etc/pki/pki-tomcat/a/CS.cfg shows that pruning is enabled
jobsScheduler.job.pruning.enabled=true
This makes the test fail because the backend is BDB but the pruning is enabled:
if get_389ds_backend(self.master) == 'bdb': cs_cfg = self.master.get_file_contents(paths.CA_CS_CFG_PATH) > assert "jobsScheduler.job.pruning.enabled=false".encode() in cs_cfg
Note that the issue happens on RHEL 9 but not on fedora because fedora has LMDB enabled instead of BDB.
Metadata Update from @frenaud: - Issue assigned to frenaud
Metadata Update from @frenaud: - Custom field rhbz adjusted to https://issues.redhat.com/browse/RHEL-148481
Metadata Update from @frenaud: - Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/8174
master:
ipa-4-13:
Metadata Update from @frenaud: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)