summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-04-29 21:46:07 +0000
committerGerrit Code Review <review@openstack.org>2013-04-29 21:46:07 +0000
commit06e00675348cf40bb46c18edc2069ccab1cb7698 (patch)
treedd9d69281e4c583f1aabe724327dbc60aa1c4994 /nova/tests
parent83f71e2181d197ab5a63be8012581bca6a84adb4 (diff)
parent5fb947208e7141e572d7e2e95165c715f23b5fda (diff)
Merge "Destroy conntrack table on source host during migration"
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/network/test_manager.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/nova/tests/network/test_manager.py b/nova/tests/network/test_manager.py
index fd70e1584..74015526e 100644
--- a/nova/tests/network/test_manager.py
+++ b/nova/tests/network/test_manager.py
@@ -2148,6 +2148,10 @@ class FloatingIPTestCase(test.TestCase):
network):
called['count'] += 1
+ def fake_clean_conntrack(fixed_ip):
+ if not fixed_ip == "10.0.0.2":
+ raise exception.FixedIpInvalid(address=fixed_ip)
+
def fake_floating_ip_update(context, address, args):
pass
@@ -2160,6 +2164,8 @@ class FloatingIPTestCase(test.TestCase):
fake_floating_ip_update)
self.stubs.Set(self.network.l3driver, 'remove_floating_ip',
fake_remove_floating_ip)
+ self.stubs.Set(self.network.l3driver, 'clean_conntrack',
+ fake_clean_conntrack)
self.mox.ReplayAll()
addresses = ['172.24.4.23', '172.24.4.24', '172.24.4.25']
self.network.migrate_instance_start(self.context,