HA tests assume the default role as replica.

This commit is contained in:
Oleksii Kliukin
2016-04-15 10:08:31 +02:00
parent 0de3a6ece4
commit c15c13876a
+1
View File
@@ -91,6 +91,7 @@ class TestHa(unittest.TestCase):
'data_dir': 'data/postgresql0', 'superuser': {}, 'admin': {},
'replication': {'username': '', 'password': '', 'network': ''}})
self.p.set_state('running')
self.p.set_role('replica')
self.p.check_replication_lag = true
self.p.can_create_replica_without_replication_connection = MagicMock(return_value=False)
self.e = Etcd('foo', {'ttl': 30, 'host': 'ok:2379', 'scope': 'test'})