From 7b641e9c07a0dc1a1f0312dc8b96c8f14b501633 Mon Sep 17 00:00:00 2001 From: Yaguang Tang Date: Sun, 6 May 2012 17:54:45 +0800 Subject: implement blueprint floating-ip-notification. add floating ip alloate/disalloate, associate/disassocaite notify events.change releative tests to make changes pass through. Change-Id: I77257528cd87da44ace896d65a4268a066ed888e --- nova/tests/network/test_manager.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'nova/tests') diff --git a/nova/tests/network/test_manager.py b/nova/tests/network/test_manager.py index c8d1851d6..de8779be1 100644 --- a/nova/tests/network/test_manager.py +++ b/nova/tests/network/test_manager.py @@ -552,7 +552,7 @@ class VlanNetworkTestCase(test.TestCase): is_admin=False) def fake1(*args, **kwargs): - return {'address': '10.0.0.1'} + return {'address': '10.0.0.1', 'project_id': ctxt.project_id} def fake2(*args, **kwargs): return 25 @@ -584,7 +584,8 @@ class VlanNetworkTestCase(test.TestCase): return {'address': '10.0.0.1', 'fixed_ip_id': 1} def fake3(*args, **kwargs): - return {'address': '10.0.0.1', 'fixed_ip_id': None} + return {'address': '10.0.0.1', 'fixed_ip_id': None, + 'project_id': ctxt.project_id} self.stubs.Set(self.network.db, 'floating_ip_deallocate', fake1) self.stubs.Set(self.network, '_floating_ip_owned_by_project', fake1) @@ -740,7 +741,8 @@ class VlanNetworkTestCase(test.TestCase): return {'address': '10.0.0.1', 'pool': 'nova', 'interface': 'eth0', - 'fixed_ip_id': 1} + 'fixed_ip_id': 1, + 'project_id': ctxt.project_id} # fixed ip with remote host def fake4(*args, **kwargs): -- cgit