Merge "Add "sort" in policy binding list"
This commit is contained in:
commit
cd2cf0b5c7
openstack
@ -25,7 +25,7 @@ class ClusterPolicy(resource.Resource):
|
|||||||
allow_get = True
|
allow_get = True
|
||||||
|
|
||||||
_query_mapping = resource.QueryParameters(
|
_query_mapping = resource.QueryParameters(
|
||||||
'policy_name', 'policy_type', is_enabled='enabled')
|
'sort', 'policy_name', 'policy_type', is_enabled='enabled')
|
||||||
|
|
||||||
# Properties
|
# Properties
|
||||||
#: ID of the policy object.
|
#: ID of the policy object.
|
||||||
|
@ -44,6 +44,7 @@ class TestClusterPolicy(testtools.TestCase):
|
|||||||
self.assertDictEqual({"policy_name": "policy_name",
|
self.assertDictEqual({"policy_name": "policy_name",
|
||||||
"policy_type": "policy_type",
|
"policy_type": "policy_type",
|
||||||
"is_enabled": "enabled",
|
"is_enabled": "enabled",
|
||||||
|
"sort": "sort",
|
||||||
"limit": "limit",
|
"limit": "limit",
|
||||||
"marker": "marker"},
|
"marker": "marker"},
|
||||||
sot._query_mapping._mapping)
|
sot._query_mapping._mapping)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user