test: update snode test case
This commit is contained in:
parent
4026ff6202
commit
9c44f1faf7
|
@ -75,46 +75,46 @@ if $data02 != LEADER then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== create drop qnode 1
|
print =============== create drop snode 1
|
||||||
sql create qnode on dnode 1
|
sql create snode on dnode 1
|
||||||
sql show qnodes
|
sql show snodes
|
||||||
if $rows != 1 then
|
if $rows != 1 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $data00 != 1 then
|
if $data00 != 1 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql_error create qnode on dnode 1
|
sql_error create snode on dnode 1
|
||||||
|
|
||||||
sql drop qnode on dnode 1
|
sql drop snode on dnode 1
|
||||||
sql show qnodes
|
sql show snodes
|
||||||
if $rows != 0 then
|
if $rows != 0 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql_error drop qnode on dnode 1
|
sql_error drop snode on dnode 1
|
||||||
|
|
||||||
print =============== create drop qnode 2
|
print =============== create drop snode 2
|
||||||
sql create qnode on dnode 2
|
sql create snode on dnode 2
|
||||||
sql show qnodes
|
sql show snodes
|
||||||
if $rows != 1 then
|
if $rows != 1 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $data00 != 2 then
|
if $data00 != 2 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql_error create qnode on dnode 2
|
sql_error create snode on dnode 2
|
||||||
|
|
||||||
sql drop qnode on dnode 2
|
sql drop snode on dnode 2
|
||||||
sql show qnodes
|
sql show snodes
|
||||||
if $rows != 0 then
|
if $rows != 0 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql_error drop qnode on dnode 2
|
sql_error drop snode on dnode 2
|
||||||
|
|
||||||
print =============== create drop qnodes
|
print =============== create drop snodes
|
||||||
sql create qnode on dnode 1
|
sql create snode on dnode 1
|
||||||
sql create qnode on dnode 2
|
sql create snode on dnode 2
|
||||||
sql show qnodes
|
sql show snodes
|
||||||
if $rows != 2 then
|
if $rows != 2 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
@ -126,7 +126,7 @@ system sh/exec.sh -n dnode1 -s start
|
||||||
system sh/exec.sh -n dnode2 -s start
|
system sh/exec.sh -n dnode2 -s start
|
||||||
|
|
||||||
sleep 2000
|
sleep 2000
|
||||||
sql show qnodes
|
sql show snodes
|
||||||
if $rows != 2 then
|
if $rows != 2 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
Loading…
Reference in New Issue