summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2012-02-14 09:03:18 -0800
committerVishvananda Ishaya <vishvananda@gmail.com>2012-02-15 16:30:39 -0800
commite48c252467b280986660d5ea8ed618f1ccf08d5d (patch)
treee92c9880d2912d2c86d15a9a83d6a148028814bd /nova/tests
parent3e1cff368a6445ea3ae176dcab6fd485c9280ad0 (diff)
Create a flag for force_to_raw for images
* Allows for deployers to use compressed images if they prefer * Flag defaults to current behavior * Fixes bug 932180 * Re-enables fetch_to_raw which was being skipped * Removes obsolete and broken method from libvirt * Checksumming will be re-enabled in a later patch Change-Id: I40c33cfd3997cae8d127fa45f8cf0aa071418170
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_libvirt.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/tests/test_libvirt.py b/nova/tests/test_libvirt.py
index 2eede7ed5..8a54c3e3b 100644
--- a/nova/tests/test_libvirt.py
+++ b/nova/tests/test_libvirt.py
@@ -1975,14 +1975,14 @@ disk size: 4.4M''', ''))
self.assertEquals(4096000, fs_info['used'])
def test_fetch_image(self):
- self.mox.StubOutWithMock(images, 'fetch')
+ self.mox.StubOutWithMock(images, 'fetch_to_raw')
context = 'opaque context'
target = '/tmp/targetfile'
image_id = '4'
user_id = 'fake'
project_id = 'fake'
- images.fetch(context, image_id, target, user_id, project_id)
+ images.fetch_to_raw(context, image_id, target, user_id, project_id)
self.mox.ReplayAll()
libvirt_utils.fetch_image(context, target, image_id,