#8816 WebUI: nightly test failure in test_webui_network and test_webui_service
Closed: fixed by frenaud. Opened by frenaud.

The nightly tests failed in test_webui_network and test_webui_service with a similar error related to a revoked certificate.

See for instance PR #855:
- test_webui_network: Logs and report:

self = <ipatests.test_webui.test_vault.test_vault object at 0x7f83c6fa8e50>
    @screenshot
    def test_add_shared_vault(self):
        """
        Add Shared vault
        """
>       self.init_app()

The screenshot shows that the driver is unable to connect because the certificate has been revoked.

self = <ipatests.test_webui.test_service.test_service object at 0x7f35e7896730>
    @screenshot
    def test_certificates(self):
        """
        Test service certificate actions
        Requires to have CA installed.
        """
        if not self.has_ca():
            self.skip('CA is not configured')
>       self.init_app()

The screenshot shows the same revoked cert issue


The tests started failing after the commit https://pagure.io/freeipa/c/aa1350384ad6a7d6b2f6056d99fbb43c5c5a6be7?branch=master, it may be related.

@rcritten can you check if the new code is revoking certificates that should not?

Metadata Update from @rcritten:
- Issue assigned to rcritten

A change in the options passed into cert_find caused all certificates for a host to be revoked when any service was deleted. Reverted that part but kept the search for VALID certs.

Added a new test as well.

PR https://github.com/freeipa/freeipa/pull/5733

Failures observed in test_master_previous
test_webui_network and test_webui_service
PR
Logs
Logs

The issue can be closed as the commit introducing the regression has been reverted:
https://pagure.io/freeipa/c/c5e827401045dbecabcbe7b800add66a3729c80d?branch=master Revert "Only request VALID certs when revoking certs for a host/service"

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

Metadata