#NEWLINE# @ test . idempotent_id ( 'afd8f1b7-a81e-4629-bca8-a367b3a144bb' ) #NEWLINE# def test_regular_client_shares_with_another( self ) : #NEWLINE# #INDENT# net = self . create_network ( ) #NEWLINE# self . client . create_rbac_policy ( object_type = 'network' , object_id = net [ 'id' ] , action = 'access_as_external' , target_tenant = r . client2 . tenant_id ) #NEWLINE# body = self . client2 . list_networks ( ) #NEWLINE# networks_list = [ n [ 'id' ] for n in body [ 'networks' ] ] #NEWLINE# self . assertIn ( net [ 'id' ] , networks_list ) #NEWLINE# r = self . client2 . create_router ( data_utils . rand_name ( 'router-' ) , external_gateway_info = { #NEWLINE# #INDENT# 'network_id' : net [ 'id' ] , #NEWLINE# #UNINDENT# } ) [ 'router' ] #NEWLINE# self . addCleanup ( self . admin_client . delete_router , r [ 'id' ] )