# Check that the initiator_target_map is as expected
term_data = {'driver_volume_type': 'fibre_channel',
'data': {'initiator_target_map':
- {'ff00000000000000': ['AABBCCDDEEFF0011'],
- 'ff00000000000001': ['AABBCCDDEEFF0011']}
+ {'ff00000000000000': ['5005076802432ADE',
+ '5005076802332ADE',
+ '5005076802532ADE',
+ '5005076802232ADE',
+ '5005076802132ADE',
+ '5005086802132ADE',
+ '5005086802332ADE',
+ '5005086802532ADE',
+ '5005086802232ADE',
+ '5005086802432ADE'],
+ 'ff00000000000001': ['5005076802432ADE',
+ '5005076802332ADE',
+ '5005076802532ADE',
+ '5005076802232ADE',
+ '5005076802132ADE',
+ '5005086802132ADE',
+ '5005086802332ADE',
+ '5005086802532ADE',
+ '5005086802232ADE',
+ '5005086802432ADE']}
}
}
- self.assertEqual(term_data, term_ret)
+ self.assertItemsEqual(term_data, term_ret)
def test_storwize_svc_fc_host_maps(self):
# Create two volumes to be used in mappings
"target map."))
# Build info data structure for zone removing
if 'wwpns' in connector and host_name:
- target_wwpns = self._helpers.get_conn_fc_wwpns(host_name)
+ target_wwpns = []
+ # Returning all target_wwpns in storage_nodes, since
+ # we cannot determine which wwpns are logged in during
+ # a VM deletion.
+ for node in self._state['storage_nodes'].values():
+ target_wwpns.extend(node['WWPN'])
init_targ_map = (self._make_initiator_target_map
(connector['wwpns'],
target_wwpns))