tempest/services/identity/json/identity_client.py
def assign_user_role(self, tenant_id, user_id, role_id):
        """Add roles to a user on a tenant."""
        post_body = json.dumps({})
        resp, body = self.put('/tenants/%s/users/%s/roles/OS-KSADM/%s' %
                              (tenant_id, user_id, role_id), post_body,
                              self.headers)
        body = json.loads(body)
        return resp, body['role']
Add roles to a user on a tenant.
Add roles to a user on a tenant.
Add roles to a user on a tenant .
def assign_user_role(self, tenant_id, user_id, role_id):
        post_body = json.dumps({})
        resp, body = self.put('/tenants/%s/users/%s/roles/OS-KSADM/%s' %
                              (tenant_id, user_id, role_id), post_body,
                              self.headers)
        body = json.loads(body)
        return resp, body['role']
def assign_user_role ( self , tenant_id , user_id , role_id ) : post_body = json . dumps ( { } ) resp , body = self . put ( '/tenants/%s/users/%s/roles/OS-KSADM/%s' % ( tenant_id , user_id , role_id ) , post_body , self . headers ) body = json . loads ( body ) return resp , body [ 'role' ]
Add roles to a user on a tenant.
Add roles to a user on a tenant .
"""Add roles to a user on a tenant."""
self
tenant_id
user_id
role_id