mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
Don't mock get_dcs() for ZK, we are trying to test it
This commit is contained in:
+2
-4
@@ -390,10 +390,8 @@ leader''')
|
||||
|
||||
@patch('patroni.ctl.load_config', Mock(return_value={'dcs': {'scheme': 'zookeeper', 'hostname': 'localhost', 'port': 2181}}))
|
||||
def test_zookeeper(self):
|
||||
with patch('patroni.ctl.get_dcs', Mock(return_value=self.zk)):
|
||||
self.runner.invoke(ctl, ['list'])
|
||||
self.runner.invoke(ctl, ['list'])
|
||||
|
||||
@patch('patroni.ctl.load_config', Mock(return_value={'dcs': {'scheme': 'exhibitor', 'hostname': 'localhost', 'port': 8181}}))
|
||||
def test_exhibitor(self):
|
||||
with patch('patroni.ctl.get_dcs', Mock(return_value=self.zk)):
|
||||
self.runner.invoke(ctl, ['list'])
|
||||
self.runner.invoke(ctl, ['list'])
|
||||
|
||||
Reference in New Issue
Block a user