#5688 test cert plugin: search for short name returns certificates
Closed: Fixed None Opened 8 years ago by mkubik.

self = <ipatests.test_xmlrpc.test_cert_plugin.test_cert_find object at 0x7f48d1421b50>

    def test_0006_find_this_short_host_exact(self):
        """
            Find all certificates for this IPA server short name (exact)
            """
        res = api.Command['cert_find'](subject=self.short, exactly=True)
>       assert 'count' in res and res['count'] == 0
E       assert ('count' in {'count': 5, 'result': ({'serial_number': 3, 'serial_number_hex': '0x3', 'status': 'VALID', 'subject': 'CN=vm-169.idm....ab.eng.brq.redhat.com,O=DOM-169.IDM.LAB.ENG.BRQ.REDHAT.COM'}), 'summary': '5 certificates matched', 'truncated': False} and 5 == 0)

/var/lib/jenkins/workspace/freeipa-intree-tests-f23master/ipatests/test_xmlrpc/test_cert_plugin.py:271: AssertionError

Is the test case wrong?


looks like a bug, in IPA or PKI, needs to be checked

master:

  • abe3abb test_cert_plugin: use only first part of the hostname to construct short name

ipa-4-3:

  • bbad720 test_cert_plugin: use only first part of the hostname to construct short name

Metadata Update from @mkubik:
- Issue assigned to mbabinsk
- Issue set to the milestone: FreeIPA 4.3.1

7 years ago

Login to comment on this ticket.

Metadata