Commit 765ae069 authored by Pawel Kaminski's avatar Pawel Kaminski Committed by Tomasz Zawadzki
Browse files

test/vhost: Negative test - get controller that does not exist

parent e338a8dd
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -75,6 +75,11 @@ if [[ $RUN_NIGHTLY -eq 1 ]]; then

	rpc_py="$rootdir/scripts/rpc.py -s $(get_vhost_dir 0)/rpc.sock"

	# Try to get nonexistent vhost controller
	if $rpc_py vhost_get_controllers -n nonexistent; then
		error "vhost returned controller that does not exist"
	fi

	# General commands
	notice "Trying to remove nonexistent controller"
	if $rpc_py vhost_delete_controller unk0 > /dev/null; then