#8482 Nightly test failure in test_ipahealthcheck.py::TestIpaHealthCheck::test_source_ipahealthcheck_meta_services_check
Closed: fixed by frenaud. Opened by frenaud.

Issue

The nightly test test_ipahealthcheck.py::TestIpaHealthCheck::test_source_ipahealthcheck_meta_services_check is failing since Sep 1 on the master branch. See PR #383 with the following report and logs

self = <ipatests.test_integration.test_ipahealthcheck.TestIpaHealthCheck object at 0x7f4792d830a0>
restart_service = <function restart_service.<locals>._stop_service at 0x7f47927891f0>
    def test_source_ipahealthcheck_meta_services_check(self, restart_service):
        """
        Testcase checks behaviour of check configured services in
        ipahealthcheck.meta.services when service is stopped and started
        respectively
        """
        svc_list = ('certmonger', 'gssproxy', 'httpd', 'ipa_custodia',
                    'ipa_dnskeysyncd', 'kadmin', 'krb5kdc',
                    'named', 'pki_tomcatd', 'sssd', 'dirsrv')
        for service in svc_list:
            returncode, data = run_healthcheck(
                self.master,
                "ipahealthcheck.meta.services",
                service,
            )
            assert returncode == 0
            assert data[0]["check"] == service
            assert data[0]["result"] == "SUCCESS"
            assert data[0]["kw"]["status"] is True
        for service in svc_list:
            restart_service(self.master, service)
            returncode, data = run_healthcheck(
                self.master,
                "ipahealthcheck.meta.services",
                service,
            )
>           assert returncode == 1
E           assert 0 == 1
E             +0
E             -1

The test stops a service, then checks that ipa-healthcheck reports the service down, then re-starts the service.

I suspect that it is linked to the commit of PR #3774 where the service has a different name (named-pkcs11 vs named).


Metadata Update from @frenaud:
- Issue assigned to frenaud

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

master:

  • 50fdc8089a4f7970d6dfa3dc843b75b3e6f31d3c ipatests: fix bind service name

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

Metadata