[CalendarServer-changes] [10627] CalendarServer/branches/users/glyph/digest-auth-redux
source_changes at macosforge.org
source_changes at macosforge.org
Fri Feb 1 15:53:20 PST 2013
Revision: 10627
http://trac.calendarserver.org//changeset/10627
Author: glyph at apple.com
Date: 2013-02-01 15:53:19 -0800 (Fri, 01 Feb 2013)
Log Message:
-----------
Deterministicify the directory tests using the existing utility so this only exists once.
Modified Paths:
--------------
CalendarServer/branches/users/glyph/digest-auth-redux/twistedcaldav/directory/test/test_digest.py
Property Changed:
----------------
CalendarServer/branches/users/glyph/digest-auth-redux/
Modified: CalendarServer/branches/users/glyph/digest-auth-redux/twistedcaldav/directory/test/test_digest.py
===================================================================
--- CalendarServer/branches/users/glyph/digest-auth-redux/twistedcaldav/directory/test/test_digest.py 2013-02-01 23:53:18 UTC (rev 10626)
+++ CalendarServer/branches/users/glyph/digest-auth-redux/twistedcaldav/directory/test/test_digest.py 2013-02-01 23:53:19 UTC (rev 10627)
@@ -30,6 +30,7 @@
from twistedcaldav.test.util import TestCase
from twistedcaldav.config import config
from twext.web2.auth.digest import DigestCredentialFactory
+from twext.web2.test.test_httpauth import makeDigestDeterministic
class FakeDigestCredentialFactory(QopDigestCredentialFactory):
"""
@@ -39,12 +40,8 @@
def __init__(self, *args, **kwargs):
super(FakeDigestCredentialFactory, self).__init__(*args, **kwargs)
+ makeDigestDeterministic(self._real)
- def generateNonce(self):
- """
- Generate a static nonce
- """
- return '178288758716122392881254770685'
clientAddress = address.IPv4Address('TCP', '127.0.0.1', 80)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130201/5654f464/attachment.html>
More information about the calendarserver-changes
mailing list