Merge "Add "sort" in policy binding list"

This commit is contained in:
Jenkins 2016-11-15 12:24:54 +00:00 committed by Gerrit Code Review
commit cd2cf0b5c7
2 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class ClusterPolicy(resource.Resource):
allow_get = True
_query_mapping = resource.QueryParameters(
'policy_name', 'policy_type', is_enabled='enabled')
'sort', 'policy_name', 'policy_type', is_enabled='enabled')
# Properties
#: ID of the policy object.

View File

@ -44,6 +44,7 @@ class TestClusterPolicy(testtools.TestCase):
self.assertDictEqual({"policy_name": "policy_name",
"policy_type": "policy_type",
"is_enabled": "enabled",
"sort": "sort",
"limit": "limit",
"marker": "marker"},
sot._query_mapping._mapping)