]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Port dothill to Python 3
authorVictor Stinner <vstinner@redhat.com>
Mon, 29 Jun 2015 13:33:12 +0000 (15:33 +0200)
committerVictor Stinner <vstinner@redhat.com>
Wed, 1 Jul 2015 08:50:58 +0000 (10:50 +0200)
commit6b93625a3d7e3085bab0246ae4d0fb46b6af7e98
tree7a9be6d08f497cc7e4da6e6d7cbc04a557e98551
parent0330f251ce87e2dce4c8535780e87adb1a47c0eb
Port dothill to Python 3

* Replace urllib2 with six.moves.urllib
* On Python 3, encode string to UTF-8 to hash it using MD5
* On Python 3, decode base64 from ASCII to get Unicode
* Replace "pattern in exc" with "pattern in exc.args"
* test_initialize_connection(): fix get_active_iscsi_target_portals()
  mock. Use the return_value attribute to return a dictionary, instead
  of returning a single IP address.
* tox.ini: add cinder.tests.unit.test_dothill to Python 3.4

Blueprint cinder-python3
Change-Id: Ib20bca813c2352eae447c374ded75c6dafb2e18d
cinder/tests/unit/test_dothill.py
cinder/volume/drivers/dothill/dothill_client.py
cinder/volume/drivers/dothill/dothill_common.py
tox.ini