diff options
| author | Simon Merrick <simonmerrick@catalyst.net.nz> | 2020-11-19 20:05:54 +1300 |
|---|---|---|
| committer | Simon Merrick <simonmerrick@catalyst.net.nz> | 2020-11-25 21:25:22 +1300 |
| commit | 5bdcd590ecacbc0aa8db2cbafa0ab1a9f3c28ce0 (patch) | |
| tree | 4d6fd5fddc9247cf89f0eaf2e74387f6018e686f /openstackclient/tests/unit/image | |
| parent | 7146deef00d6a91e3c588acc8fc614e5597b3f76 (diff) | |
| download | python-openstackclient-5bdcd590ecacbc0aa8db2cbafa0ab1a9f3c28ce0.tar.gz | |
stop image downloads to memory
+ Fixes issue with large images hogging memory
+ stream image downloads
+ output to stdout if file not specified
Change-Id: Ia01ff9b21a2dac5d0ccf2bd58a8640e88c5cbb36
Story: 2007672
Task: 39776
Diffstat (limited to 'openstackclient/tests/unit/image')
| -rw-r--r-- | openstackclient/tests/unit/image/v2/test_image.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openstackclient/tests/unit/image/v2/test_image.py b/openstackclient/tests/unit/image/v2/test_image.py index b094817e..80e60ee8 100644 --- a/openstackclient/tests/unit/image/v2/test_image.py +++ b/openstackclient/tests/unit/image/v2/test_image.py @@ -1618,7 +1618,7 @@ class TestImageSave(TestImage): verifylist = [ ('file', '/path/to/file'), - ('image', self.image.id) + ('image', self.image.id), ] parsed_args = self.check_parser(self.cmd, arglist, verifylist) @@ -1626,6 +1626,7 @@ class TestImageSave(TestImage): self.client.download_image.assert_called_once_with( self.image.id, + stream=True, output='/path/to/file') |
