Make IP allocation test work again.
This commit is contained in:
@@ -216,7 +216,11 @@ class VlanNetworkTestCase(test.TestCase):
|
|||||||
self.mox.StubOutWithMock(db, 'fixed_ip_update')
|
self.mox.StubOutWithMock(db, 'fixed_ip_update')
|
||||||
self.mox.StubOutWithMock(db,
|
self.mox.StubOutWithMock(db,
|
||||||
'virtual_interface_get_by_instance_and_network')
|
'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(),
|
db.fixed_ip_associate_pool(mox.IgnoreArg(),
|
||||||
mox.IgnoreArg(),
|
mox.IgnoreArg(),
|
||||||
mox.IgnoreArg()).AndReturn('192.168.0.1')
|
mox.IgnoreArg()).AndReturn('192.168.0.1')
|
||||||
|
|||||||
Reference in New Issue
Block a user