Merge "Add "sort" in policy binding list"
This commit is contained in:
commit
cd2cf0b5c7
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user