if url == "lun/count?TYPE=11&ASSOCIATEOBJTYPE=256&"\
"ASSOCIATEOBJID=11":
- data = """{"data":{"COUNT":"7"},
+ data = """{"data":{"COUNT":7},
"error":{"code":0,"description":"0"}}"""
if url == "lungroup/associate?TYPE=256&ASSOCIATEOBJTYPE=11&"\
uuid_str = name.replace("-", "")
vol_uuid = uuid.UUID('urn:uuid:%s' % uuid_str)
vol_encoded = base64.urlsafe_b64encode(vol_uuid.bytes)
+ if six.PY3:
+ vol_encoded = vol_encoded.decode('ascii')
newuuid = vol_encoded.replace("=", "")
return newuuid
logininfo[key] = base64.b64decode(node_text[4:])
else:
logininfo[key] = node_text
- node.text = '!$$$' + base64.b64encode(node_text)
+ if six.PY3:
+ node_b64 = node_text.encode('utf-8')
+ node_b64 = base64.b64encode(node_b64)
+ node_b64 = node_b64.decode('ascii')
+ node.text = '!$$$' + node_b64
+ else:
+ node.text = '!$$$' + base64.b64encode(node_text)
need_encode = True
if need_encode:
self._change_file_mode(filename)
cinder.tests.unit.test_hitachi_hbsd_snm2_iscsi \
cinder.tests.unit.test_hp_xp_fc \
cinder.tests.unit.test_hplefthand \
+ cinder.tests.unit.test_huawei_18000 \
cinder.tests.unit.test_huawei_drivers_compatibility \
cinder.tests.unit.test_ibm_xiv_ds8k \
cinder.tests.unit.test_infortrend_cli \