#9513 patests.test_integration.test_ipahealthcheck::TestIpaHealthCheck::test_source_ipahealthcheck_dogtag_ca_dogtagcertsconf output changed
Closed: fixed by frenaud. Opened by rcritten.

Issue

In PKI 11.5.0 the output of ipahealthcheck.dogtag.ca.DogtagCertsConfigCheck has changed, dropping the configfile keyword. It now returns:

[
   {
     "source": "ipahealthcheck.dogtag.ca",
     "check": "DogtagCertsConfigCheck",
     "result": "SUCCESS",
     "uuid": "7842575b-b7d1-4c70-8b05-9040bc187b70",
     "when": "20240115151948Z",
     "duration": "0.000765",
     "kw": {}
   }
]

It fails with the exception:

self = <ipatests.test_integration.test_ipahealthcheck.TestIpaHealthCheck object at 0x7f806ead1f10>
    def test_source_ipahealthcheck_dogtag_ca_dogtagcertsconfigcheck(self):
        """
        Testcase checks behaviour of check DogtagCertsConfigCheck in
        ipahealthcheck.dogtag.ca when tomcat config file is removed
        """
        returncode, data = run_healthcheck(
            self.master,
            "ipahealthcheck.dogtag.ca",
            "DogtagCertsConfigCheck",
        )
        assert returncode == 0
        for check in data:
            assert check["result"] == "SUCCESS"
>           assert check["kw"]["configfile"] == paths.CA_CS_CFG_PATH
E           KeyError: 'configfile'
check      = {'check': 'DogtagCertsConfigCheck', 'duration': '0.000765', 'kw': {}, 'result': 'SUCCESS', ...}
data       = [{'check': 'DogtagCertsConfigCheck', 'duration': '0.000765', 'kw': {}, 'result': 'SUCCESS', ...}]
returncode = 0
self       = <ipatests.test_integration.test_ipahealthcheck.TestIpaHealthCheck object at 0x7f806ead1f10>
test_integration/test_ipahealthcheck.py:519: KeyError

ipa-healthcheck-core-0.16-3.el9.noarch
ipa-server-4.11.0-4.el9.x86_64
idm-pki-ca-11.5.0-0.1.alpha4.el9.noarch


Metadata Update from @rcritten:
- Issue tagged with: test-failure

Metadata Update from @sumenon:
- Issue assigned to sumenon

master:

  • 7f849956df3301a10b5b5bafba17fb5869ab4858 ipatests: Skip tests for ipahealtcheck tests for specific pki version

ipa-4-11:

  • 8c1f56dbab5de1c06fc424f3c58d366274d70688 ipatests: Skip tests for ipahealtcheck tests for specific pki version

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

Metadata