FreeBSD 9.x supports sha256_crypt and sha512_crypt (Test failures)

Issue #35 resolved
Anonymous created an issue
(Imported from Google Code)

koobs.freebsd wrote:

[koobs@freebsd-90-amd64:/usr/home/koobs/ports/py-passlib/work/passlib-1.6] PASSLIB_TEST_MODE="full" nosetests --tests passlib/tests
......F............................................................................................SSSSSSSSSS.....S......SSS....S.SSS........S......SSS....S.SSS........................S...........................S..............S......SSS....S.SS.S........SSSSSSSSSS....S.SS.S................S......SS.S................S......SS.S..........SSSSSSSSSS....S.SSSS..........SS.SSS.SSS....S.SS.S.........S......SSS....S.SSSS.......S........S....S.SSSS..............SSS......SS.S..............SSS......SS.S...................S......SSSS...SS....S......SSS....S..S.....SS....SSSSSSSSSS....S.SSSS..S....S........S....S.SSSS...SS....S........S....S.SSSS...SS....S......SSS....S.SS.....SS....S......SSS....S.SS.....SS....S........S....S.SSSS.......S........S....S.SS..........S........S....S.SSSS.......SSSSSSSSSS....S.SSSS.......SSSSSSSSSS....S.SSSS.......SSSSSSSSSS....S.SSSS.......SSSSSSSSSS....S.SSSS.......SSSSSSSSSS....S.SSSS.......SSSSSSSSSS....S.SS.S...S.............SSS......SSS...............SSS......SSS......S....SSSSSSSSSS....S.SSSS........SSSSSSSSSS....S.SS.S.......S......SSS....S.SSS........S......SSS....S.SSS.................S......SSSS..S..S....SSSSSSSSSS....S.SSSS.......SSSSSSSSSS....S.SS.S...............SSS......SSS...............SSS......SSS...........SSSSSSSSSS....S.SSSS..........SSSSSSSSSS....S..SSS..........S......SSS....S............S......SSS....S............SSSSSSSSSS....S.SS.S........SSSSSSSSSS....S.SS.S.......SSSSSSSSSS....S.SS.S.......SSSSSSSSSS....S.SS.S..........S......SSS....S.SSSS.......S........S....S.SSS........S........S....S.SSSS.......S........S....S.SSSS.......S.............S.SSS........SSSSSSSSSS....S.SSSSS......SSSSSSSSSS....S.SS.S..........S........S....S.SSS.........................S......SSS.................S......SSS....................S......S.S.................S......S.S......F.............S......S.S.................S......S.S......F....S........S....S.S.S........SSSSSSSSSS....S.SS.S..S.....SSSSSSSSSS....S.SSSSS.S..............................................................................................S......SSS....S.SSSS...................SSSSSSSSSS....S.SSSS......
======================================================================
FAIL: HtdigestFile: test load()
----------------------------------------------------------------------
Traceback (most recent call last):

File "/usr/home/koobs/ports/py-passlib/work/passlib-1.6/passlib/tests/test_apache.py", line 481, in test_05_load

self.assertEqual(ha.to_string(), b(""))
AssertionError: 'user2:realm:549d2a5f4659ab39a80dac99e159ab19\nuser3:realm:a500bb8c02f6a9170ae46af10c898744\nuser4:realm:ab7b5d5f28ccc7666315f508c7358519\nuser1:realm:2a6cf53e7d8f8cf39d946dc880b14128\n' != ''

================================================================
FAIL: sha256_crypt (os_crypt backend): test platform-specific crypt() support detection
----------------------------------------------------------------------
Traceback (most recent call last):

File "/usr/home/koobs/ports/py-passlib/work/passlib-1.6/passlib/tests/utils.py", line 2010, in test_82_crypt_support

"for %r" % (platform, self.handler.name))
AssertionError: expected 'freebsd9' platform would NOT have native support for 'sha256_crypt'

================================================================
FAIL: sha512_crypt (os_crypt backend): test platform-specific crypt() support detection
----------------------------------------------------------------------
Traceback (most recent call last):

File "/usr/home/koobs/ports/py-passlib/work/passlib-1.6/passlib/tests/utils.py", line 2010, in test_82_crypt_support

"for %r" % (platform, self.handler.name))
AssertionError: expected 'freebsd9' platform would NOT have native support for 'sha512_crypt'

----------------------------------------------------------------------
Ran 2126 tests in 475.984s

Environment:

FreeBSD freebsd-90-amd64.elysium 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Sat May 5 14:51:14 EST 2012 root@freebsd-90-rc3-amd64:/usr/obj/usr/src/sys/GENERIC amd64

python-2.7.3
py27-passlib 1.6
py27-nose-1.1.2

Comments (4)

  1. Eli Collins repo owner
    (Imported from Google Code)

    Thanks for reporting this!

    It looks like FreeBSD 8.3 added support for sha512_crypt, which is great, but the test suite wasn't prepared for that :) As of r972eb1133419 I've updated Passlib's unittests, and the fix will be included in the 1.6.1 release (but that may not be out for another month or so).

    In the meantime, it should be safe to go ahead and use Passlib on your system... all those errors were bugs in Passlib's test suite, and shouldn't affect the library itself.

  2. Log in to comment