-ν
./θ?c       s  d  Z  d k Z d k Z d k Z d k Z d k Z d k l Z d k l	 Z	 d k
 l Z d k l Z d k l Z d k l Z d k l Z d	 k l Z d
 e f d     YZ d e f d     YZ d e f d     YZ e e g Z d   Z e d j o e i d d  n d S(   s   Test suite for AuthZEO.N(   s   LoopCallback(   s	   zeopasswd(   s   ClientStorage(   s   ClientDisconnected(   s   StorageServer(   s   CommonSetupTearDown(   s   FileStorage(   s   removefss   AuthTestc      sz   t  Z e i Z e i Z e i Z e	 Z
 d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d	   Z RS(
   Nc    s   t  i   |  _ |  i o |  i |  i |  i  |  _ n |  i |  i  |  _ |  i i d d  |  i i   |  i	   |  i
   d  S(   Ns   foos   bar(   s   tempfiles   mktemps   selfs   pwfiles   realms   dbclasss   pwdbs   add_users   saves   _checkZEOpasswds   _AuthTest__super_setUp(   s   self(    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys   setUp( s    

c    s   d |  i d |  i g } |  i d j oE d k l } t i | d d g |  t i | d d g |  n/ t i | d d g  t i | d d g  d  S(   Ns   -fs   -ps	   plaintext(   s   Databases   -ds   foos   bar(   s   selfs   pwfiles   protocols   argss   ZEO.auth.bases   Databases	   zeopasswds   main(   s   selfs   argss   Database(    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys   _checkZEOpasswd3 s    c    s   |  i   t i |  i  d  S(   N(   s   selfs   _AuthTest__super_tearDowns   oss   removes   pwfile(   s   self(    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys   tearDown= s    
c    s   d Sd  S(   Ns   <mappingstorage 1/>(    (   s   selfs   paths   creates	   read_only(    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys	   getConfigA s    c    s>   |  i | |  } |  i | _ |  i | _ |  i	 | _
 | Sd  S(   N(   s   selfs    _AuthTest__super_getServerConfigs   addrs   ro_svrs   zconfs   protocols   authentication_protocols   pwfiles   authentication_databases   realms   authentication_realm(   s   selfs   addrs   ro_svrs   zconf(    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys   getServerConfigD s
    c    sJ   x6 t  d  D]( } |  i i o d  Sn t i d  q W|  i d  d  S(   Ni   f0.10000000000000001s,   Timed out waiting for client to authenticate(   s   ranges   is   selfs   _storages   test_connections   times   sleeps   fail(   s   selfs   i(    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys   waitK s     c  	  s~   |  i d d d d d d d |  i  |  _ |  i   |  i |  i i  |  i i i   |  i |  i i    |  i i	   d  S(   Ns   waiti    s   usernames   foos   passwords   bars   realm(
   s   selfs   openClientStorages   realms   _storages   waits   assert_s   _connections   polls   is_connecteds   versions(   s   self(    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys   testOKR s    
c  	  sK   |  i d d d d d d d |  i  |  _ |  i   |  i |  i i  d  S(   Ns   waiti    s   usernames   foos   passwords   noogies   realm(   s   selfs   openClientStorages   realms   _storages   waits   failIfs   _connection(   s   self(    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys   testNOK_ s
    
c  	  sj   |  i d d d d d d d |  i  |  _ |  i   |  i i   t |  i i _ |  i	 t
 |  i i  d  S(   Ns   waiti    s   usernames   foos   passwords   bars   realm(   s   selfs   openClientStorages   realms   _storages   waits   versionss   Nones   _connections'   _SizedMessageAsyncConnection__hmac_sends   assertRaisess   ClientDisconnected(   s   self(    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys   testUnauthenticatedMessageg s    
(   s   __name__s
   __module__s   CommonSetupTearDowns   getServerConfigs    _AuthTest__super_getServerConfigs   setUps   _AuthTest__super_setUps   tearDowns   _AuthTest__super_tearDowns   Nones   realms   _checkZEOpasswds	   getConfigs   waits   testOKs   testNOKs   testUnauthenticatedMessage(    (    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys   AuthTest! s   					
						s   PlainTextAuthc      s2   t  Z d  k Z d Z d Z e i i i Z	 d Z
 RS(   Ns	   plaintexts
   authdb.shas   Plaintext Realm(   s   __name__s
   __module__s   ZEO.tests.auth_plaintexts   ZEOs   protocols   databases   testss   auth_plaintexts   Databases   dbclasss   realm(    (    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys   PlainTextAuthu s
   	s
   DigestAuthc      s2   t  Z d  k Z d Z d Z e i i i Z	 d Z
 RS(   Ns   digests   authdb.digests   Digest Realm(   s   __name__s
   __module__s   ZEO.auth.auth_digests   ZEOs   protocols   databases   auths   auth_digests   DigestDatabases   dbclasss   realm(    (    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys
   DigestAuth| s
   	c     sA   t  i   }  x* t D]" } t  i |  } |  i |  q W|  Sd  S(   N(   s   unittests	   TestSuites   suites   test_classess   klasss	   makeSuites   subs   addTest(   s   suites   subs   klass(    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys
   test_suite s     s   __main__s   defaultTests
   test_suite(   s   __doc__s   oss   tempfiles   times   unittests   zLOGs   ThreadedAsyncs   LoopCallbacks   ZEOs	   zeopasswds   ZEO.ClientStorages   ClientStorages   ZEO.Exceptionss   ClientDisconnecteds   ZEO.StorageServers   StorageServers   ZEO.tests.ConnectionTestss   CommonSetupTearDowns   ZODB.FileStorages   FileStorages   ZODB.tests.StorageTestBases   removefss   AuthTests   PlainTextAuths
   DigestAuths   test_classess
   test_suites   __name__s   main(   s   ClientStorages   PlainTextAuths   FileStorages   ClientDisconnecteds   LoopCallbacks   tempfiles	   zeopasswds   unittests
   DigestAuths   removefss
   test_suites   test_classess   times   zLOGs   AuthTests   oss   CommonSetupTearDowns   StorageServer(    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys   ? s(   					T	