Exemplo n.º 1
0
 def setUp(self):
     self.zk = ZooKeeper({
         'hosts': ['localhost:2181'],
         'scope': 'test',
         'name': 'foo',
         'ttl': 30,
         'retry_timeout': 10
     })
Exemplo n.º 2
0
 def setUp(self):
     self.zk = ZooKeeper(
         'foo', {
             'exhibitor': {
                 'hosts': ['localhost', 'exhibitor'],
                 'port': 8181
             },
             'scope': 'test'
         })
Exemplo n.º 3
0
 def setUp(self):
     self.zk = ZooKeeper({
         'hosts': ['localhost:2181'],
         'scope': 'test',
         'name': 'foo',
         'ttl': 30,
         'retry_timeout': 10,
         'loop_wait': 10,
         'set_acls': {
             'CN=principal2': ['ALL']
         }
     })