summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-11-14 16:31:02 +0000
committerGerrit Code Review <review@openstack.org>2018-11-14 16:31:02 +0000
commitb4d7a2ca511e5592f253ba2c9334786afe4f0765 (patch)
tree7e0eb2e06de8070cbdd2230ae0393f686ed440d8
parent825f5d06a79cad3a94cee7e7523e513a9ac68358 (diff)
parentb63d95a5249aed3d98b43bf8bb38138d47738b0e (diff)
Merge "Add sorting to the "in list filter" test"
-rw-r--r--mistral_tempest_tests/tests/api/v2/test_actions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mistral_tempest_tests/tests/api/v2/test_actions.py b/mistral_tempest_tests/tests/api/v2/test_actions.py
index 0ee35df..3f21d1f 100644
--- a/mistral_tempest_tests/tests/api/v2/test_actions.py
+++ b/mistral_tempest_tests/tests/api/v2/test_actions.py
@@ -165,10 +165,11 @@ class ActionTestsV2(base.TestCase):
165 _, body = self.client.get_object('actions', created_acts[0]) 165 _, body = self.client.get_object('actions', created_acts[0])
166 time = body['created_at'] 166 time = body['created_at']
167 resp, body = self.client.get_list_obj( 167 resp, body = self.client.get_list_obj(
168 'actions?created_at=in:' + time.replace(' ', '%20')) 168 'actions?sort_keys=name&created_at=in:' + time.replace(' ', '%20'))
169 169
170 self.assertEqual(200, resp.status) 170 self.assertEqual(200, resp.status)
171 action_names = [action['name'] for action in body['actions']] 171 action_names = [action['name'] for action in body['actions']]
172 created_acts.sort()
172 self.assertListEqual(created_acts, action_names) 173 self.assertListEqual(created_acts, action_names)
173 174
174 @decorators.attr(type='smoke') 175 @decorators.attr(type='smoke')