Merge "Add sorting to the "in list filter" test"

This commit is contained in:
Zuul 2018-11-14 16:31:02 +00:00 committed by Gerrit Code Review
commit b4d7a2ca51
1 changed files with 2 additions and 1 deletions

View File

@ -165,10 +165,11 @@ class ActionTestsV2(base.TestCase):
_, body = self.client.get_object('actions', created_acts[0])
time = body['created_at']
resp, body = self.client.get_list_obj(
'actions?created_at=in:' + time.replace(' ', '%20'))
'actions?sort_keys=name&created_at=in:' + time.replace(' ', '%20'))
self.assertEqual(200, resp.status)
action_names = [action['name'] for action in body['actions']]
created_acts.sort()
self.assertListEqual(created_acts, action_names)
@decorators.attr(type='smoke')