modify test case
This commit is contained in:
parent
f5e2a36f23
commit
cf35e31289
|
@ -72,10 +72,10 @@ endi
|
|||
if $data5_db != on then # strict
|
||||
return -1
|
||||
endi
|
||||
if $data6_db != 345600m then # duration
|
||||
if $data6_db != 240d then # duration
|
||||
return -1
|
||||
endi
|
||||
if $data7_db != 1440000m,1440000m,1440000m then # keep
|
||||
if $data7_db != 1000d,1000d,1000d then # keep
|
||||
return -1
|
||||
endi
|
||||
if $data8_db != 256 then # buffer
|
||||
|
@ -220,7 +220,7 @@ print ============== modify keep
|
|||
sql alter database db keep 2400
|
||||
sql select * from information_schema.ins_databases
|
||||
print keep $data7_db
|
||||
if $data7_db != 3456000m,3456000m,3456000m then
|
||||
if $data7_db != 2400d,2400d,2400d then
|
||||
return -1
|
||||
endi
|
||||
|
||||
|
|
|
@ -34,10 +34,10 @@ endi
|
|||
if $data24 != 1 then
|
||||
return -1
|
||||
endi
|
||||
if $data26 != 2880m then
|
||||
if $data26 != 2d then
|
||||
return -1
|
||||
endi
|
||||
if $data27 != 14400m,14400m,14400m then
|
||||
if $data27 != 10d,10d,10d then
|
||||
return -1
|
||||
endi
|
||||
#if $data28 != 32 then
|
||||
|
@ -78,7 +78,7 @@ endi
|
|||
if $data24 != 1 then
|
||||
return -1
|
||||
endi
|
||||
if $data26 != 21600m then
|
||||
if $data26 != 15d then
|
||||
return -1
|
||||
endi
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ print $data00 $data01 $data02 $data03 $data04 $data05 $data06 $data07
|
|||
if $data22 != 2 then
|
||||
return -1
|
||||
endi
|
||||
if $data27 != 86400m,86400m,86400m then
|
||||
if $data27 != 60d,60d,60d then
|
||||
return -1
|
||||
endi
|
||||
|
||||
|
@ -86,7 +86,7 @@ sql select * from information_schema.ins_databases
|
|||
if $data22 != 2 then
|
||||
return -1
|
||||
endi
|
||||
if $data27 != 43200m,43200m,43200m then
|
||||
if $data27 != 30d,30d,30d then
|
||||
return -1
|
||||
endi
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ sql select * from information_schema.ins_databases
|
|||
if $rows != 3 then
|
||||
return -1
|
||||
endi
|
||||
if $data27 != 30240m,30240m,30240m then
|
||||
if $data27 != 21d,21d,21d then
|
||||
return -1
|
||||
endi
|
||||
sql alter database $db keep 11,12
|
||||
|
@ -48,7 +48,7 @@ sql select * from information_schema.ins_databases
|
|||
if $rows != 3 then
|
||||
return -1
|
||||
endi
|
||||
if $data27 != 15840m,17280m,17280m then
|
||||
if $data27 != 11d,12d,12d then
|
||||
return -1
|
||||
endi
|
||||
sql alter database $db keep 20,20,20
|
||||
|
@ -56,7 +56,7 @@ sql select * from information_schema.ins_databases
|
|||
if $rows != 3 then
|
||||
return -1
|
||||
endi
|
||||
if $data27 != 28800m,28800m,28800m then
|
||||
if $data27 != 20d,20d,20d then
|
||||
return -1
|
||||
endi
|
||||
sql alter database $db keep 10,10,10
|
||||
|
@ -64,7 +64,7 @@ sql select * from information_schema.ins_databases
|
|||
if $rows != 3 then
|
||||
return -1
|
||||
endi
|
||||
if $data27 != 14400m,14400m,14400m then
|
||||
if $data27 != 10d,10d,10d then
|
||||
return -1
|
||||
endi
|
||||
sql alter database $db keep 10,10,11
|
||||
|
@ -72,7 +72,7 @@ sql select * from information_schema.ins_databases
|
|||
if $rows != 3 then
|
||||
return -1
|
||||
endi
|
||||
if $data27 != 14400m,14400m,15840m then
|
||||
if $data27 != 10d,10d,11d then
|
||||
return -1
|
||||
endi
|
||||
sql alter database $db keep 11,12,13
|
||||
|
@ -80,7 +80,7 @@ sql select * from information_schema.ins_databases
|
|||
if $rows != 3 then
|
||||
return -1
|
||||
endi
|
||||
if $data27 != 15840m,17280m,18720m then
|
||||
if $data27 != 11d,12d,13d then
|
||||
return -1
|
||||
endi
|
||||
sql alter database $db keep 365000,365000,365000
|
||||
|
@ -88,7 +88,7 @@ sql select * from information_schema.ins_databases
|
|||
if $rows != 3 then
|
||||
return -1
|
||||
endi
|
||||
if $data27 != 525600000m,525600000m,525600000m then
|
||||
if $data27 != 365000d,365000d,365000d then
|
||||
return -1
|
||||
endi
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ sql select * from information_schema.ins_databases
|
|||
if $rows != 3 then
|
||||
return -1
|
||||
endi
|
||||
if $data27 != 28800m,28800m,28800m then
|
||||
if $data27 != 20d,20d,20d then
|
||||
return -1
|
||||
endi
|
||||
|
||||
|
@ -49,7 +49,7 @@ sql select * from information_schema.ins_databases
|
|||
if $rows != 3 then
|
||||
return -1
|
||||
endi
|
||||
if $data27 != 28800m,28800m,28800m then
|
||||
if $data27 != 20d,20d,20d then
|
||||
return -1
|
||||
endi
|
||||
sql alter database $db keep 10
|
||||
|
@ -57,7 +57,7 @@ sql select * from information_schema.ins_databases
|
|||
if $rows != 3 then
|
||||
return -1
|
||||
endi
|
||||
if $data27 != 14400m,14400m,14400m then
|
||||
if $data27 != 10d,10d,10d then
|
||||
return -1
|
||||
endi
|
||||
sql alter database $db keep 11
|
||||
|
@ -65,7 +65,7 @@ sql select * from information_schema.ins_databases
|
|||
if $rows != 3 then
|
||||
return -1
|
||||
endi
|
||||
if $data27 != 15840m,15840m,15840m then
|
||||
if $data27 != 11d,11d,11d then
|
||||
return -1
|
||||
endi
|
||||
sql alter database $db keep 13
|
||||
|
@ -73,7 +73,7 @@ sql select * from information_schema.ins_databases
|
|||
if $rows != 3 then
|
||||
return -1
|
||||
endi
|
||||
if $data27 != 18720m,18720m,18720m then
|
||||
if $data27 != 13d,13d,13d then
|
||||
return -1
|
||||
endi
|
||||
sql alter database $db keep 365000
|
||||
|
@ -81,7 +81,7 @@ sql select * from information_schema.ins_databases
|
|||
if $rows != 3 then
|
||||
return -1
|
||||
endi
|
||||
if $data27 != 525600000m,525600000m,525600000m then
|
||||
if $data27 != 365000d,365000d,365000d then
|
||||
return -1
|
||||
endi
|
||||
|
||||
|
|
|
@ -118,10 +118,10 @@ endi
|
|||
if $data24 != $replica then
|
||||
return -1
|
||||
endi
|
||||
if $data26 != 14400m then
|
||||
if $data26 != 10d then
|
||||
return -1
|
||||
endi
|
||||
if $data27 != 525600m,525600m,525600m then
|
||||
if $data27 != 365d,365d,365d then
|
||||
return -1
|
||||
endi
|
||||
|
||||
|
@ -155,7 +155,7 @@ sql select * from information_schema.ins_databases
|
|||
if $rows != 3 then
|
||||
return -1
|
||||
endi
|
||||
if $data27 != 56160m,56160m,56160m then
|
||||
if $data27 != 39d,39d,39d then
|
||||
return -1
|
||||
endi
|
||||
sql drop database dbk0
|
||||
|
@ -164,7 +164,7 @@ sql select * from information_schema.ins_databases
|
|||
if $rows != 3 then
|
||||
return -1
|
||||
endi
|
||||
if $data27 != 56160m,57600m,57600m then
|
||||
if $data27 != 39d,40d,40d then
|
||||
return -1
|
||||
endi
|
||||
sql drop database dbka
|
||||
|
@ -174,7 +174,7 @@ sql select * from information_schema.ins_databases
|
|||
if $rows != 3 then
|
||||
return -1
|
||||
endi
|
||||
if $data27 != 15840m,15840m,15840m then
|
||||
if $data27 != 11d,11d,11d then
|
||||
return -1
|
||||
endi
|
||||
sql drop database dbk1
|
||||
|
@ -183,7 +183,7 @@ sql select * from information_schema.ins_databases
|
|||
if $rows != 3 then
|
||||
return -1
|
||||
endi
|
||||
if $data27 != 15840m,17280m,18720m then
|
||||
if $data27 != 11d,12d,13d then
|
||||
return -1
|
||||
endi
|
||||
sql drop database dbk2
|
||||
|
@ -192,7 +192,7 @@ sql select * from information_schema.ins_databases
|
|||
if $rows != 3 then
|
||||
return -1
|
||||
endi
|
||||
if $data27 != 15840m,15840m,18720m then
|
||||
if $data27 != 11d,11d,13d then
|
||||
return -1
|
||||
endi
|
||||
sql drop database dbk3
|
||||
|
@ -201,7 +201,7 @@ sql select * from information_schema.ins_databases
|
|||
if $rows != 3 then
|
||||
return -1
|
||||
endi
|
||||
if $data27 != 15840m,18720m,18720m then
|
||||
if $data27 != 11d,13d,13d then
|
||||
return -1
|
||||
endi
|
||||
sql drop database dbk4
|
||||
|
|
Loading…
Reference in New Issue