]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Port EMC scaleio to Python 3
authorVictor Stinner <vstinner@redhat.com>
Wed, 7 Oct 2015 15:57:00 +0000 (17:57 +0200)
committerVictor Stinner <vstinner@redhat.com>
Wed, 7 Oct 2015 21:13:45 +0000 (23:13 +0200)
commitc4f8f885d47375c4febcb96e7ee8f3189050cc81
tree16a7fff4cc29c065359562e198765a2f09f19d3f
parenta37618f55b44d8ffc5740632d251d8c53c348418
Port EMC scaleio to Python 3

* Import urllib modules using six.moves.urllib
* MockHTTPSResponse: encode HTTP body to UTF-8 if it's Unicode,
  replace six.string_types with (bytes, six.text_type).
* _id_to_base64(): catch also binascii.Error when calling
  b16decode(); encode name to UTF-8 before calling b64encode();
  decode b64encode() from ASCII on Python 3 to get Unicode.
* tox.ini: add cinder.tests.unit.volume.drivers.emc.scaleio
  to Python 3.4

Partial-Implements: blueprint cinder-python3
Change-Id: I93353d48f80971528f47c9291cd04e198632dd0b
cinder/tests/unit/volume/drivers/emc/scaleio/mocks.py
cinder/tests/unit/volume/drivers/emc/scaleio/test_create_cloned_volume.py
cinder/tests/unit/volume/drivers/emc/scaleio/test_create_snapshot.py
cinder/tests/unit/volume/drivers/emc/scaleio/test_create_volume_from_snapshot.py
cinder/tests/unit/volume/drivers/emc/scaleio/test_delete_snapshot.py
cinder/tests/unit/volume/drivers/emc/scaleio/test_delete_volume.py
cinder/tests/unit/volume/drivers/emc/scaleio/test_extend_volume.py
cinder/tests/unit/volume/drivers/emc/scaleio/test_misc.py
cinder/volume/drivers/emc/scaleio.py
tests-py3.txt