Skip to content

Commit

Permalink
tests: Add more tests to functional 111
Browse files Browse the repository at this point in the history
Signed-off-by: Takashi Menjo <menjo.takashi@lab.ntt.co.jp>
  • Loading branch information
tmenjo committed Aug 25, 2016
1 parent 8015f17 commit 2ab35a9
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/functional/111
Expand Up @@ -30,6 +30,27 @@ function testSetVnodesFailed
_cleanup
}

function testSetAutoNodeVnodesFailed
{
SHEEP_OPTIONS='' _start_sheep 0
_wait_for_sheep 1
$DOG cluster format -c 1
$DOG node vnodes set 42 && err=1
_cleanup
}

function testSetGatewayVnodesFailed
{
SHEEP_OPTIONS='-V 100' _start_sheep 0
_wait_for_sheep 1
$DOG cluster format -V -c 1
SHEEP_OPTIONS='-g' _start_sheep 1
_wait_for_sheep 2
_wait_for_sheep_recovery 0
$DOG node vnodes set -p 7001 42 && err=1
_cleanup
}

testSetVnodesSucceeded 1
testSetVnodesSucceeded 65535 # UINT16_MAX

Expand All @@ -43,4 +64,7 @@ testSetVnodesFailed 42a
testSetVnodesFailed +
testSetVnodesFailed -

testSetAutoNodeVnodesFailed
testSetGatewayVnodesFailed

exit $err
4 changes: 4 additions & 0 deletions tests/functional/111.out
Expand Up @@ -53,3 +53,7 @@ using backend plain store
Invalid number of vnodes '+': must be an integer between 1 and 65535
using backend plain store
Invalid number of vnodes '-': must be an integer between 1 and 65535
using backend plain store
Failed to execute request
using backend plain store
Failed to execute request

0 comments on commit 2ab35a9

Please sign in to comment.