#NEWLINE# @ test . idempotent_id ( 'ba88d0ca-a350-11e5-a06f-54ee756c66df' ) #NEWLINE# def test_filter_fields( self ) : #NEWLINE# #INDENT# policy = self . _create_qos_policy ( ) #NEWLINE# self . admin_client . create_rbac_policy ( object_type = 'qos_policy' , object_id = policy [ 'id' ] , action = 'access_as_shared' , target_tenant = self . client2 . tenant_id ) #NEWLINE# field_args = ( ( 'id' , ) , ( 'id' , 'action' ) , ( 'object_type' , 'object_id' ) , ( 'tenant_id' , 'target_tenant' ) ) #NEWLINE# for fields in field_args : #NEWLINE# #INDENT# res = self . admin_client . list_rbac_policies ( fields = fields ) #NEWLINE# self . assertEqual ( set ( res ) , set ( res [ 'rbac_policies' ] [ 0 ] . keys ( ) ) )