trivial: Resolve "X is renamed to Y" warnings

These were introduced by various oslo libraries.

Change-Id: I0ee0e7814e4cccbc9d7660664b5f25099b540929
This commit is contained in:
Stephen Finucane 2018-01-26 15:57:05 +00:00
parent 9185e31c9a
commit 33f544e30f
2 changed files with 2 additions and 2 deletions

View File

@ -8599,7 +8599,7 @@ class ComputeAPITestCase(BaseTestCase):
def test_populate_instance_for_create_encrypted(self, num_instances=1):
CONF.set_override('enabled', True,
group='ephemeral_storage_encryption')
CONF.set_override('api_class',
CONF.set_override('backend',
'castellan.tests.unit.key_manager.mock_key_manager.'
'MockKeyManager',
group='key_manager')

View File

@ -152,7 +152,7 @@ class TestNeutronDriver(test.NoDBTestCase):
with mock.patch.object(neutronv20, 'find_resourceid_by_name_or_id',
return_value=expected_sg_id):
observed_sg = sg_api.get(self.context, name=sg_name)
expected_sg['security_group']['project_id'] = self.context.tenant
expected_sg['security_group']['project_id'] = self.context.project_id
del expected_sg['security_group']['tenant_id']
self.assertEqual(expected_sg['security_group'], observed_sg)
self.mocked_client.show_security_group.assert_called_once_with(