cinder/cinder/api/v2
Victor Stinner 30c0f79781 Port API v1 and v2 to Python 3
* Replace jsonutils.dumps() with jsonutils.dump_as_bytes() since
  output is used for the HTTP body, and HTTP body type is bytes, not
  Unicode. On Python 3, jsonutils.dumps() returns Unicode.
* FakeHttplibSocket: replace io.StringIO with io.BytesIO, HTTP body
  type is bytes. Encode Unicode to UTF-8.
* Fix FakeHttplibSocket.makefile() API: only the first parameter is
  mandatory. On Python 3, it's only called with the first 'mode'
  parameter.
* Use bytes strings to test HTTP bodies (JSON or XML).
* Replace dict.values() with list(dict.values()) to get a list on
  Python 3.
* Replace error.message with encodeutils.exception_to_unicode(error),
  exceptions loose their message attribute in Python 3.
* Update JSON serializer test in test_wsgi.py to use bytes.
* tests-py3.txt: add cinder.tests.unit.api.v1 and
  cinder.tests.unit.api.v2

Partial-Implements: blueprint cinder-python3
Change-Id: I0f0048f4a1344feaa3434cbf7ebd31e3f12d6ae4
2016-02-15 15:22:05 +01:00
..
views Merge "Add pagination support to volume type" 2016-01-21 00:37:58 +00:00
__init__.py adding copy of v1 as v2 2012-11-21 21:26:40 -08:00
limits.py Port API v1 and v2 to Python 3 2016-02-15 15:22:05 +01:00
router.py Use oslo.log instead of oslo-incubator 2015-03-11 21:45:04 -05:00
snapshot_metadata.py Validate outermost request body element name consistently 2015-06-18 23:16:48 -07:00
snapshots.py Port API v1 and v2 to Python 3 2016-02-15 15:22:05 +01:00
types.py Add pagination support to volume type 2016-01-05 19:48:21 +08:00
volume_metadata.py Volume status management during migration 2015-08-28 09:54:28 +08:00
volumes.py Added 'bootable volume' filter for non-admin user 2016-01-19 16:23:02 +00:00