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
@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)