tempest/services/identity/json/identity_client.py
def list_user_roles(self, tenant_id, user_id):
        """Returns a list of roles assigned to a user for a tenant."""
        url = '/tenants/%s/users/%s/roles' % (tenant_id, user_id)
        resp, body = self.get(url)
        body = json.loads(body)
        return resp, body['roles']
Returns a list of roles assigned to a user for a tenant.
Returns a list of roles assigned to a user for a tenant.
Returns a list of roles assigned to a user for a tenant .
def list_user_roles(self, tenant_id, user_id):
        url = '/tenants/%s/users/%s/roles' % (tenant_id, user_id)
        resp, body = self.get(url)
        body = json.loads(body)
        return resp, body['roles']
def list_user_roles ( self , tenant_id , user_id ) : url = '/tenants/%s/users/%s/roles' % ( tenant_id , user_id ) resp , body = self . get ( url ) body = json . loads ( body ) return resp , body [ 'roles' ]
Returns a list of roles assigned to a user for a tenant.
Returns a list of roles assigned to a user for a tenant .
"""Returns a list of roles assigned to a user for a tenant."""
self
tenant_id
user_id