-ν
./θ?c       sY    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 u 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      s€   ! t  Z " e i Z # e i Z $ e i Z & e	 Z
 ( d   Z 3 d   Z = d   Z A d   Z D d   Z K d   Z R d   Z _ d   Z g d	   Z RS(
   Nc    s    ( ) t  i   |  _ * |  i o" + |  i |  i |  i  |  _ n - |  i |  i  |  _ . |  i i d d  / |  i i   0 |  i	   1 |  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·   3 4 d |  i d |  i g } 5 |  i d j oN 6 d k l } 7 t i | d d g |  8 t i | d d g |  n5 : 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   A B 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    sP   D E |  i | |  } F |  i | _ G |  i | _ H |  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    s_   K L xB t  d  DL ]1 } M |  i i o N d  Sn O t i d  q WP |  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   R U |  i d d d d V d d d |  i  |  _ W |  i   Y |  i |  i i  Z |  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  	  s]   _ ` |  i d d d d a d d b d |  i  |  _ c |  i   e |  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  	  s   g l |  i d d d d m d d d |  i  |  _ n |  i   o |  i i   q t |  i i _ s |  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      sD   u t  Z v d  k Z w d Z x d Z y e i i i Z	 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      sD   | 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     sV     t  i   }   x3 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