]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Limit ram and disk used by ceph backup tests
authorAlex Meade <mr.alex.meade@gmail.com>
Mon, 2 Feb 2015 21:18:15 +0000 (16:18 -0500)
committerAlex Meade <mr.alex.meade@gmail.com>
Mon, 9 Feb 2015 18:32:30 +0000 (18:32 +0000)
The test_discard_bytes test in
cinder/tests/test_backup_ceph.py uses a lot of
ram and disk space since it tests the ceph driver with
the default chunk size of 128Mi. This patch lowers it
to use 1024 bytes instead.

Closes-bug: #1417293

Change-Id: I387650bc5ffe57ad8a4cacd1fca5d039fec38eed

cinder/tests/test_backup_ceph.py

index 2e6ea938ae1a29f2f263f01cfcb629d95b0be70a..fbcf270bb70b4003886d296b4cd858388fb2dbb0 100644 (file)
@@ -643,6 +643,8 @@ class BackupCephTestCase(test.TestCase):
 
     @common_mocks
     def test_discard_bytes(self):
+        # Lower the chunksize to a memory managable number
+        self.service.chunk_size = 1024
         image = self.mock_rbd.Image.return_value
         wrapped_rbd = self._get_wrapped_rbd_io(image)