Merge "Improve error message on volume tests failure"
This commit is contained in:
@@ -73,9 +73,13 @@ class VolumesV2ListTestJSON(base.BaseVolumeTest):
|
||||
val0 = fetched_volume[0][sort_key]
|
||||
val1 = fetched_volume[1][sort_key]
|
||||
if sort_dir == 'asc':
|
||||
self.assertLess(val0, val1, "%s < %s" % (val0, val1))
|
||||
self.assertLess(val0, val1,
|
||||
"list is not in asc order with sort_key: %s."
|
||||
" %s" % (sort_key, fetched_volume))
|
||||
elif sort_dir == 'desc':
|
||||
self.assertGreater(val0, val1, "%s > %s" % (val0, val1))
|
||||
self.assertGreater(val0, val1,
|
||||
"list is not in desc order with sort_key: "
|
||||
"%s. %s" % (sort_key, fetched_volume))
|
||||
|
||||
_list_details_with_multiple_params()
|
||||
_list_details_with_multiple_params(sort_dir='desc')
|
||||
|
||||
Reference in New Issue
Block a user