Merge "Call get_instance_nw_info with elevated context, as documented in nova/network/manager.py"

This commit is contained in:
Jenkins
2011-12-16 22:46:48 +00:00
committed by Gerrit Code Review

View File

@@ -1868,7 +1868,8 @@ class ComputeAPITestCase(BaseTestCase):
nw_info = fake_network.fake_get_instance_nw_info(self.stubs, 1)
def fake_get_nw_info(self, ctxt, instance):
def fake_get_nw_info(cls, ctxt, instance):
self.assertTrue(ctxt.is_admin)
return nw_info
self.stubs.Set(nova.network.API, 'associate_floating_ip',