[Kimchi-devel] [kimchi-devel][PATCHv4 0/7] Upload storage volume
Crístian Deives
cristiandeives at gmail.com
Thu Apr 23 16:17:51 UTC 2015
"make check-local" fails with this patchset:
./tests/test_api.py:82:33: E128 continuation line under-indented for
visual indent
./tests/test_api.py:82:80: E501 line too long (90 > 79 characters)
./tests/test_api.py:83:33: E126 continuation line over-indented for
hanging indent
./tests/test_api.py:84:33: E126 continuation line over-indented for
hanging indent
./tests/test_api.py:85:33: E126 continuation line over-indented for
hanging indent
./tests/test_api.py:99:17: E127 continuation line over-indented for
visual indent
./tests/test_api.py:100:80: E501 line too long (102 > 79 characters)
./tests/test_model_storagevolume.py:201:80: E501 line too long (82 > 79
characters)
./tests/test_model_storagevolume.py:208:80: E501 line too long (83 > 79
characters)
./tests/test_model_storagevolume.py:213:80: E501 line too long (82 > 79
characters)
./tests/test_model_storagevolume.py:241:5: E303 too many blank lines (2)
On 22-04-2015 05:02, lvroyce at linux.vnet.ibm.com wrote:
> From: Royce Lv <lvroyce at linux.vnet.ibm.com>
>
> How to upload:
> POST /storagepools/<pool-name>/storagevolumes/
> {'capacity':size-of-the-volume,'name':name-of-the-volume,'format':'raw'}
> PUT /storagepools/<pool-name>/storagevolumes/<volume-name>
> {'chunk':chunk-data,'chunk_size':size-of-chunk,'index':index-of-the-chunk-of-uploaded-file}
>
> PATCH 7/7 is a script against real model server,
> you can use it to verify the logic of upload.
>
> Royce Lv (7):
> Update docs and json schema of storage volume upload
> Update controller to make update accept formdata params
> Add lock facility for storage volume upload
> Update model for storage volume update
> Fix incomplete record when uploading
> update test case for storage volume upload
> A test script against real model server
>
> docs/API.md | 7 ++-
> src/kimchi/API.json | 22 ++++++++
> src/kimchi/control/base.py | 6 +--
> src/kimchi/i18n.py | 4 ++
> src/kimchi/isoinfo.py | 5 +-
> src/kimchi/model/storagevolumes.py | 61 ++++++++++-----------
> src/kimchi/model/utils.py | 46 ++++++++++++++++
> tests/test_api.py | 108 +++++++++++++++++++++++++++++++++++++
> tests/test_model_storagevolume.py | 95 ++++++++++++++++++++++++--------
> 9 files changed, 291 insertions(+), 63 deletions(-)
> create mode 100644 tests/test_api.py
>
More information about the Kimchi-devel
mailing list