#NEWLINE# def test_create_network_service_policy_with_all_params( self ) : #NEWLINE# #INDENT# 'network-service-policy-create with all params.' #NEWLINE# resource = 'network_service_policy' #NEWLINE# cmd = gbp . CreateNetworkServicePolicy ( test_cli20 . MyApp ( sys . stdout ) , None ) #NEWLINE# name = 'myname' #NEWLINE# tenant_id = 'mytenant' #NEWLINE# description = 'Mynsp' #NEWLINE# my_id = 'someid' #NEWLINE# network_svc_params = 'type=ip_single,name=vip,value=self_subnet' #NEWLINE# shared = 'true' #NEWLINE# args = [ '--tenant_id' , tenant_id , '--description' , description , '--network-service-params' , network_svc_params , '--shared' , shared , name ] #NEWLINE# position_names = [ 'name' , 'description' , 'network_service_params' ] #NEWLINE# net_params = [ { #NEWLINE# #INDENT# 'type' : 'ip_single' , #NEWLINE# 'name' : 'vip' , #NEWLINE# 'value' : 'self_subnet' , #NEWLINE# #UNINDENT# } ] #NEWLINE# position_values = [ name , description , net_params ] #NEWLINE# self . _test_create_resource ( resource , cmd , name , my_id , args , position_names , position_values , tenant_id = position_names , shared = shared )