Skip to content
Snippets Groups Projects
Commit fb95762d authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Move the test case for Bug#735140 to box_big suite.

parent 63c8f42a
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -41,6 +41,9 @@ exec sql "insert into t0 values (0)"
exec sql "select * from t0 where k0=0"
exec sql "insert into t0 values (4294967295)"
exec sql "select * from t0 where k0=4294967295"
# cleanup
exec sql "delete from t0 where k0=0"
exec sql "delete from t0 where k0=4294967295"
print """#
# A test case for: http://bugs.launchpad.net/bugs/712456
......@@ -52,28 +55,6 @@ exec sql "select * from t1 where k0 = 0"
exec sql "select * from t65537 where k0 = 0"
exec sql "select * from t4294967295 where k0 = 0"
print """
#
# A test case for: http://bugs.launchpad.net/bugs/735140
# Partial REPLACE corrupts index.
#
"""
# clean data and restart with appropriate config
server.stop()
server.deploy("box/tarantool_bug735140.cfg")
exec sql "insert into t0 values ('Spears', 'Britney')"
exec sql "select * from t0 where k0='Spears'"
exec sql "select * from t0 where k1='Britney'"
# try to insert the incoplete tuple
exec sql "insert into t0 values ('Spears')"
# check that nothing has been updated
exec sql "select * from t0 where k0='Spears'"
# resore default suite config
server.stop()
server.deploy(self.suite_ini["config"])
print """#
# A test case for: http://bugs.launchpad.net/bugs/716683
# Admin console should not stall on unknown command.
......
slab_alloc_arena = 0.1
pid_file = "box.pid"
logger="cat - >> tarantool.log"
primary_port = 33013
secondary_port = 33014
admin_port = 33015
rows_per_wal = 50
space[0].enabled = 1
space[0].index[0].type = "HASH"
space[0].index[0].unique = 1
space[0].index[0].key_field[0].fieldno = 0
space[0].index[0].key_field[0].type = "STR"
space[0].index[1].type = "TREE"
space[0].index[1].unique = 0
space[0].index[1].key_field[0].fieldno = 1
space[0].index[1].key_field[0].type = "STR"
No preview for this file type
......@@ -71,4 +71,22 @@ exec sql "delete from t1 where k0='key1'"
exec sql "delete from t1 where k0='key2'"
exec sql "delete from t1 where k0='key3'"
print """
#
# A test case for: http://bugs.launchpad.net/bugs/735140
# Partial REPLACE corrupts index.
#
"""
# clean data and restart with appropriate config
exec sql "insert into t4 values ('Spears', 'Britney')"
exec sql "select * from t4 where k0='Spears'"
exec sql "select * from t4 where k1='Britney'"
# try to insert the incoplete tuple
exec sql "insert into t4 values ('Spears')"
# check that nothing has been updated
exec sql "select * from t4 where k0='Spears'"
# cleanup
exec sql "delete from t4 where k0='Spears'"
# vim: syntax=python
......@@ -43,3 +43,13 @@ space[3].index[0].type = "TREE"
space[3].index[0].unique = 1
space[3].index[0].key_field[0].fieldno = 0
space[3].index[0].key_field[0].type = "STR"
space[4].enabled = 1
space[4].index[0].type = "HASH"
space[4].index[0].unique = 1
space[4].index[0].key_field[0].fieldno = 0
space[4].index[0].key_field[0].type = "STR"
space[4].index[1].type = "TREE"
space[4].index[1].unique = 0
space[4].index[1].key_field[0].fieldno = 1
space[4].index[1].key_field[0].type = "STR"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment