Fix unittest.
This commit is contained in:
@@ -281,11 +281,13 @@ class TestKeystoneUtils(CharmTestCase):
|
|||||||
self.relation_set.assert_called_with(relation_id=relation_id,
|
self.relation_set.assert_called_with(relation_id=relation_id,
|
||||||
**filtered)
|
**filtered)
|
||||||
|
|
||||||
|
@patch('charmhelpers.contrib.openstack.ip.config')
|
||||||
@patch.object(utils, 'ensure_valid_service')
|
@patch.object(utils, 'ensure_valid_service')
|
||||||
@patch.object(utils, 'add_endpoint')
|
@patch.object(utils, 'add_endpoint')
|
||||||
@patch.object(manager, 'KeystoneManager')
|
@patch.object(manager, 'KeystoneManager')
|
||||||
def test_add_service_to_keystone_nosubset(
|
def test_add_service_to_keystone_nosubset(
|
||||||
self, KeystoneManager, add_endpoint, ensure_valid_service):
|
self, KeystoneManager, add_endpoint, ensure_valid_service,
|
||||||
|
ip_config):
|
||||||
relation_id = 'identity-service:0'
|
relation_id = 'identity-service:0'
|
||||||
remote_unit = 'unit/0'
|
remote_unit = 'unit/0'
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user