Esempio n. 1
0
 def setUp(self):
     Consul({
         'ttl': 30,
         'scope': 't',
         'name': 'p',
         'url': 'https://l:1',
         'retry_timeout': 10,
         'verify': 'on',
         'key': 'foo',
         'cert': 'bar',
         'cacert': 'buz',
         'token': 'asd',
         'dc': 'dc1'
     })
     Consul({
         'ttl': 30,
         'scope': 't',
         'name': 'p',
         'url': 'https://l:1',
         'retry_timeout': 10,
         'verify': 'on',
         'cert': 'bar',
         'cacert': 'buz'
     })
     self.c = Consul({
         'ttl': 30,
         'scope': 'test',
         'name': 'postgresql1',
         'host': 'localhost:1',
         'retry_timeout': 10
     })
     self.c._base_path = '/service/good'
     self.c._load_cluster()
 def setUp(self):
     self.c = Consul({
         'ttl': 30,
         'scope': 'test',
         'name': 'postgresql1',
         'host': 'localhost:1',
         'retry_timeout': 10
     })
     self.c._base_path = '/service/good'
     self.c._load_cluster()
Esempio n. 3
0
 def setUp(self):
     self.c = Consul('postgresql1', {'ttl': 30, 'scope': 'test', 'host': 'localhost:1'})
     self.c._base_path = '/service/good'
     self.c._load_cluster()