Make IP allocation test work again.

This commit is contained in:
Soren Hansen
2011-07-24 06:30:59 -07:00
parent b8380e249d
commit 1be71c8d5e

View File

@@ -216,7 +216,11 @@ class VlanNetworkTestCase(test.TestCase):
self.mox.StubOutWithMock(db, 'fixed_ip_update')
self.mox.StubOutWithMock(db,
'virtual_interface_get_by_instance_and_network')
self.mox.StubOutWithMock(db, 'instance_get')
db.instance_get(mox.IgnoreArg(),
mox.IgnoreArg()).AndReturn({ 'security_groups':
[ { 'id': 0 } ] })
db.fixed_ip_associate_pool(mox.IgnoreArg(),
mox.IgnoreArg(),
mox.IgnoreArg()).AndReturn('192.168.0.1')