res = self.dpldriver.initialize_connection(DATA_IN_VOLUME,
DATA_IN_CONNECTOR)
self.assertEqual('iscsi', res['driver_volume_type'])
- self.assertEqual('101', res['data']['target_lun'])
+ self.assertEqual(101, res['data']['target_lun'])
self.assertTrue(res['data']['target_discovered'])
self.assertEqual('172.31.1.210:3260', res['data']['target_portal'])
self.assertEqual(
properties['target_portal'] = tgportal
break
properties['target_lun'] = \
- assign[connector['initiator'].lower()]
+ int(assign[connector['initiator'].lower()])
break
if properties['target_portal'] != '':
if properties['target_portal'] != '':
properties['target_lun'] = \
- tgInfo['logical_unit_number']
+ int(tgInfo['logical_unit_number'])
properties['target_iqn'] = \
tgInfo['target_identifier']
break