Skip to content

Commit

Permalink
Merge "Tests: Fix Storwize hash randomization failure"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Dec 6, 2017
2 parents f77d9d9 + 6b34450 commit f4a7f70
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cinder/tests/unit/volume/drivers/ibm/test_storwize_svc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3032,6 +3032,17 @@ def test_storwize_initialize_iscsi_connection_multipath(self):
ret['driver_volume_type'])

# Check the multipath host-volume map return value
# target_iqns and target_portals have no guaranteed order
six.assertCountEqual(self,
exp_m_path['data']['target_iqns'],
ret['data']['target_iqns'])
del exp_m_path['data']['target_iqns']

six.assertCountEqual(self,
exp_m_path['data']['target_portals'],
ret['data']['target_portals'])
del exp_m_path['data']['target_portals']

for k, v in exp_m_path['data'].items():
self.assertEqual(v, ret['data'][k])

Expand Down

0 comments on commit f4a7f70

Please sign in to comment.