Identity: Support options
property for roles
Change-Id: I09bff2ce926d253a0e065b225556b2496b57e655
This commit is contained in:
parent
6dcde9d82a
commit
91dbb4c9f3
@ -35,5 +35,8 @@ class Role(resource.Resource):
|
||||
description = resource.Body('description')
|
||||
#: References the domain ID which owns the role. *Type: string*
|
||||
domain_id = resource.Body('domain_id')
|
||||
#: The resource options for the role. Available resource options are
|
||||
#: immutable.
|
||||
options = resource.Body('options', type=dict)
|
||||
#: The links for the service resource.
|
||||
links = resource.Body('links')
|
||||
|
@ -21,6 +21,7 @@ EXAMPLE = {
|
||||
'name': '2',
|
||||
'description': 'test description for role',
|
||||
'domain_id': 'default',
|
||||
'options': {'immutable': True},
|
||||
}
|
||||
|
||||
|
||||
@ -54,3 +55,4 @@ class TestRole(base.TestCase):
|
||||
self.assertEqual(EXAMPLE['name'], sot.name)
|
||||
self.assertEqual(EXAMPLE['description'], sot.description)
|
||||
self.assertEqual(EXAMPLE['domain_id'], sot.domain_id)
|
||||
self.assertEqual(EXAMPLE['options'], sot.options)
|
||||
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Add support for `options` property for roles in identity.
|
Loading…
Reference in New Issue
Block a user