test/vhost: Add negative test for vhost_controller_set_coalescing rpc
Change-Id: I883d20d9ff2d1da1de89543cf81c9f3d3712e44f Signed-off-by: Pawel Kaminski <pawelx.kaminski@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/535 Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Maciej Wawryk <maciejx.wawryk@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
765ae06958
commit
6668f0d9f2
@ -80,6 +80,11 @@ if [[ $RUN_NIGHTLY -eq 1 ]]; then
|
||||
error "vhost returned controller that does not exist"
|
||||
fi
|
||||
|
||||
notice "Set coalescing for nonexistent controller"
|
||||
if $rpc_py vhost_controller_set_coalescing nonexistent 1 100; then
|
||||
error "Set coalescing for nonexistent controller should fail"
|
||||
fi
|
||||
|
||||
# General commands
|
||||
notice "Trying to remove nonexistent controller"
|
||||
if $rpc_py vhost_delete_controller unk0 > /dev/null; then
|
||||
@ -110,6 +115,11 @@ if [[ $RUN_NIGHTLY -eq 1 ]]; then
|
||||
notice "Creating controller naa.0"
|
||||
$rpc_py vhost_create_scsi_controller naa.0
|
||||
|
||||
notice "Pass invalid parameter for vhost_controller_set_coalescing"
|
||||
if $rpc_py vhost_controller_set_coalescing naa.0 -1 100; then
|
||||
error "Set coalescing with invalid parameter should fail"
|
||||
fi
|
||||
|
||||
notice "Adding initial device (0) to naa.0"
|
||||
$rpc_py vhost_scsi_controller_add_target naa.0 0 Malloc0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user