def test_ha_relation_changed(self, ks_joined, image_joined): self.relation_get.return_value = True self.relation_ids.side_effect = [['identity:0'], ['image:1']] relations.ha_relation_changed() ks_joined.assert_called_with('identity:0') image_joined.assert_called_with('image:1')
def test_ha_relation_changed_not_clustered(self): self.relation_get.return_value = False relations.ha_relation_changed() self.juju_log.assert_called_with( 'ha_changed: hacluster subordinate is not fully clustered.')
def test_ha_relation_changed_not_clustered(self): self.relation_get.return_value = False relations.ha_relation_changed() self.juju_log.assert_called_with( 'ha_changed: hacluster subordinate is not fully clustered.' )