Add admin-role parameter value to identity relation
This parameter is added to the relation in order to configure service
tokens on related services. The role of the service user is required for
service token validation.
Closes-Bug: #1992840
Change-Id: Id7e84d38a9f774179808137548307c9174a87f87
(cherry picked from commit 55bd702224
)
This commit is contained in:
parent
1b940a1102
commit
70ef4f388a
|
@ -2201,6 +2201,7 @@ def add_service_to_keystone(relation_id=None, remote_unit=None):
|
|||
"admin_domain_id": leader_get(attribute='admin_domain_id'),
|
||||
"admin_project_id": admin_project_id,
|
||||
"admin_user_id": admin_user_id,
|
||||
"admin_role": config("admin-role"),
|
||||
"created_roles": ','.join(
|
||||
get_real_role_names(requested_roles, manager))
|
||||
}
|
||||
|
|
|
@ -498,6 +498,7 @@ class TestKeystoneUtils(CharmTestCase):
|
|||
relation_data = {'admin_domain_id': None,
|
||||
'admin_user_id': admin_user_id,
|
||||
'admin_project_id': admin_project_id,
|
||||
'admin_role': 'Admin',
|
||||
'auth_host': '10.0.0.3',
|
||||
'service_host': '10.0.0.3',
|
||||
'service_port': 81, 'auth_port': 80,
|
||||
|
|
Loading…
Reference in New Issue