def test_create_network_service_policy_with_all_params(self):
        resource = 'network_service_policy'
        cmd = gbp.CreateNetworkServicePolicy(test_cli20.MyApp(sys.stdout),
                                             None)
        name = 'myname'
        tenant_id = 'mytenant'
        description = 'Mynsp'
        my_id = 'someid'
        network_svc_params = "type=ip_single,name=vip,value=self_subnet"
        shared = 'true'
        args = ['--tenant_id', tenant_id,
                '--description', description,
                '--network-service-params', network_svc_params,
                '--shared', shared,
                name]
        position_names = ['name', 'description', 'network_service_params']
        net_params = [{"type": "ip_single", "name": "vip",
                       "value": "self_subnet"}]
        position_values = [name, description, net_params]
        self._test_create_resource(resource, cmd, name, my_id, args,
                                   position_names, position_values,
                                   tenant_id=tenant_id, shared=shared)
network-service-policy-create with all params.
dataset/ETHPy150Open openstack/python-group-based-policy-client/gbpclient/tests/unit/test_cli20_networkservicepolicy.py/CLITestV20NetworkServicePolicyJSON.test_create_network_service_policy_with_all_params