[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 = 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 >() is True E + where > = ._rsa_ca_exists E + where = .nss_ssl E + where = .standalone lib389/tests/nss_ssl_test.py:71: AssertionError ============================================== 1 failed in 16.43 seconds ==============================================