Add dummy cluster name to test_ctl / zookeeper

This commit is contained in:
Oleksandr Shulgin
2016-02-23 17:33:15 +01:00
parent 524cfafbbe
commit 16b321e0a5
+2 -2
View File
@@ -390,8 +390,8 @@ leader''')
@patch('patroni.ctl.load_config', Mock(return_value={'dcs': {'scheme': 'zookeeper', 'hostname': 'localhost', 'port': 2181}}))
def test_zookeeper(self):
self.runner.invoke(ctl, ['list'])
self.runner.invoke(ctl, ['list', 'foo'])
@patch('patroni.ctl.load_config', Mock(return_value={'dcs': {'scheme': 'exhibitor', 'hostname': 'localhost', 'port': 8181}}))
def test_exhibitor(self):
self.runner.invoke(ctl, ['list'])
self.runner.invoke(ctl, ['list', 'foo'])