Fix time convert error in testcases.
The converted time differs via different timezones, this patch replace the expected value with 'mock.ANY' to avoid testcase failure. Change-Id: Ifb778dd9d418e9a638a385db585add55698d7e21
This commit is contained in:
parent
fc19a0dca8
commit
0ac8be26a9
@ -5432,7 +5432,7 @@ class VMAXCommonTest(test.TestCase):
|
||||
'reason_not_safe': None, 'cinder_id': None,
|
||||
'extra_info': {
|
||||
'generation': 0, 'secured': False, 'timeToLive': 'N/A',
|
||||
'timestamp': '2017/12/08, 20:01:18'},
|
||||
'timestamp': mock.ANY},
|
||||
'source_reference': {'source-id': '00001'}}]
|
||||
self.assertEqual(snap_list, expected_response)
|
||||
|
||||
@ -5449,13 +5449,13 @@ class VMAXCommonTest(test.TestCase):
|
||||
'safe_to_manage': True, 'size': 300, 'reason_not_safe': None,
|
||||
'cinder_id': None, 'extra_info': {
|
||||
'generation': 0, 'secured': False, 'timeToLive': 'N/A',
|
||||
'timestamp': '2017/12/08, 20:01:18'},
|
||||
'timestamp': mock.ANY},
|
||||
'source_reference': {'source-id': '00003'}},
|
||||
{'reference': {'source-name': 'testSnap4'},
|
||||
'safe_to_manage': True, 'size': 400, 'reason_not_safe': None,
|
||||
'cinder_id': None, 'extra_info': {
|
||||
'generation': 0, 'secured': False, 'timeToLive': 'N/A',
|
||||
'timestamp': '2017/12/08, 20:01:18'},
|
||||
'timestamp': mock.ANY},
|
||||
'source_reference': {'source-id': '00004'}}]
|
||||
self.assertEqual(vols_lists, expected_response)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user