Ticket 48798 - CI and lib389 tests fail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi William,

I troubleshoot failures at the tickets.
And both tickets/ticket48798_test.py and lib389/tests/nss_ssl_test.py
fail because of the same problem. 
As I understand this is because of class design issue (lib389/nss_ssl.py).

Can you please take a look? May be you've already faced that issue and
can help me with the problem, so it would resolve faster. :)

Please, find the log output in the attachment.

Thanks,
Simon
[root@fed-dev lib389]# py.test -s -v lib389/tests/nss_ssl_test.py
================================================= test session starts =================================================
platform linux2 -- Python 2.7.10 -- py-1.4.30 -- pytest-2.7.3 -- /usr/bin/python2
rootdir: /export/lib389, inifile:
collected 1 items

lib389/tests/nss_ssl_test.py::test_nss DEBUG:lib389:Instance allocated
OK group dirsrv exists
OK user dirsrv exists
DEBUG:lib389.tools:running: ['/usr/sbin/setup-ds.pl', '-l', '/dev/null', '-s', '-f', '-']
DEBUG:lib389.tools:/usr/sbin/setup-ds.pl returned exit code 0


Certificates in the cache:


Certificates in the temporary store:
INFO:lib389:None


Certificates in the cache:


Certificates in the temporary store:
INFO:lib389:None


Generating key.  This may take a few moments...



Certificates in the cache:


Certificates in the temporary store:
INFO:lib389:None


Certificates in the cache:


Certificates in the temporary store:
INFO:lib389:None
FAILEDDEBUG:lib389:running: /usr/sbin/remove-ds.pl -i slapd-nss_ssl
Instance slapd-nss_ssl removed.


====================================================== FAILURES =======================================================
______________________________________________________ test_nss _______________________________________________________

topology = <lib389.tests.nss_ssl_test.TopologyStandalone object at 0x7f13b4df8210>

    def test_nss(topology):
        """
        Build a nss db, create a ca, and check that it is correct.
        """

        # This is a trick. The nss db that ships with DS is broken fundamentally.
        ## THIS ASSUMES old nss format. SQLite will bite us!
        for f in ('key3.db', 'cert8.db', 'key4.db', 'cert9.db', 'secmod.db', 'pkcs11.txt'):
            try:
                os.remove("%s/%s" % (topology.standalone.confdir, f ))
            except:
                pass

        # Check if the db exists. Should be false.
        assert(topology.standalone.nss_ssl._db_exists() is False)
        # Create it. Should work.
        assert(topology.standalone.nss_ssl.reinit() is True)
        # Check if the db exists. Should be true
        assert(topology.standalone.nss_ssl._db_exists() is True)

        # Check if ca exists. Should be false.
        assert(topology.standalone.nss_ssl._rsa_ca_exists() is False)
        # Create it. Should work.
        assert(topology.standalone.nss_ssl.create_rsa_ca() is True)
        # Check if ca exists. Should be true
>       assert(topology.standalone.nss_ssl._rsa_ca_exists() is True)
E       assert <bound method NssSsl._rsa_ca_exists of <lib389.nss_ssl.NssSsl object at 0x7f13b4de3ed0>>() is True
E        +  where <bound method NssSsl._rsa_ca_exists of <lib389.nss_ssl.NssSsl object at 0x7f13b4de3ed0>> = <lib389.nss_ssl.NssSsl object at 0x7f13b4de3ed0>._rsa_ca_exists
E        +    where <lib389.nss_ssl.NssSsl object at 0x7f13b4de3ed0> = <lib389.DirSrv instance at 0x7f13b553dbd8>.nss_ssl
E        +      where <lib389.DirSrv instance at 0x7f13b553dbd8> = <lib389.tests.nss_ssl_test.TopologyStandalone object at 0x7f13b4df8210>.standalone

lib389/tests/nss_ssl_test.py:71: AssertionError
============================================== 1 failed in 16.43 seconds ==============================================

Attachment: signature.asc
Description: PGP signature

--
389-devel mailing list
389-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://lists.fedoraproject.org/admin/lists/389-devel@xxxxxxxxxxxxxxxxxxxxxxx

[Index of Archives]     [Fedora Directory Announce]     [Fedora Users]     [Older Fedora Users Mail]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Review]     [Fedora Art]     [Fedora Music]     [Fedora Packaging]     [CentOS]     [Fedora SELinux]     [Big List of Linux Books]     [KDE Users]     [Fedora Art]     [Fedora Docs]

  Powered by Linux