[test: modify test case]
This commit is contained in:
parent
c64ea43fbf
commit
c3066c9412
|
@ -6,7 +6,7 @@
|
|||
|
||||
# ---- db
|
||||
./test.sh -f tsim/db/create_all_options.sim
|
||||
#./test.sh -f tsim/db/alter_option.sim
|
||||
./test.sh -f tsim/db/alter_option.sim
|
||||
./test.sh -f tsim/db/basic1.sim
|
||||
./test.sh -f tsim/db/basic2.sim
|
||||
./test.sh -f tsim/db/basic3.sim
|
||||
|
|
|
@ -66,7 +66,7 @@ print ============= create database
|
|||
# | REPLICA value [1 | 3]
|
||||
# | WAL value [1 | 2]
|
||||
|
||||
sql create database db BLOCKS 7 CACHE 3 CACHELAST 3 COMP 0 DAYS 345600 FSYNC 1000 MAXROWS 8000 MINROWS 10 KEEP 1440000 PRECISION 'ns' REPLICA 3 TTL 7 WAL 2 VGROUPS 6 SINGLE_STABLE 1 STREAM_MODE 1
|
||||
sql create database db BLOCKS 7 CACHE 3 CACHELAST 3 COMP 0 DAYS 345600 FSYNC 1000 MAXROWS 8000 MINROWS 10 KEEP 1440000 PRECISION 'ns' REPLICA 1 TTL 7 WAL 2 VGROUPS 6 SINGLE_STABLE 1 STREAM_MODE 1
|
||||
sql show databases
|
||||
print rows: $rows
|
||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 $data07 $data08 $data09
|
||||
|
@ -86,7 +86,7 @@ endi
|
|||
if $data3_db != 0 then # ntables
|
||||
return -1
|
||||
endi
|
||||
if $data4_db != 3 then # replica
|
||||
if $data4_db != 1 then # replica
|
||||
return -1
|
||||
endi
|
||||
if $data5_db != nostrict then # strict
|
||||
|
@ -127,47 +127,47 @@ if $data16_db != ns then # precision
|
|||
endi
|
||||
|
||||
sleep 3000
|
||||
sql show db.vgroups
|
||||
if $data[0][4] == LEADER then
|
||||
if $data[0][6] != FOLLOWER then
|
||||
return -1
|
||||
endi
|
||||
if $data[0][8] != FOLLOWER then
|
||||
return -1
|
||||
endi
|
||||
endi
|
||||
if $data[0][6] == LEADER then
|
||||
if $data[0][4] != FOLLOWER then
|
||||
return -1
|
||||
endi
|
||||
if $data[0][8] != FOLLOWER then
|
||||
return -1
|
||||
endi
|
||||
endi
|
||||
if $data[0][8] == LEADER then
|
||||
if $data[0][4] != FOLLOWER then
|
||||
return -1
|
||||
endi
|
||||
if $data[0][6] != FOLLOWER then
|
||||
return -1
|
||||
endi
|
||||
endi
|
||||
|
||||
if $data[0][4] != LEADER then
|
||||
if $data[0][4] != FOLLOWER then
|
||||
return -1
|
||||
endi
|
||||
endi
|
||||
if $data[0][6] != LEADER then
|
||||
if $data[0][6] != FOLLOWER then
|
||||
return -1
|
||||
endi
|
||||
endi
|
||||
if $data[0][8] != LEADER then
|
||||
if $data[0][8] != FOLLOWER then
|
||||
return -1
|
||||
endi
|
||||
endi
|
||||
#sql show db.vgroups
|
||||
#if $data[0][4] == LEADER then
|
||||
# if $data[0][6] != FOLLOWER then
|
||||
# return -1
|
||||
# endi
|
||||
# if $data[0][8] != FOLLOWER then
|
||||
# return -1
|
||||
# endi
|
||||
#endi
|
||||
#if $data[0][6] == LEADER then
|
||||
# if $data[0][4] != FOLLOWER then
|
||||
# return -1
|
||||
# endi
|
||||
# if $data[0][8] != FOLLOWER then
|
||||
# return -1
|
||||
# endi
|
||||
#endi
|
||||
#if $data[0][8] == LEADER then
|
||||
# if $data[0][4] != FOLLOWER then
|
||||
# return -1
|
||||
# endi
|
||||
# if $data[0][6] != FOLLOWER then
|
||||
# return -1
|
||||
# endi
|
||||
#endi
|
||||
#
|
||||
#if $data[0][4] != LEADER then
|
||||
# if $data[0][4] != FOLLOWER then
|
||||
# return -1
|
||||
# endi
|
||||
#endi
|
||||
#if $data[0][6] != LEADER then
|
||||
# if $data[0][6] != FOLLOWER then
|
||||
# return -1
|
||||
# endi
|
||||
#endi
|
||||
#if $data[0][8] != LEADER then
|
||||
# if $data[0][8] != FOLLOWER then
|
||||
# return -1
|
||||
# endi
|
||||
#endi
|
||||
|
||||
print ============== not support modify options: name, create_time, vgroups, ntables
|
||||
sql_error alter database db name dba
|
||||
|
|
Loading…
Reference in New Issue