forked from Percona-QA/percona-qa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathx_plugin.bats
83 lines (68 loc) · 2.81 KB
/
x_plugin.bats
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/env bats
# Created by Shahriyar Rzayev from Percona
DIRNAME=$BATS_TEST_DIRNAME
@test "Running test_check_if_collection_exists" {
run python -m pytest -vv ${DIRNAME}/myrocks_mysqlx_plugin_test/test_module01.py::TestXPlugin::test_check_if_collection_exists
echo $output
[ $status -eq 0 ]
}
@test "Running test_check_collection_count" {
run python -m pytest -vv ${DIRNAME}/myrocks_mysqlx_plugin_test/test_module01.py::TestXPlugin::test_check_collection_count
echo $output
[ $status -eq 0 ]
}
@test "Running test_alter_table_engine_raises" {
run python -m pytest -vv ${DIRNAME}/myrocks_mysqlx_plugin_test/test_module01.py::TestXPlugin::test_alter_table_engine_raises
echo $output
[ $status -eq 0 ]
}
@test "Running test_alter_table_drop_column" {
run python -m pytest -vv ${DIRNAME}/myrocks_mysqlx_plugin_test/test_module01.py::TestXPlugin::test_alter_table_drop_column
echo $output
[ $status -eq 0 ]
}
@test "Running test_alter_table_engine" {
run python -m pytest -vv ${DIRNAME}/myrocks_mysqlx_plugin_test/test_module01.py::TestXPlugin::test_alter_table_engine
echo $output
[ $status -eq 0 ]
}
@test "Running test_check_if_table_exists" {
run python -m pytest -vv ${DIRNAME}/myrocks_mysqlx_plugin_test/test_module01.py::TestXPlugin::test_check_if_table_exists
echo $output
[ $status -eq 0 ]
}
@test "Running test_check_table_count" {
run python -m pytest -vv ${DIRNAME}/myrocks_mysqlx_plugin_test/test_module01.py::TestXPlugin::test_check_table_count
echo $output
[ $status -eq 0 ]
}
@test "Running test_check_table_name" {
run python -m pytest -vv ${DIRNAME}/myrocks_mysqlx_plugin_test/test_module01.py::TestXPlugin::test_check_table_name
echo $output
[ $status -eq 0 ]
}
@test "Running test_check_schema_name" {
run python -m pytest -vv ${DIRNAME}/myrocks_mysqlx_plugin_test/test_module01.py::TestXPlugin::test_check_schema_name
echo $output
[ $status -eq 0 ]
}
@test "Running test_check_if_table_is_view" {
run python -m pytest -vv ${DIRNAME}/myrocks_mysqlx_plugin_test/test_module01.py::TestXPlugin::test_check_if_table_is_view
echo $output
[ $status -eq 0 ]
}
@test "Running test_create_view_from_collection" {
run python -m pytest -vv ${DIRNAME}/myrocks_mysqlx_plugin_test/test_module01.py::TestXPlugin::test_create_view_from_collection
echo $output
[ $status -eq 0 ]
}
@test "Running test_select_from_table [Should not raise an OperationalError after MYR-151/152]" {
run python -m pytest -vv ${DIRNAME}/myrocks_mysqlx_plugin_test/test_module01.py::TestXPlugin::test_select_from_table
echo $output
[ $status -eq 0 ]
}
@test "Running test_select_from_view [Should not raise an OperationalError asfter MYR-151/152]" {
run python -m pytest -vv ${DIRNAME}/myrocks_mysqlx_plugin_test/test_module01.py::TestXPlugin::test_select_from_view
echo $output
[ $status -eq 0 ]
}