Make timestamp setting to be consistent in test loop
This is a kind of the follow-up patch https://review.openstack.org/#/c/419579 And I'd address one more my mistake with this patch, that is inconsistent timestamp setting between test_GET_limit_marker_json and test_GET_limit_marker_xml Change-Id: Ia2e0c62c6146c0d79c7de2de82fe13ec4dd98165
This commit is contained in:
parent
dcb432b176
commit
4a2adfe453
@ -1143,14 +1143,15 @@ class TestAccountController(unittest.TestCase):
|
||||
'HTTP_X_TIMESTAMP': '0'})
|
||||
req.get_response(self.controller)
|
||||
for c in range(5):
|
||||
put_timestamp = normalize_timestamp(c + 1)
|
||||
req = Request.blank(
|
||||
'/sda1/p/a/c%d' % c,
|
||||
environ={'REQUEST_METHOD': 'PUT'},
|
||||
headers={'X-Put-Timestamp': str(c + 1),
|
||||
headers={'X-Put-Timestamp': put_timestamp,
|
||||
'X-Delete-Timestamp': '0',
|
||||
'X-Object-Count': '2',
|
||||
'X-Bytes-Used': '3',
|
||||
'X-Timestamp': normalize_timestamp(c)})
|
||||
'X-Timestamp': put_timestamp})
|
||||
req.get_response(self.controller)
|
||||
req = Request.blank('/sda1/p/a?limit=3&format=xml',
|
||||
environ={'REQUEST_METHOD': 'GET'})
|
||||
|
Loading…
x
Reference in New Issue
Block a user