Merge "Update compute API.get() stubs in test_access_ips"

This commit is contained in:
Zuul 2018-12-07 14:49:46 +00:00 committed by Gerrit Code Review
commit 4d8baef8dc

View File

@ -38,8 +38,9 @@ class AccessIPsAPIValidationTestV21(test.TestCase):
fakes.stub_out_nw_api(self)
self._set_up_controller()
fake.stub_out_image_service(self)
self.stub_out('nova.db.api.instance_get_by_uuid',
fakes.fake_instance_get())
self.stub_out('nova.compute.api.API.get',
# This project_id matches fakes.HTTPRequest.blank.
fakes.fake_compute_get(project_id='fake'))
self.stub_out('nova.objects.instance.Instance.save', fake_save)
self.stub_out('nova.compute.api.API.rebuild', fake_rebuild)