Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
d2fde2f6
Unverified
Commit
d2fde2f6
authored
Feb 04, 2022
by
Binbin
Committed by
GitHub
Feb 04, 2022
Browse files
Fix cluster tests failing due to subcommand names (#10231)
Introduced in #10128
parent
65ef543f
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/cluster/tests/23-multiple-slot-operations.tcl
View file @
d2fde2f6
...
@@ -67,10 +67,9 @@ test "Continuous slots distribution" {
...
@@ -67,10 +67,9 @@ test "Continuous slots distribution" {
}
}
test
"ADDSLOTSRANGE command with several boundary conditions test suite"
{
test
"ADDSLOTSRANGE command with several boundary conditions test suite"
{
# Add multiple slots with incorrect argument number
# Add multiple slots with incorrect argument number
assert_error
"ERR wrong number of arguments for 'addslotsrange' command"
{
R 0 cluster ADDSLOTSRANGE 3001 3020 3030
}
assert_error
"ERR wrong number of arguments for '
cluster|
addslotsrange' command"
{
R 0 cluster ADDSLOTSRANGE 3001 3020 3030
}
# Add multiple slots with invalid input slot
# Add multiple slots with invalid input slot
assert_error
"ERR Invalid or out of range slot"
{
R 0 cluster ADDSLOTSRANGE 3001 3020 3030 aaa
}
assert_error
"ERR Invalid or out of range slot"
{
R 0 cluster ADDSLOTSRANGE 3001 3020 3030 aaa
}
assert_error
"ERR Invalid or out of range slot"
{
R 0 cluster ADDSLOTSRANGE 3001 3020 3030 70000
}
assert_error
"ERR Invalid or out of range slot"
{
R 0 cluster ADDSLOTSRANGE 3001 3020 3030 70000
}
...
@@ -87,12 +86,11 @@ test "ADDSLOTSRANGE command with several boundary conditions test suite" {
...
@@ -87,12 +86,11 @@ test "ADDSLOTSRANGE command with several boundary conditions test suite" {
}
}
test
"DELSLOTSRANGE command with several boundary conditions test suite"
{
test
"DELSLOTSRANGE command with several boundary conditions test suite"
{
# Delete multiple slots with incorrect argument number
# Delete multiple slots with incorrect argument number
assert_error
"ERR wrong number of arguments for 'delslotsrange' command"
{
R 0 cluster DELSLOTSRANGE 1000 2000 2100
}
assert_error
"ERR wrong number of arguments for '
cluster|
delslotsrange' command"
{
R 0 cluster DELSLOTSRANGE 1000 2000 2100
}
assert_match
"* 0-3000 3051-3276*"
[
$master1
CLUSTER NODES
]
assert_match
"* 0-3000 3051-3276*"
[
$master1
CLUSTER NODES
]
assert_match
"*0 3000*3051 3276*"
[
$master1
CLUSTER SLOTS
]
assert_match
"*0 3000*3051 3276*"
[
$master1
CLUSTER SLOTS
]
# Delete multiple slots with invalid input slot
# Delete multiple slots with invalid input slot
assert_error
"ERR Invalid or out of range slot"
{
R 0 cluster DELSLOTSRANGE 1000 2000 2100 aaa
}
assert_error
"ERR Invalid or out of range slot"
{
R 0 cluster DELSLOTSRANGE 1000 2000 2100 aaa
}
assert_error
"ERR Invalid or out of range slot"
{
R 0 cluster DELSLOTSRANGE 1000 2000 2100 70000
}
assert_error
"ERR Invalid or out of range slot"
{
R 0 cluster DELSLOTSRANGE 1000 2000 2100 70000
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment