Merge "Ensure that uuid is returned with mocked instance"

This commit is contained in:
Jenkins
2013-07-26 16:08:52 +00:00
committed by Gerrit Code Review
+6 -3
View File
@@ -331,7 +331,8 @@ class FlatNetworkTestCase(test.TestCase):
fixed_ips=mox.IgnoreArg()).AndReturn(None)
db.instance_get_by_uuid(self.context,
mox.IgnoreArg()).AndReturn({'display_name': HOST})
mox.IgnoreArg()).AndReturn({'display_name': HOST,
'uuid': FAKEUUID})
db.network_get(mox.IgnoreArg(),
mox.IgnoreArg(),
@@ -374,7 +375,8 @@ class FlatNetworkTestCase(test.TestCase):
fixed_ips=mox.IgnoreArg()).AndReturn(None)
db.instance_get_by_uuid(self.context,
mox.IgnoreArg()).AndReturn({'display_name': HOST})
mox.IgnoreArg()).AndReturn({'display_name': HOST,
'uuid': FAKEUUID})
db.network_get_by_uuid(mox.IgnoreArg(),
mox.IgnoreArg()).AndReturn(networks[0])
@@ -461,7 +463,8 @@ class FlatNetworkTestCase(test.TestCase):
fixed_ips=mox.IgnoreArg()).AndReturn(None)
db.instance_get_by_uuid(self.context,
mox.IgnoreArg()).AndReturn({'display_name': HOST})
mox.IgnoreArg()).AndReturn({'display_name': HOST,
'uuid': FAKEUUID})
db.network_get_by_uuid(mox.IgnoreArg(),
mox.IgnoreArg()).AndReturn(networks[0])