[Zope-Checkins] CVS: ZODB3/ZEO/tests - zeoserver.py:1.13.10.3 testAuth.py:1.1.2.8
   
    Jeremy Hylton
     
    jeremy@zope.com
       
    Thu, 29 May 2003 17:40:00 -0400
    
    
  
Update of /cvs-repository/ZODB3/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv27523/ZEO/tests
Modified Files:
      Tag: ZODB3-auth-branch
	zeoserver.py testAuth.py 
Log Message:
Change the StorageServer to be explicitly told what the realm is.
If the realm passed to the server doesn't match the realm in the
password database, complain.  Fix the tests to work with this new
scheme.
=== ZODB3/ZEO/tests/zeoserver.py 1.13.10.2 => 1.13.10.3 ===
--- ZODB3/ZEO/tests/zeoserver.py:1.13.10.2	Thu May 29 17:30:09 2003
+++ ZODB3/ZEO/tests/zeoserver.py	Thu May 29 17:39:29 2003
@@ -171,7 +171,8 @@
         transaction_timeout=zo.transaction_timeout,
         monitor_address=zo.monitor_address,
         auth_protocol=zo.auth_protocol,
-        auth_filename=zo.auth_database)
+        auth_filename=zo.auth_database,
+        auth_realm=zo.auth_realm)
     
     try:
         log(label, 'creating the test server, keep: %s', keep)
=== ZODB3/ZEO/tests/testAuth.py 1.1.2.7 => 1.1.2.8 ===
--- ZODB3/ZEO/tests/testAuth.py:1.1.2.7	Thu May 29 17:30:09 2003
+++ ZODB3/ZEO/tests/testAuth.py	Thu May 29 17:39:29 2003
@@ -103,6 +103,7 @@
     import ZEO.tests.auth_plaintext
     protocol = 'plaintext'
     database = 'authdb.sha'
+    realm = "Plaintext Realm"
     dbclass = ZEO.tests.auth_plaintext.Database
     wait = 0.2