Spdk/test
Jan Kryl 59339feac3 jsonrpc: tolerate null json value for parameters in json-rpc call
Rust lang has notion of empty value `()` which is translated to json null
value using serialization library like serde. Thus it means that jsonrpc
methods having no parameters translate to parameters with null value (as
opposed to a request without parameter member as it is done now in spdk).
This change handles null parameter gracefully instead of returning an
error - improving interoperability with such clients.

Signed-off-by: Jan Kryl <jan.kryl@mayadata.io>
Change-Id: I8c3cc5613582aebb10ac6eaee3ac4e6538aaa0b1
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/463171
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2019-07-26 19:30:57 +00:00
..
app test: add a fuzzer for the vhost API 2019-07-08 09:18:19 +00:00
bdev test/blockdev: remove dependency on brd kernel module 2019-07-23 22:54:39 +00:00
blobfs test/rocksdb: remove run_tests.sh 2019-07-05 12:13:16 +00:00
blobstore test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +00:00
common net/vpp: move to VPP 19.04 2019-07-25 14:51:21 +00:00
config_converter iscsi: Deprecate MinConnectionsPerCore 2019-05-06 17:10:48 +00:00
cpp_headers Makefile: Add possibility to uninstall spdk. 2019-05-16 20:56:18 +00:00
env ut/cunit: added missing semicolon on CU_ASSERT macros 2019-07-24 18:21:22 +00:00
event notify: add notification library 2019-03-29 21:15:14 +00:00
ftl test/ftl: use non-volatile cache in functional tests 2019-07-25 22:36:31 +00:00
fuzz test/fuzz: Make test timeout configurable. 2019-07-23 04:08:52 +00:00
ioat test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +00:00
iscsi_tgt net/vpp: move to VPP 19.04 2019-07-25 14:51:21 +00:00
json_config scripts/rpc: change construct_crypto_bdevs args to positional 2019-07-24 18:23:02 +00:00
lvol test/lvol: Check if snapshot with snapshot can be deleted 2019-07-12 08:26:04 +00:00
nvme test/nvme: do not use mounted nvme disks in perf script 2019-07-24 17:57:27 +00:00
nvmf test/nvmf: fix edge condition in check_ip_is_soft_roce 2019-07-25 14:49:17 +00:00
ocf test/ocf: disable persistent metadata test 2019-06-11 18:16:55 +00:00
openstack test/openstack: Add scripts to test spdk-vs-openstack 2019-07-25 15:27:43 +00:00
pmem test/pmem: cleanup common.sh 2019-06-19 03:54:58 +00:00
rpc_client jsonrpc: tolerate null json value for parameters in json-rpc call 2019-07-26 19:30:57 +00:00
spdkcli test/spdkcli: test vhost_ctrl show_details method 2019-07-24 18:24:22 +00:00
unit ut/nvme: silence scan-build warnings about null dereference 2019-07-26 17:47:34 +00:00
vhost test/vhost: check block size for vhost boot test 2019-07-23 22:51:28 +00:00
vmd test/vmd: Basic VMD tests 2019-07-18 03:52:37 +00:00
Makefile jsonrpc-client: add new C client library 2018-10-11 20:07:44 +00:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00