summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSoren Hansen <soren@linux2go.dk>2011-07-24 06:30:59 -0700
committerSoren Hansen <soren@linux2go.dk>2011-07-24 06:30:59 -0700
commita943c01dd56169270e1986ce62ae99f16ee4abe3 (patch)
tree8dc5c3da61a2e0c953cfee01fd40437dad94ad02
parent5961aa33f01db7503beeab4fabafb8e0d9ef6a3e (diff)
Make IP allocation test work again.
-rw-r--r--nova/tests/test_network.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/tests/test_network.py b/nova/tests/test_network.py
index b09021e13..9e021feea 100644
--- a/nova/tests/test_network.py
+++ b/nova/tests/test_network.py
@@ -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')