wushuyi / passlib

Automatically exported from code.google.com/p/passlib
Other
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
[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.S
SSS...SS....S......SSS....S.SS.....SS....S......SSS....S.SS.....SS....S........S
....S.SSSS.......S........S....S.SS..........S........S....S.SSSS.......SSSSSSSS
SS....S.SSSS.......SSSSSSSSSS....S.SSSS.......SSSSSSSSSS....S.SSSS.......SSSSSSS
SSS....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......S
SS....S............SSSSSSSSSS....S.SS.S........SSSSSSSSSS....S.SS.S.......SSSSSS
SSSS....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........SSSS
SSSSSS....S.SS.S..S.....SSSSSSSSSS....S.SSSSS.S.................................
.............................................................S......SSS....S.SSS
S...................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:a500bb8c02f6a9170ae46
af10c898744\nuser4:realm:ab7b5d5f28ccc7666315f508c7358519\nuser1:realm:2a6cf53e7
d8f8cf39d946dc880b14128\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

Original issue reported on code.google.com by koobs.fr...@gmail.com on 11 Jun 2012 at 11:39

GoogleCodeExporter commented 9 years ago
Scuse the lack of wrapping :)

Original comment by koobs.fr...@gmail.com on 11 Jun 2012 at 11:48

GoogleCodeExporter commented 9 years ago
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. 

Original comment by elic@astllc.org on 27 Jun 2012 at 10:07

GoogleCodeExporter commented 9 years ago
FYI, I submitted py-passlib a couple of weeks ago, should be due to land in the 
FreeBSD ports tree shortly:

http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/168949

Original comment by koobs.fr...@gmail.com on 28 Jun 2012 at 9:36

GoogleCodeExporter commented 9 years ago
1.6.1 has been released, which fixes this bug.

Original comment by elic@astllc.org on 2 Aug 2012 at 7:57