Identity: Support options property for roles

Change-Id: I09bff2ce926d253a0e065b225556b2496b57e655
This commit is contained in:
ArtofBugs 2024-09-16 15:15:26 -07:00 committed by Oria Weng
parent 6dcde9d82a
commit 91dbb4c9f3
3 changed files with 9 additions and 0 deletions

View File

@ -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')

View File

@ -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)

View File

@ -0,0 +1,4 @@
---
features:
- |
Add support for `options` property for roles in identity.