summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJian Wen <wenjianhn@gmail.com>2012-08-29 22:29:25 +0800
committerJian Wen <wenjianhn@gmail.com>2012-08-29 22:37:25 +0800
commitf94391fb41b42909ae9508ed54316199fccfe41d (patch)
tree5535c2b2aad6f1b2774fea2b9e443f8b697e3684 /nova/tests
parent20c6bb6c9000fa0d193f688b668f5f3eeda8fb05 (diff)
Add a new exception for live migration.
Raises new exception InvalidLocalStorage instead of InvalidSharedStorage when block migration is used with shared storage. Corrects the message of InvalidSharedStorage. Fixes bug 1043165 Change-Id: I68bfac3f89276edc38c00ca963911fe07456dc0d
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_libvirt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/tests/test_libvirt.py b/nova/tests/test_libvirt.py
index 885cf7e83..0932443cd 100644
--- a/nova/tests/test_libvirt.py
+++ b/nova/tests/test_libvirt.py
@@ -1762,7 +1762,7 @@ class LibvirtConnTestCase(test.TestCase):
conn._check_shared_storage_test_file("file").AndReturn(True)
self.mox.ReplayAll()
- self.assertRaises(exception.InvalidSharedStorage,
+ self.assertRaises(exception.InvalidLocalStorage,
conn.check_can_live_migrate_source,
self.context, instance_ref, dest_check_data)