adding tests
This commit is contained in:
parent
21a251b620
commit
e2482d4e2e
23
localtests/fail-drop-ghc-table/create.sql
Normal file
23
localtests/fail-drop-ghc-table/create.sql
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
drop table if exists gh_ost_test;
|
||||||
|
create table gh_ost_test (
|
||||||
|
id int auto_increment,
|
||||||
|
i int not null,
|
||||||
|
color varchar(32),
|
||||||
|
primary key(id)
|
||||||
|
) auto_increment=1;
|
||||||
|
|
||||||
|
insert into gh_ost_test values (null, 1, 'red');
|
||||||
|
|
||||||
|
drop event if exists gh_ost_test;
|
||||||
|
delimiter ;;
|
||||||
|
create event gh_ost_test
|
||||||
|
on schedule every 1 second
|
||||||
|
starts current_timestamp + interval 3 second
|
||||||
|
ends current_timestamp + interval 60 second
|
||||||
|
on completion not preserve
|
||||||
|
enable
|
||||||
|
do
|
||||||
|
begin
|
||||||
|
insert into gh_ost_test values (null, 1, 'blue');
|
||||||
|
drop table if exists _gh_ost_test_ghc;
|
||||||
|
end ;;
|
1
localtests/fail-drop-ghc-table/expect_failure
Normal file
1
localtests/fail-drop-ghc-table/expect_failure
Normal file
@ -0,0 +1 @@
|
|||||||
|
Error 1146: Table 'test._gh_ost_test_ghc' doesn't exist
|
22
localtests/fail-drop-gho-table-no-data/create.sql
Normal file
22
localtests/fail-drop-gho-table-no-data/create.sql
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
drop table if exists gh_ost_test;
|
||||||
|
create table gh_ost_test (
|
||||||
|
id int auto_increment,
|
||||||
|
i int not null,
|
||||||
|
color varchar(32),
|
||||||
|
primary key(id)
|
||||||
|
) auto_increment=1;
|
||||||
|
|
||||||
|
insert into gh_ost_test values (null, 1, 'blue');
|
||||||
|
|
||||||
|
drop event if exists gh_ost_test;
|
||||||
|
delimiter ;;
|
||||||
|
create event gh_ost_test
|
||||||
|
on schedule every 1 second
|
||||||
|
starts current_timestamp
|
||||||
|
ends current_timestamp + interval 60 second
|
||||||
|
on completion not preserve
|
||||||
|
enable
|
||||||
|
do
|
||||||
|
begin
|
||||||
|
drop table if exists _gh_ost_test_gho;
|
||||||
|
end ;;
|
1
localtests/fail-drop-gho-table-no-data/expect_failure
Normal file
1
localtests/fail-drop-gho-table-no-data/expect_failure
Normal file
@ -0,0 +1 @@
|
|||||||
|
Error 1146: Table 'test._gh_ost_test_gho' doesn't exist
|
1
localtests/fail-drop-gho-table-no-data/extra_args
Normal file
1
localtests/fail-drop-gho-table-no-data/extra_args
Normal file
@ -0,0 +1 @@
|
|||||||
|
--throttle-query='select timestampdiff(second, min(last_update), now()) < 5 from _gh_ost_test_ghc'
|
22
localtests/fail-drop-gho-table/create.sql
Normal file
22
localtests/fail-drop-gho-table/create.sql
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
drop table if exists gh_ost_test;
|
||||||
|
create table gh_ost_test (
|
||||||
|
id int auto_increment,
|
||||||
|
i int not null,
|
||||||
|
color varchar(32),
|
||||||
|
primary key(id)
|
||||||
|
) auto_increment=1;
|
||||||
|
|
||||||
|
|
||||||
|
drop event if exists gh_ost_test;
|
||||||
|
delimiter ;;
|
||||||
|
create event gh_ost_test
|
||||||
|
on schedule every 1 second
|
||||||
|
starts current_timestamp
|
||||||
|
ends current_timestamp + interval 60 second
|
||||||
|
on completion not preserve
|
||||||
|
enable
|
||||||
|
do
|
||||||
|
begin
|
||||||
|
insert into gh_ost_test values (null, 1, 'blue');
|
||||||
|
drop table if exists _gh_ost_test_gho;
|
||||||
|
end ;;
|
1
localtests/fail-drop-gho-table/expect_failure
Normal file
1
localtests/fail-drop-gho-table/expect_failure
Normal file
@ -0,0 +1 @@
|
|||||||
|
Error 1146: Table 'test._gh_ost_test_gho' doesn't exist
|
Loading…
x
Reference in New Issue
Block a user