#9706 Nightly test failure in test_acme.py::TestACMEPrune::test_enable_pruning
Closed: fixed by frenaud. Opened by frenaud.

Issue

The nightly test test_acme.py::TestACMEPrune::test_enable_pruning is failing, see for instance in this run with the following logs and report.

    def test_enable_pruning(self):
        if (tasks.get_pki_version(self.master)
           < tasks.parse_version('11.3.0')):
            raise pytest.skip("Certificate pruning is not available")
        cs_cfg = self.master.get_file_contents(paths.CA_CS_CFG_PATH)
>       assert "jobsScheduler.job.pruning.enabled=false".encode() in cs_cfg

The commit #6f304ba enabled pruning by default and the test needs to be updated.

Steps to Reproduce

  1. Install IPA server on fedora 40 or fedora 41 (both versions support LMDB and enable RSNv3 and certificate pruning).
  2. Check if the certificate pruning job is enabled (in /etc/pki/pki-tomcat/ca/CS.cfg read the value of jobsScheduler.job.pruning.enabled)

Actual behavior

The file contains jobsScheduler.job.pruning.enabled=true and the test fails.

Expected behavior

The file content is expected, the test should be updated and expect jobsScheduler.job.pruning.enabled=true.


Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/7602

Metadata Update from @frenaud:
- Custom field rhbz adjusted to https://issues.redhat.com/browse/RHEL-57674

Similar issue in the 2 following tests:
test_integration/test_acme.py::TestACME::test_acme_pruning_no_random_serial
test_integration/test_acme.py::TestACMEwithExternalCA::test_acme_pruning_no_random_serial

master:

  • fd222273a544f9e8c7a1749ff797880db7edbf25 ipatests: pruning is enabled by default with LMDB

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata