]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Port HP 3PAR driver to Python 3
authorVictor Stinner <vstinner@redhat.com>
Thu, 5 Nov 2015 15:22:11 +0000 (16:22 +0100)
committerVictor Stinner <vstinner@redhat.com>
Mon, 16 Nov 2015 08:58:21 +0000 (09:58 +0100)
commit3e002b57c30a0a58aa3b3a36e1fd9a06b251fc43
tree8b869a9a6e9091d669f032ad93f54128689c004a
parenta61b0e6c22869992f9be594be2b050504a220bb8
Port HP 3PAR driver to Python 3

* Use oslo_serialization.base64.encode_as_text() to get Unicode on
  Python 3.
* Replace sys.maxint with sys.maxsize, sys.maxint was removed in
  Python 3.
* test_hpe3par: use list(set()) to get FCWWNs is the right order. On
  Python 3, the hash function is randomized by default.
* test_hpe3par: fix client getWsApiVersion() to return a valid
  version. Before, the comparison between mock.Mock and int raised a
  TypeError.
* hpe_3par_common: set version to 3.0.2
* hpe_3par_iscsi: set version to 3.0.1
* tox.ini: add test_hpe3par to Python 3.4

Partial-Implements: blueprint cinder-python3
Change-Id: I2bed171c0db93b8ea83127a69a63c3bb2317b10b
cinder/tests/unit/test_hpe3par.py
cinder/volume/drivers/hpe/hpe_3par_common.py
cinder/volume/drivers/hpe/hpe_3par_iscsi.py
tests-py3.txt