def setUp(self): self.zk = ZooKeeper({ 'hosts': ['localhost:2181'], 'scope': 'test', 'name': 'foo', 'ttl': 30, 'retry_timeout': 10 })
def setUp(self): self.zk = ZooKeeper( 'foo', { 'exhibitor': { 'hosts': ['localhost', 'exhibitor'], 'port': 8181 }, 'scope': 'test' })
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'] } })