1088 lines
60 KiB
CMake
1088 lines
60 KiB
CMake
# Building test package:
|
|
#
|
|
# apt-get install libssl-dev libmariadbclient-dev php5 perl \
|
|
# coreutils realpath libjansson-dev openjdk-7-jdk
|
|
# pip install JayDeBeApi
|
|
|
|
|
|
# Backend labes:
|
|
# REPL_BACKEND
|
|
# GALERA_BACKEND
|
|
# EXTERN_BACKEND
|
|
# BREAKS_REPL
|
|
# BREAKS_GALERA
|
|
set(CTEST_BUILD_NAME "${BUILDNAME}")
|
|
|
|
set(CMAKE_CXX_FLAGS "-std=c++11 -ggdb -Wall -Wextra -Werror -Wno-format-overflow -Wno-unused-function -Wno-unused-parameter -Werror=format-security")
|
|
set(CMAKE_CXX_FLAGS_DEBUG "-std=c++11 -ggdb -Wall -Werror -Wno-format-overflow -Wno-unused-function")
|
|
set(CMAKE_CXX_FLAGS_RELEASE "-std=c++11 -ggdb -Wall -Werror -Wno-format-overflow -Wno-unused-function")
|
|
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-std=c++11 -ggdb -Wall -Werror -Wno-format-overflow -Wno-unused-function")
|
|
|
|
# utilities.cmake contains all helper functions and extra tools
|
|
include(utilities.cmake)
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
include_directories(${CMAKE_SOURCE_DIR}/connectors/cdc-connector)
|
|
|
|
# The core library
|
|
include_directories(${CMAKE_BINARY_DIR})
|
|
add_library(testcore SHARED testconnections.cpp nodes.cpp mariadb_nodes.cpp maxscales.cpp
|
|
mariadb_func.cpp get_com_select_insert.cpp maxadmin_operations.cpp big_transaction.cpp
|
|
sql_t1.cpp test_binlog_fnc.cpp get_my_ip.cpp big_load.cpp get_com_select_insert.cpp
|
|
different_size.cpp fw_copy_rules maxinfo_func.cpp config_operations.cpp rds_vpc.cpp execute_cmd.cpp
|
|
blob_test.cpp keepalived_func.cpp tcp_connection.cpp base/stopwatch.cpp
|
|
# Include the CDC connector in the core library
|
|
${CMAKE_SOURCE_DIR}/connectors/cdc-connector/cdc_connector.cpp)
|
|
target_link_libraries(testcore ${MARIADB_CONNECTOR_LIBRARIES} ${JANSSON_LIBRARIES} z m pthread ssl dl rt crypto crypt maxbase)
|
|
install(TARGETS testcore DESTINATION system-test)
|
|
add_dependencies(testcore connector-c jansson maxbase)
|
|
|
|
# Include the CDC connector headers
|
|
include_directories(${CMAKE_SOURCE_DIR}/../connectors/cdc-connector/)
|
|
|
|
# Tool used to check backend state
|
|
add_test_executable_notest(check_backend.cpp check_backend check_backend LABELS CONFIG)
|
|
|
|
# Configuration tests
|
|
add_template(bug359 bug359)
|
|
add_template(bug495 bug495)
|
|
add_template(bug526 bug526)
|
|
add_template(bug479 bug479)
|
|
add_template(bug493 bug493)
|
|
add_template(bug643_1 bug643_1)
|
|
add_template(mxs652_bad_ssl bad_ssl)
|
|
add_template(mxs710_bad_socket mxs710_bad_socket)
|
|
add_template(mxs710_bad_socket mxs711_two_ports)
|
|
add_template(mxs720_line_with_no_equal mxs720_line_with_no_equal)
|
|
add_template(mxs720_wierd_line mxs720_wierd_line)
|
|
add_template(mxs710_bad_socket mxs799)
|
|
add_test_executable(config_test.cpp config_test replication LABELS CONFIG)
|
|
|
|
add_subdirectory(cdc_datatypes)
|
|
|
|
# Repeatedly connect to maxscale while the backends reject all connections, expect no crash
|
|
add_test_executable(backend_auth_fail.cpp backend_auth_fail replication LABELS readconnroute REPL_BACKEND)
|
|
|
|
# Regression case for the bug "MaxScale ignores host in user authentication"
|
|
add_test_executable(bug143.cpp bug143 replication LABELS MySQLAuth REPL_BACKEND)
|
|
|
|
# Regression case for the bug "Executing '\s' doesn't always produce complete result set"
|
|
add_test_executable(bug422.cpp bug422 replication LABELS readwritesplit readconnroute maxscale REPL_BACKEND)
|
|
|
|
# Regression case for the bug "Wildcard in host column of mysql.user table don't work properly"
|
|
add_test_executable(bug448.cpp bug448 replication LABELS MySQLAuth LIGHT REPL_BACKEND)
|
|
|
|
# Regression case for the bug "rwsplit counts every connection twice in master - counnection counts leak"
|
|
add_test_executable(bug469.cpp bug469 replication LABELS readwritesplit LIGHT REPL_BACKEND)
|
|
|
|
# Regression case for the bug "Routing Hints route to server sometimes doesn't work"
|
|
add_test_executable(bug471.cpp bug471 bug471 LABELS readwritesplit hintfilter REPL_BACKEND)
|
|
|
|
# Regression case for the bugs "malformed hints cause crash"
|
|
add_test_executable(bug473.cpp bug473 hints LABELS readwritesplit hintfilter REPL_BACKEND)
|
|
|
|
# Regression case for the bug "The end comment tag in hints isn't properly detected"
|
|
add_test_executable(bug475.cpp bug475 hints LABELS readwritesplit hintfilter REPL_BACKEND)
|
|
|
|
# Regression case for the bug "SHOW VARIABLES randomly failing with "Lost connection to MySQL server"
|
|
add_test_executable(bug488.cpp bug488 galera LABELS readwritesplit readconnroute maxscale GALERA_BACKEND)
|
|
|
|
# Regression case for the bug "rw-split router does not send last_insert_id() to master"
|
|
add_test_executable(bug507.cpp bug507 replication LABELS readwritesplit LIGHT REPL_BACKEND)
|
|
|
|
# Regression case for the bug "Referring to a nonexisting server in servers=... doesn't even raise a warning"
|
|
add_test_executable(bug509.cpp bug509 galera LABELS readwritesplit GALERA_BACKEND)
|
|
|
|
# Checks "SELECT * INTO OUTFILE" and "LOAD DATA LOCAL INFILE"
|
|
add_test_executable(bug519.cpp bug519 replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Regression case for the bug "'Current no. of conns' not going down"
|
|
add_test_executable(bug529.cpp bug529 replication LABELS readwritesplit readconnroute maxscale REPL_BACKEND)
|
|
|
|
# Regression case for the bugs "get_dcb fails if slaves are not available" and "Maxscale fails to start without anything in the logs if there is no slave available"
|
|
add_test_executable(bug547.cpp bug547 replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Regression case for the bug "crash if max_slave_connections=10% and 4 or less backends are configured"
|
|
add_test_executable(bug681.cpp bug681 galera.bug681 LABELS readwritesplit GALERA_BACKEND)
|
|
|
|
# Regression case for the bug "crash with tee filter"
|
|
#add_test_executable(bug643.cpp bug643 bug643 LABELS tee REPL_BACKEND)
|
|
|
|
# Regression case for the bug ""Different error messages from MariaDB and Maxscale"
|
|
add_test_script(bug561.sh bug561.sh replication LABELS MySQLAuth REPL_BACKEND)
|
|
|
|
# Regression case for the bug "Wrong error message for Access denied error"
|
|
add_test_script(bug562.sh bug562.sh replication LABELS MySQLAuth REPL_BACKEND)
|
|
|
|
# Regression case for the bug "Wrong charset settings"
|
|
add_test_script(bug564.sh bug564.sh replication LABELS MySQLProtocol REPL_BACKEND)
|
|
|
|
# Regression case for the bug "Clients CLIENT_FOUND_ROWS setting is ignored by maxscale"
|
|
add_test_executable(bug565.cpp bug565 replication LABELS MySQLProtocol REPL_BACKEND)
|
|
|
|
# Regression case for the bug "Crash if files from /dev/shm/ removed"
|
|
add_test_script(bug567.sh bug567.sh bug567 LABELS maxscale REPL_BACKEND)
|
|
|
|
# Regression case for the bug "Using regex filter hangs MaxScale"
|
|
add_test_executable(bug571.cpp bug571 bug571 LABELS regexfilter REPL_BACKEND)
|
|
|
|
# Attempt to use GRANT with wrong IP, expect no crash or hangs
|
|
add_test_executable(bug572.cpp bug572 replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Regression cases for the bug "Hint filter don't work if listed before regex filter in configuration file"
|
|
# (different filter sequence and configuration, but the same test, see .cnf for details)
|
|
add_test_derived(bug585 bug587 bug585 LABELS regexfilter REPL_BACKEND)
|
|
add_test_executable(bug587.cpp bug587 bug587 LABELS regexfilter hintfilter REPL_BACKEND)
|
|
add_test_derived(bug587_1 bug587 bug587_1 LABELS regexfilter hintfilter REPL_BACKEND)
|
|
|
|
# Tries to connect Maxscale when all slaves stopped
|
|
add_test_executable(bug592.cpp bug592 replication LABELS MySQLAuth readwritesplit REPL_BACKEND)
|
|
|
|
# Tries to do change user in the loop, checks that autorization is still ok
|
|
add_test_executable(bug601.cpp bug601 bug601 LABELS MySQLAuth MySQLProtocol REPL_BACKEND)
|
|
|
|
# Simple test with enable_root_user=true
|
|
add_test_executable(bug620.cpp bug620 bug620 LABELS MySQLAuth MySQLProtocol REPL_BACKEND)
|
|
|
|
# Regression case for the bug "Crash when user define with old password style (before 4.1 protocol)"
|
|
add_test_executable(bug626.cpp bug626 replication LABELS MySQLAuth MySQLProtocol REPL_BACKEND)
|
|
|
|
# Regression case for the bug 634 "SHOW SLAVE STATUS in RW SPLITTER is send to master"
|
|
add_test_executable(bug634.cpp bug634 replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Regression cases for several TEE filter hangs
|
|
#add_test_executable(bug645.cpp bug645 bug645 LABELS tee REPL_BACKEND)
|
|
#add_test_executable(bug645_1.cpp bug645_1 bug645_1 LABELS tee REPL_BACKEND)
|
|
#add_test_executable(bug649.cpp bug649 bug645 LABELS tee)
|
|
#add_test_executable(bug650.cpp bug650 bug650 LABELS tee REPL_BACKEND)
|
|
|
|
# Heavy test for TEE filter
|
|
#add_test_script(bug648 sql_queries bug648 LABELS tee UNSTABLE HEAVY REPL_BACKEND)
|
|
|
|
# Crash when host name for some user in mysql.user is very long
|
|
add_test_executable(bug653.cpp bug653 replication LABELS MySQLAuth MySQLProtocol REPL_BACKEND)
|
|
|
|
# Crash with malformed Maxadmin command
|
|
add_test_executable(bug654.cpp bug654 replication LABELS maxscale REPL_BACKEND)
|
|
|
|
# Regression case for the bug "Tee filter: closing child session causes MaxScale to fail"
|
|
#add_test_executable(bug657.cpp bug657 bug657 LABELS tee REPL_BACKEND)
|
|
|
|
# Block backends (master or all slaves) and tries to connect Maxscale
|
|
add_test_executable(bug658.cpp bug658 replication LABELS readwritesplit readconnroute maxscale REPL_BACKEND)
|
|
|
|
# Block all backends
|
|
add_test_executable(bug662.cpp bug662 bug662 LABELS readwritesplit readconnroute maxscale REPL_BACKEND)
|
|
|
|
# Bad TEE filter configuration
|
|
add_test_executable(bug664.cpp bug664 bug664 LABELS MySQLAuth MySQLProtocol)
|
|
|
|
# TEE fileter: execute long sequence of queries ans session commands in the loop
|
|
#add_test_executable(bug670.cpp bug670 bug670 LABELS tee REPL_BACKEND)
|
|
|
|
# Regression case for the bug "MaxScale crashes if "Users table data" is empty and "show dbusers" is executed in maxadmin"
|
|
add_test_executable(bug673.cpp bug673 bug673 LABELS MySQLAuth REPL_BACKEND)
|
|
|
|
# Crash in case of backend node in Galera cluster stopping and then reconnect to Maxscale
|
|
add_test_executable(bug676.cpp bug676 galera LABELS galeramon GALERA_BACKEND)
|
|
|
|
# Rgression test for th bug "RWSplit: 'SELECT @a:=@a+1 as a, test.b FROM test' breaks client session"
|
|
add_test_executable(bug694.cpp bug694 bug694 LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Compare @@hostname from "select @@wsrep_node_name, @@hostname" and from "select @@hostname, @@wsrep_node_name"
|
|
add_test_executable(bug699.cpp bug699 galera LABELS readwritesplit LIGHT GALERA_BACKEND)
|
|
|
|
# Wrong processing of 'SET GLOBAL sql_mode="ANSI"'
|
|
add_test_executable(bug705.cpp bug705 bug705 LABELS MySQLAuth REPL_BACKEND)
|
|
|
|
# Try SHOW GLOBAL STATUS via Maxscale
|
|
add_test_executable(bug711.cpp bug711 bug711 LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Prepared statement from PHP application
|
|
add_test_executable(bug729.cpp bug729 replication LABELS readwritesplit LIGHT REPL_BACKEND)
|
|
|
|
# Regression case for the bug "Regex filter and shorter than original replacement queries MaxScale" (crash)
|
|
add_test_executable(bug730.cpp bug730 bug730 LABELS regexfilter REPL_BACKEND)
|
|
|
|
# Test MariaDB 10.2 bulk inserts
|
|
add_test_executable(bulk_insert.cpp bulk_insert bulk_insert LABELS MySQLProtocol REPL_BACKEND 10.2)
|
|
|
|
# Tests for the CCRFilter module
|
|
add_test_executable(ccrfilter.cpp ccrfilter_test ccrfilter LABELS ccrfilter LIGHT REPL_BACKEND)
|
|
|
|
# Tries to reconfigure replication setup to use another node as a Master
|
|
add_test_executable(change_master_during_session.cpp change_master_during_session replication LABELS readwritesplit mysqlmon REPL_BACKEND)
|
|
|
|
# Executes change_user command in the loop
|
|
add_test_executable(change_user.cpp change_user replication LABELS MySQLAuth readwritesplit MySQLProtocol LIGHT REPL_BACKEND)
|
|
|
|
# Tries to connect to non existing DB, expects no crash
|
|
add_test_executable(connect_to_nonexisting_db.cpp connect_to_nonexisting_db replication LABELS MySQLAuth MySQLProtoco LIGHT REPL_BACKEND)
|
|
|
|
# check if max_connections parameter works
|
|
add_test_executable(connection_limit.cpp connection_limit connection_limit LABELS maxscale LIGHT REPL_BACKEND)
|
|
|
|
# Tries to open to many connections, expect no crash
|
|
add_test_executable(crash_out_of_files.cpp crash_out_of_files load LABELS maxscale HEAVY REPL_BACKEND)
|
|
|
|
# Tries to open to many connections, expect no crash, with Galera backend
|
|
add_test_executable(crash_out_of_files_galera.cpp crash_out_of_files_galera galera LABELS maxscale HEAVY GALERA_BACKEND)
|
|
|
|
# Tries INSERTs with size close to 0x0ffffff * N
|
|
add_test_executable(different_size_rwsplit.cpp different_size_rwsplit replication LABELS readwritesplit HEAVY REPL_BACKEND)
|
|
|
|
# Tries to use 'maxkeys', 'maxpasswrd'
|
|
add_test_executable(encrypted_passwords.cpp encrypted_passwords replication LABELS maxscale LIGHT REPL_BACKEND)
|
|
|
|
# Basic MaxCtrl test
|
|
add_test_executable(maxctrl_basic.cpp maxctrl_basic replication LABELS maxctrl REPL_BACKEND)
|
|
|
|
# MySQL Monitor with Multi-master configurations
|
|
add_test_executable(mysqlmon_multimaster.cpp mysqlmon_multimaster mysqlmon_multimaster LABELS mysqlmon REPL_BACKEND BREAKS_REPL)
|
|
|
|
# MySQL Monitor crash safety
|
|
#add_test_executable(mysqlmon_backup.cpp mysqlmon_backup mysqlmon_backup LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# MySQL Monitor Failover Test
|
|
add_test_executable(mysqlmon_detect_standalone_master.cpp mysqlmon_detect_standalone_master mysqlmon_detect_standalone_master LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# MySQL Monitor Failover (automatic) Test
|
|
add_test_executable(mysqlmon_failover_auto.cpp mysqlmon_failover_auto mysqlmon_failover_auto LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# MySQL Monitor Failover (manual) Test
|
|
add_test_executable(mysqlmon_failover_manual.cpp mysqlmon_failover_manual mysqlmon_failover_manual LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# MySQL Monitor manual failover with many valid candidates
|
|
add_test_executable(mysqlmon_failover_manual2.cpp mysqlmon_failover_manual2_4 mysqlmon_failover_manual2_4 LABELS mysqlmon REPL_BACKEND)
|
|
add_test_executable(mysqlmon_failover_manual2.cpp mysqlmon_failover_manual2_3 mysqlmon_failover_manual2_3 LABELS mysqlmon REPL_BACKEND)
|
|
add_test_executable(mysqlmon_failover_manual2.cpp mysqlmon_failover_manual2_2 mysqlmon_failover_manual2_2 LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# MySQL Monitor switchover
|
|
add_test_executable(mysqlmon_switchover.cpp mysqlmon_switchover mysqlmon_switchover LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# MySQL Monitor switchover with bad master
|
|
add_test_executable(mysqlmon_switchover_bad_master.cpp mysqlmon_switchover_bad_master mysqlmon_switchover_bad_master LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# MySQL Monitor manual failover with no valid slaves, uses config of mysqlmon_failover_auto
|
|
add_test_executable(mysqlmon_failover_no_slaves.cpp mysqlmon_failover_no_slaves mysqlmon_failover_auto LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# MySQL Monitor Rejoin (good) Test
|
|
add_test_executable(mysqlmon_rejoin_good.cpp mysqlmon_rejoin_good mysqlmon_rejoin_good LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# MySQL Monitor Rejoin (bad) Test, use template for Rejoin (good)
|
|
add_test_executable(mysqlmon_rejoin_bad.cpp mysqlmon_rejoin_bad mysqlmon_rejoin_good LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# MySQL Monitor Rejoin (bad2) Test, use template for Rejoin (good)
|
|
add_test_executable(mysqlmon_rejoin_bad2.cpp mysqlmon_rejoin_bad2 mysqlmon_rejoin_good LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# MySQL Monitor Rejoin tests
|
|
add_test_executable(mysqlmon_rejoin_manual.cpp mysqlmon_rejoin_manual mysqlmon_rejoin_manual LABELS mysqlmon REPL_BACKEND)
|
|
add_test_executable(mysqlmon_rejoin_manual2.cpp mysqlmon_rejoin_manual2 mysqlmon_rejoin_manual LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# MySQL Monitor rolling master
|
|
add_test_executable(mysqlmon_failover_rolling_master.cpp mysqlmon_failover_rolling_master mysqlmon_failover_rolling_master LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# MySQL Monitor rejoin old slave
|
|
add_test_executable(mysqlmon_failover_rejoin_old_slave.cpp mysqlmon_failover_rejoin_old_slave mysqlmon_failover_rejoin_old_slave LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# MySQL Monitor rolling restart slaves
|
|
add_test_executable(mysqlmon_failover_rolling_restart_slaves.cpp mysqlmon_failover_rolling_restart_slaves mysqlmon_failover_rolling_restart_slaves LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# MySQL Monitor failover stress
|
|
add_test_executable(mysqlmon_failover_stress.cpp mysqlmon_failover_stress mysqlmon_failover_stress LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# MySQL Monitor switchover stress
|
|
add_test_executable(mysqlmon_switchover_stress.cpp mysqlmon_switchover_stress mysqlmon_switchover_stress LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# Check monitoring and failover when ignore_external_masters is enabled
|
|
add_test_executable(mysqlmon_external_master.cpp mysqlmon_external_master mysqlmon_external_master LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# Check failover, switchover and rejoin with scheduled server events, uses config of mysqlmon_rejoin_good
|
|
add_test_executable(mysqlmon_fail_switch_events.cpp mysqlmon_fail_switch_events mysqlmon_rejoin_good LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# MySQL Monitor reset-replication test, use template for Rejoin (good)
|
|
add_test_executable(mysqlmon_reset_replication.cpp mysqlmon_reset_replication mysqlmon_rejoin_good LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# Test monitor state change events when manually clearing server bits
|
|
add_test_executable(false_monitor_state_change.cpp false_monitor_state_change replication LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# A set of tests for Firewall filter
|
|
add_test_executable(fwf.cpp fwf fwf LABELS dbfwfilter REPL_BACKEND)
|
|
add_test_executable(fwf2.cpp fwf2 fwf LABELS dbfwfilter REPL_BACKEND)
|
|
add_test_executable(fwf_duplicate_rules.cpp fwf_duplicate_rules fwf LABELS dbfwfilter REPL_BACKEND)
|
|
add_test_executable(fwf_prepared_stmt.cpp fwf_prepared_stmt fwf LABELS dbfwfilter REPL_BACKEND)
|
|
add_test_executable(fwf_actions.cpp fwf_actions fwf_action LABELS dbfwfilter REPL_BACKEND)
|
|
add_test_executable(fwf_logging.cpp fwf_logging fwf_logging LABELS dbfwfilter REPL_BACKEND)
|
|
add_test_executable(fwf_reload.cpp fwf_reload fwf LABELS dbfwfilter REPL_BACKEND)
|
|
add_test_executable(fwf_syntax.cpp fwf_syntax fwf_syntax LABELS dbfwfilter REPL_BACKEND)
|
|
add_test_executable(fwf_com_ping.cpp fwf_com_ping fwf_com_ping LABELS dbfwfilter REPL_BACKEND)
|
|
add_test_executable(mxs1583_fwf.cpp mxs1583_fwf mxs1583_fwf LABELS dbfwfilter REPL_BACKEND)
|
|
|
|
# Galera node priority test
|
|
add_test_executable(galera_priority.cpp galera_priority galera_priority LABELS galeramon LIGHT GALERA_BACKEND)
|
|
|
|
# Block and unblock Master and check that Maxscale survived
|
|
add_test_executable(kill_master.cpp kill_master replication LABELS readwritesplit LIGHT REPL_BACKEND)
|
|
|
|
# Test insertstream filter
|
|
add_test_script(insertstream insertstream.sh insertstream LABELS insertstream REPL_BACKEND)
|
|
|
|
# Check load balancing
|
|
add_test_executable(load_balancing.cpp load_balancing load LABELS readwritesplit LIGHT REPL_BACKEND)
|
|
|
|
# Check load balancing with Galera backend
|
|
add_test_executable(load_balancing_galera.cpp load_balancing_galera load_galera LABELS readwritesplit GALERA_BACKEND)
|
|
|
|
# Check load balancing parameters with Galera backend and 1 persistent connection
|
|
add_test_derived(load_balancing_galera_pers1 load_balancing_galera load_galera_pers1 LABELS readwritesplit HEAVY GALERA_BACKEND)
|
|
|
|
# Check load balancing parameters with Galera backend and 10 persistent connections
|
|
add_test_derived(load_balancing_galera_pers10 load_balancing_galera load_galera_pers10 LABELS readwritesplit HEAVY GALERA_BACKEND)
|
|
|
|
# Check load balancing parameters with 1 persistent connection
|
|
add_test_derived(load_balancing_pers1 load_balancing load_pers1 LABELS readwritesplit HEAVY REPL_BACKEND)
|
|
|
|
# Check load balancing parameters with 10 persistent connections
|
|
add_test_derived(load_balancing_pers10 load_balancing load_pers10 LABELS readwritesplit HEAVY REPL_BACKEND)
|
|
|
|
# Test with extremely big blob inserting
|
|
add_test_executable(longblob.cpp longblob longblob LABELS readwritesplit readconnroute UNSTABLE HEAVY REPL_BACKEND)
|
|
|
|
# Test with extremely big blob inserting/selecting with > 16 mb data blocks
|
|
add_test_executable(mxs1110_16mb.cpp mxs1110_16mb longblob_filters LABELS readwritesplit readconnroute HEAVY REPL_BACKEND)
|
|
|
|
# Schemarouter implicit database detection
|
|
add_test_executable(mxs1310_implicit_db.cpp mxs1310_implicit_db mxs1310_implicit_db LABELS schemarouter REPL_BACKEND)
|
|
|
|
# Retry reads with persistent connections
|
|
add_test_executable(mxs1323_retry_read.cpp mxs1323_retry_read mxs1323 LABELS readwritesplit LIGHT REPL_BACKEND)
|
|
add_test_executable(mxs1323_stress.cpp mxs1323_stress mxs1323 LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# INSERT extremelly big number of rows
|
|
add_test_executable(lots_of_rows.cpp lots_of_rows galera LABELS readwritesplit HEAVY GALERA_BACKEND)
|
|
|
|
# A set of MariaDB server tests executed against Maxscale RWSplit
|
|
add_test_script(mariadb_tests_hartmut mariadb_tests_hartmut.sh replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# A set of MariaDB server tests executed against Maxscale RWSplit (Galera backend)
|
|
add_test_script(mariadb_tests_hartmut_galera mariadb_tests_hartmut.sh galera_hartmut LABELS readwritesplit GALERA_BACKEND)
|
|
|
|
# Creates a number of connections > max_connections setting
|
|
add_test_executable(max_connections.cpp max_connections replication LABELS MySQLAuth MySQLProtocol UNSTABLE HEAVY REPL_BACKEND)
|
|
|
|
# Test of Maxinfo interface (http)
|
|
#add_test_executable(maxinfo.cpp maxinfocpp maxinfo LABELS maxinfo UNSTABLE HEAVY REPL_BACKEND)
|
|
|
|
# Test of Maxinfo SQL interface
|
|
add_test_executable(maxinfo_sql.cpp maxinfo_sql maxinfo_sql LABELS maxinfo REPL_BACKEND)
|
|
|
|
# Test of Maxinfo interface (http), python impelemntation
|
|
add_test_script(maxinfo.py maxinfo.py maxinfo LABELS maxinfo LIGHT REPL_BACKEND)
|
|
|
|
# Checks tha Maxscale processis running as 'maxscale' user
|
|
add_test_executable(maxscale_process_user.cpp maxscale_process_user replication LABELS maxscale LIGHT REPL_BACKEND)
|
|
|
|
# Test of multi master monitor
|
|
add_test_executable(mm.cpp mm mm LABELS mmmon BREAKS_REPL)
|
|
|
|
# Regression case for the bug "Two monitors loaded at the same time result into not working installation"
|
|
add_test_executable(mxs118.cpp mxs118 mxs118 LABELS maxscale LIGHT REPL_BACKEND)
|
|
|
|
# Regression case for the bug "disable_sescmd_history causes MaxScale to crash under load"
|
|
add_test_executable(mxs127.cpp mxs127 mxs127 LABELS readwritesplit LIGHT REPL_BACKEND)
|
|
|
|
# Prepearing and execution statements in the loop
|
|
add_test_executable(mxs244_prepared_stmt_loop.cpp mxs244_prepared_stmt_loop galera LABELS readwritesplit readconnroute LIGHT GALERA_BACKEND)
|
|
|
|
# Regression case for the bug "SELECT INTO OUTFILE query succeeds even if backed fails"
|
|
add_test_executable(mxs280_select_outfile.cpp mxs280_select_outfile replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Tries prepared stmt 'SELECT 1,1,1,1...." with different nu,ber of '1'
|
|
add_test_executable(mxs314.cpp mxs314 galera LABELS MySQLProtocol readwritesplit LIGHT GALERA_BACKEND)
|
|
|
|
# Testing of the master replacement feature
|
|
add_test_executable(mxs359_master_switch.cpp mxs359_master_switch mxs359_master_switch LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Test read-only connections with master replacement
|
|
add_test_executable(mxs359_read_only.cpp mxs359_read_only mxs359_read_only LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Test master_failure_mode=error_on_write and master replacement
|
|
add_test_executable(mxs359_error_on_write.cpp mxs359_error_on_write mxs359_error_on_write LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Binary protocol prepared statement tests
|
|
add_test_executable(binary_ps.cpp binary_ps replication LABELS readwritesplit LIGHT REPL_BACKEND)
|
|
add_test_executable(binary_ps_cursor.cpp binary_ps_cursor replication LABELS readwritesplit LIGHT REPL_BACKEND)
|
|
|
|
# Creates and closes a lot of connections, checks that 'maxadmin list servers' shows 0 connections at the end
|
|
add_test_executable(mxs321.cpp mxs321 replication LABELS maxscale readwritesplit REPL_BACKEND)
|
|
|
|
# Crash with Galera and backend restart when persistant cfonnections are in use
|
|
add_test_derived(mxs361 pers_02 mxs361 mxs361 LABELS maxscale GALERA_BACKEND)
|
|
|
|
# Load huge file with 'LOAD DATA LOCAL INFILE'
|
|
add_test_executable(mxs365.cpp mxs365 replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Connect to Maxscale with user with only 'SELECT' priveledge
|
|
add_test_executable(mxs37_table_privilege.cpp mxs37_table_privilege replication LABELS MySQLAuth LIGHT REPL_BACKEND)
|
|
|
|
# Connect to Maxscale with user with only 'SELECT' priveledge (Galera backend)
|
|
add_test_derived(mxs37_table_privilege_galera mxs37_table_privilege galera LABELS MySQLAuth GALERA_BACKEND)
|
|
|
|
# Connect repeatedly to Schema router and execute simple query, check if auth is ok
|
|
add_test_executable(mxs431.cpp mxs431 sharding LABELS schemarouter REPL_BACKEND BREAKS_REPL)
|
|
|
|
# execute SELECT REPEAT('a',i), where 'i' is changing from 1 to 50000 (bug "Session freeze when small tail packet")
|
|
add_test_executable(mxs47.cpp mxs47 replication LABELS MySQLProtocol LIGHT REPL_BACKEND)
|
|
|
|
# Regression case for the bug "USE <db> hangs when Tee filter uses matching"
|
|
#add_test_executable(mxs501_tee_usedb.cpp mxs501_tee_usedb mxs501 LABELS tee REPL_BACKEND)
|
|
|
|
# Open connection, execute 'change user', close connection in the loop
|
|
add_test_executable(mxs548_short_session_change_user.cpp mxs548_short_session_change_user mxs548 LABELS MySQLProtocol readwritesplit REPL_BACKEND)
|
|
|
|
# Playing with blocking and unblocking Master under load
|
|
add_test_executable(mxs559_block_master.cpp mxs559_block_master mxs559 LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Playing with blocking and unblocking nodes under INSERT load
|
|
add_test_executable(mxs564_big_dump.cpp mxs564_big_dump galera_mxs564 LABELS readwritesplit readconnroute GALERA_BACKEND)
|
|
|
|
# Executes simple queries from python script in the loop
|
|
add_test_script(mxs585.py mxs585.py replication LABELS readwritesplit readconnroute UNSTABLE HEAVY REPL_BACKEND)
|
|
|
|
# Simple transactions in the loop from python script with client SSL on
|
|
add_test_script(mxs598.py mxs598.py ssl LABELS MySQLProtocol UNSTABLE HEAVY REPL_BACKEND)
|
|
|
|
# Regression case for the bug "MaxScale fails to start silently if config file is not readable"
|
|
add_test_executable(mxs621_unreadable_cnf.cpp mxs621_unreadable_cnf replication LABELS maxscale REPL_BACKEND)
|
|
|
|
# playing with 'restart service' and restart Maxscale under load
|
|
add_test_executable(mxs657_restart.cpp mxs657_restart replication LABELS maxscale HEAVY REPL_BACKEND)
|
|
add_test_executable(mxs657_restart_service.cpp mxs657_restart_service replication LABELS maxscale REPL_BACKEND)
|
|
|
|
# put cyrillic letters to the table and check from backend
|
|
add_test_executable(mxs682_cyrillic.cpp mxs682_cyrillic replication LABELS maxscale LIGHT REPL_BACKEND)
|
|
|
|
# put cyrillic letters to the table and check from backend (Galera backend)
|
|
add_test_derived(mxs682_cyrillic_galera mxs682_cyrillic galera LABELS maxscale GALERA_BACKEND)
|
|
|
|
# Connect using different default database using user with database and table level grants
|
|
add_test_executable(mxs716.cpp mxs716 replication LABELS MySQLAuth LIGHT REPL_BACKEND)
|
|
|
|
# MaxScale configuration check functionality test (maxscale -c)
|
|
add_test_executable(mxs722.cpp mxs722 mxs722 LABELS maxscale LIGHT REPL_BACKEND)
|
|
|
|
# Test of 'maxadmin' user Unix accounts enable/disable
|
|
add_test_executable(mxs729_maxadmin.cpp mxs729_maxadmin replication LABELS MaxAdminAuth LIGHT REPL_BACKEND)
|
|
|
|
# Simple connect test in bash, checks that defined in cmd line DB is selected
|
|
add_test_script(mxs791.sh mxs791.sh replication LABELS UNSTABLE HEAVY REPL_BACKEND)
|
|
|
|
# Simple connect test in bash, checks that defined in cmd line DB is selected (Galera backend)
|
|
add_test_script(mxs791_galera.sh mxs791_galera.sh galera LABELS UNSTABLE HEAVY GALERA_BACKEND)
|
|
|
|
# Checks "Current no. of conns" maxadmin output after long blob inserting
|
|
add_test_executable(mxs812_1.cpp mxs812_1 longblob LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Checks "Current no. of conns" maxadmin output after long blob inserting
|
|
add_test_executable(mxs812_2.cpp mxs812_2 replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Tests maxpasswd
|
|
add_test_executable(mxs822_maxpasswd.cpp mxs822_maxpasswd maxpasswd LABELS maxscale REPL_BACKEND)
|
|
|
|
# Do only SELECTS during time > wait_timeout and then do INSERT
|
|
add_test_executable(mxs827_write_timeout.cpp mxs827_write_timeout mxs827_write_timeout LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-872: MaxScale doesn't understand roles
|
|
# https://jira.mariadb.org/browse/MXS-872
|
|
add_test_executable(mxs872_roles.cpp mxs872_roles replication LABELS REPL_BACKEND)
|
|
|
|
# MXS-1947: Composite roles are not supported
|
|
# https://jira.mariadb.org/browse/MXS-1947
|
|
add_test_executable(mxs1947_composite_roles.cpp mxs1947_composite_roles replication LABELS REPL_BACKEND)
|
|
|
|
# Block and unblock first and second slaves and check that they are recovered
|
|
add_test_executable(mxs874_slave_recovery.cpp mxs874_slave_recovery mxs874 LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# A set of dynamic configuration tests
|
|
# Server removal test
|
|
add_test_executable(mxs922_bad_server.cpp mxs922_bad_server mxs922 LABELS maxscale REPL_BACKEND)
|
|
|
|
# Server creation test
|
|
add_test_executable(mxs922_server.cpp mxs922_server mxs922_base LABELS maxscale REPL_BACKEND)
|
|
|
|
# Monitor creation test
|
|
add_test_executable(mxs922_monitor.cpp mxs922_monitor mxs922_base LABELS maxscale REPL_BACKEND)
|
|
|
|
# Double creation of listeners, expect no crash
|
|
add_test_executable(mxs922_double_listener.cpp mxs922_double_listener mxs922_base LABELS maxscale REPL_BACKEND)
|
|
|
|
# Test persisting of configuration changes
|
|
add_test_executable(mxs922_restart.cpp mxs922_restart mxs922 LABELS maxscale REPL_BACKEND)
|
|
|
|
# Server scaling test
|
|
add_test_executable(mxs922_scaling.cpp mxs922_scaling mxs922_base LABELS maxscale REPL_BACKEND)
|
|
|
|
# Dynamic listener SSL test
|
|
add_test_executable(mxs922_listener_ssl.cpp mxs922_listener_ssl mxs922_base LABELS maxscale REPL_BACKEND)
|
|
|
|
# Alter routers at runtime
|
|
add_test_executable(alter_router.cpp alter_router alter_router LABELS maxscale REPL_BACKEND)
|
|
|
|
# Test of MaxRows filter
|
|
add_test_executable(mxs1071_maxrows.cpp mxs1071_maxrows maxrows LABELS maxrowsfilter REPL_BACKEND)
|
|
|
|
# Test of Masking filter
|
|
add_test_script(masking_mysqltest masking_mysqltest_driver.sh masking_mysqltest LABELS maskingfilter REPL_BACKEND)
|
|
|
|
add_test_script(masking_user masking_user.sh masking_mysqltest LABELS maskingfilter REPL_BACKEND)
|
|
|
|
add_test_executable(masking_auto_firewall.cpp masking_auto_firewall masking_auto_firewall LABELS masking REPL_BACKEND)
|
|
|
|
# Test of Cache filter - basics
|
|
add_test_script(cache_basic cache_basic.sh cache_basic LABELS cachefilter REPL_BACKEND)
|
|
|
|
# Test of Cache filter - runtime configuration
|
|
add_test_executable(cache_runtime.cpp cache_runtime cache_runtime LABELS cachefilter REPL_BACKEND)
|
|
|
|
# Test of Cache filter - ttl runtime configuration
|
|
add_test_executable(cache_runtime_ttl.cpp cache_runtime_ttl cache_runtime_ttl LABELS cachefilter REPL_BACKEND)
|
|
|
|
# Set utf8mb4 in the backend and restart Maxscale
|
|
add_test_executable(mxs951_utfmb4.cpp mxs951_utfmb4 replication LABELS REPL_BACKEND)
|
|
|
|
# Execute given SQL through readwritesplit (with temporary tables usage)
|
|
add_test_executable(mxs957.cpp mxs957 replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Regression case for the bug "Defunct processes after maxscale have executed script during failover"
|
|
add_test_executable(mxs1045.cpp mxs1045 mxs1045 LABELS maxscale REPL_BACKEND)
|
|
|
|
# MXS-1123: connect_timeout setting causes frequent disconnects
|
|
# https://jira.mariadb.org/browse/MXS-1123
|
|
add_test_executable(mxs1123.cpp mxs1123 mxs1123 LABELS maxscale readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1319: Maxscale selecting extra whitespace while loading users
|
|
# https://jira.mariadb.org/browse/MXS-1319
|
|
add_test_executable(mxs1319.cpp mxs1319 replication LABELS MySQLAuth REPL_BACKEND)
|
|
|
|
# MXS-1418: Removing a server from a service breaks the connection
|
|
# https://jira.mariadb.org/browse/MXS-1418
|
|
add_test_executable(mxs1418.cpp mxs1418 replication LABELS readwritesplit maxscale REPL_BACKEND)
|
|
|
|
# MXS-1295: MaxScale's readwritesplit router does not take into account the fact
|
|
# that stored procedure call may change the value of a user variable
|
|
#
|
|
# https://jira.mariadb.org/browse/MXS-1295
|
|
add_test_executable(mxs1295_sp_call.cpp mxs1295_sp_call mxs1295 LABELS maxscale readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1451: Password is not stored with skip_authentication=true
|
|
# https://jira.mariadb.org/browse/MXS-1451
|
|
add_test_executable(mxs1451_skip_auth.cpp mxs1451_skip_auth mxs1451_skip_auth LABELS maxscale REPL_BACKEND)
|
|
|
|
# MXS-1457: Deleted servers are not ignored when users are loaded
|
|
# https://jira.mariadb.org/browse/MXS-1457
|
|
add_test_executable(mxs1457_ignore_deleted.cpp mxs1457_ignore_deleted mxs1457_ignore_deleted LABELS REPL_BACKEND)
|
|
|
|
# MXS-1468: Using dynamic commands to create readwritesplit configs fail after restart
|
|
# https://jira.mariadb.org/browse/MXS-1468
|
|
add_test_executable(mxs1468.cpp mxs1468 mxs1468 LABELS REPL_BACKEND)
|
|
|
|
# MXS-1493: Use replication heartbeat in mysqlmon
|
|
# https://jira.mariadb.org/browse/MXS-1493
|
|
add_test_executable(verify_master_failure.cpp verify_master_failure verify_master_failure LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# MXS-1476: priority value ignored when a Galera node rejoins with a lower wsrep_local_index than current master
|
|
# https://jira.mariadb.org/browse/MXS-1476
|
|
add_test_executable(mxs1476.cpp mxs1476 mxs1476 LABELS galeramon GALERA_BACKEND)
|
|
|
|
# MXS-1503: Test master_reconnection
|
|
# https://jira.mariadb.org/browse/MXS-1503
|
|
add_test_executable(mxs1503_master_reconnection.cpp mxs1503_master_reconnection mxs1503_master_reconnection LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Master reconnection with session commands
|
|
add_test_executable(mxs1503_queued_sescmd.cpp mxs1503_queued_sescmd mxs1503_master_reconnection LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Check that no extra slaves are taken into use
|
|
add_test_executable(mxs1503_extra_slaves.cpp mxs1503_extra_slaves mxs1503_extra_slaves LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1506: Delayed query retry
|
|
# https://jira.mariadb.org/browse/MXS-1506
|
|
add_test_executable(mxs1506_delayed_retry.cpp mxs1506_delayed_retry mxs1506_delayed_retry LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1506: Delayed retry without master
|
|
# https://jira.mariadb.org/browse/MXS-1506
|
|
add_test_executable(mxs1506_no_master.cpp mxs1506_no_master mxs1506_delayed_retry LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1507: Transaction replay
|
|
# https://jira.mariadb.org/browse/MXS-1507
|
|
add_test_executable(mxs1507_trx_replay.cpp mxs1507_trx_replay mxs1507_trx_replay LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1507: Inconsistent transactions
|
|
# https://jira.mariadb.org/browse/MXS-1507
|
|
add_test_executable(mxs1507_inconsistent_trx.cpp mxs1507_inconsistent_trx mxs1507_trx_replay LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1507: Transaction migration
|
|
# https://jira.mariadb.org/browse/MXS-1507
|
|
add_test_executable(mxs1507_migrate_trx.cpp mxs1507_migrate_trx mxs1507_trx_replay LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1507: Transaction replay
|
|
# https://jira.mariadb.org/browse/MXS-1507
|
|
add_test_executable(mxs1507_trx_stress.cpp mxs1507_trx_stress mxs1507_trx_stress LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1509: Show correct server state for multisource replication
|
|
# https://jira.mariadb.org/browse/MXS-1509
|
|
add_test_executable(mxs1509.cpp mxs1509 mxs1509 LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# MXS-1516: existing connection don't change routing, even if master switched
|
|
# https://jira.mariadb.org/browse/MXS-1516
|
|
add_test_executable(mxs1516.cpp mxs1516 replication LABELS readconnroute REPL_BACKEND)
|
|
|
|
# MXS-1549: Optimistic transaction tests
|
|
# https://jira.mariadb.org/browse/MXS-1549
|
|
add_test_executable(mxs1549_optimistic_trx.cpp mxs1549_optimistic_trx mxs1549_optimistic_trx LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1542: Check that UTF16 strings work
|
|
# https://jira.mariadb.org/browse/MXS-1542
|
|
add_test_executable(mxs1542.cpp mxs1542 avro LABELS avrorouter REPL_BACKEND)
|
|
|
|
# MXS-1543: Avrorouter doesn't detect MIXED or STATEMENT format replication
|
|
# https://jira.mariadb.org/browse/MXS-1543
|
|
add_test_executable(mxs1543.cpp mxs1543 avro LABELS avrorouter REPL_BACKEND)
|
|
|
|
# MXS-1585: Crash in MaxScale 2.1.12
|
|
# https://jira.mariadb.org/browse/MXS-1585
|
|
add_test_executable(mxs1585.cpp mxs1585 mxs1585 LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1643: Too many monitor events are triggered
|
|
# https://jira.mariadb.org/browse/MXS-1643
|
|
add_test_executable(mxs1643_extra_events.cpp mxs1643_extra_events mxs1643_extra_events LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# MXS-1653: sysbench failed to initialize w/ MaxScale read/write splitter
|
|
# https://jira.mariadb.org/browse/MXS-1653
|
|
add_test_executable(mxs1653_ps_hang.cpp mxs1653_ps_hang replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1677: "Query could not be parsed" errors
|
|
# https://jira.mariadb.org/browse/MXS-1677
|
|
add_test_executable(mxs1677_temp_table.cpp mxs1677_temp_table replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1678: Stopping IO thread on relay master causes it to be promoted as master
|
|
# https://jira.mariadb.org/browse/MXS-1678
|
|
add_test_executable(mxs1678_relay_master.cpp mxs1678_relay_master replication LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# MXS-1713: SchemaRouter unable to process SHOW DATABASES for a lot of schemas
|
|
# https://jira.mariadb.org/browse/MXS-1713
|
|
add_test_executable(mxs1713_lots_of_databases.cpp mxs1713_lots_of_databases mxs1713_lots_of_databases LABELS schemarouter REPL_BACKEND)
|
|
|
|
# MXS-1731: Empty version_string is not detected
|
|
# https://jira.mariadb.org/browse/MXS-1731
|
|
add_test_executable(mxs1731_old_persisted_config.cpp mxs1731_old_persisted_config replication LABELS maxscale REPL_BACKEND)
|
|
|
|
# MXS-1743: Maxscale unable to enforce round-robin between read service for Slave
|
|
# https://jira.mariadb.org/browse/MXS-1743
|
|
add_test_executable(mxs1743_rconn_bitmask.cpp mxs1743_rconn_bitmask mxs1743_rconn_bitmask LABELS REPL_BACKEND)
|
|
|
|
# MXS-1751: Maxscale crashes when certain config is in play (with nodes down)
|
|
# https://jira.mariadb.org/browse/MXS-1751
|
|
add_test_executable(mxs1751_available_when_donor_crash.cpp mxs1751_available_when_donor_crash mxs1751_available_when_donor_crash LABELS galeramon GALERA_BACKEND)
|
|
|
|
# MXS-1760: With use_sql_variables_in=master, unknown PS errors are logged
|
|
# https://jira.mariadb.org/browse/MXS-1760
|
|
add_test_executable(mxs1760_use_sql_variables_in.cpp mxs1760_use_sql_variables_in mxs1760_use_sql_variables_in LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1773: Failing LOAD DATA LOCAL INFILE confuses readwritesplit
|
|
# https://jira.mariadb.org/browse/MXS-1773
|
|
add_test_executable(mxs1773_failing_ldli.cpp mxs1773_failing_ldli replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1776: recursive COM_STMT_EXECUTE execution
|
|
# https://jira.mariadb.org/browse/MXS-1776
|
|
add_test_executable(mxs1776_ps_exec_hang.cpp mxs1776_ps_exec_hang replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1778: Use GTID from OK packets for consistent reads
|
|
# https://jira.mariadb.org/browse/MXS-1776
|
|
add_test_executable(mxs1778_causal_reads.cpp mxs1778_causal_reads mxs1778_causal_reads LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1786: Hang with COM_STATISTICS
|
|
# https://jira.mariadb.org/browse/MXS-1786
|
|
add_test_executable(mxs1786_statistics.cpp mxs1786_statistics replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1787: Crash with PS: CALL p1((SELECT f1()), ?)
|
|
# https://jira.mariadb.org/browse/MXS-1787
|
|
add_test_executable(mxs1787_call_ps.cpp mxs1787_call_ps replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Modified test for MXS-1787 that checks that slave reconnection works
|
|
add_test_executable(mxs1787_slave_reconnection.cpp mxs1787_slave_reconnection replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1804: request 16M-1 stmt_prepare command packet connect hang
|
|
# https://jira.mariadb.org/browse/MXS-1804
|
|
add_test_executable(mxs1804_long_ps_hang.cpp mxs1804_long_ps_hang replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1808: Crash with mysql_stmt_send_long_data
|
|
# https://jira.mariadb.org/browse/MXS-1808
|
|
add_test_executable(mxs1808_long_data.cpp mxs1808_long_data replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1824: Debug assertion with two open cursors
|
|
# https://jira.mariadb.org/browse/MXS-1824
|
|
add_test_executable(mxs1824_double_cursor.cpp mxs1824_double_cursor replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1828: Multiple LOAD DATA LOCAL INFILE commands in one query cause a hang
|
|
# https://jira.mariadb.org/browse/MXS-1828
|
|
add_test_executable(mxs1828_double_local_infile.cpp mxs1828_double_local_infile replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1831: No error on invalid monitor parameter alteration
|
|
# https://jira.mariadb.org/browse/MXS-1831
|
|
add_test_executable(mxs1831_unknown_param.cpp mxs1831_unknown_param replication LABELS REPL_BACKEND)
|
|
|
|
# MXS-1873: Large session commands cause errors
|
|
# https://jira.mariadb.org/browse/MXS-1873
|
|
add_test_executable(mxs1873_large_sescmd.cpp mxs1873_large_sescmd replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1896: LOAD DATA INFILE is mistaken for LOAD DATA LOCAL INFILE
|
|
# https://jira.mariadb.org/browse/MXS-1896
|
|
add_test_executable(mxs1896_load_data_infile.cpp mxs1896_load_data_infile replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1899: generated [maxscale] section causes errors
|
|
# https://jira.mariadb.org/browse/MXS-1899
|
|
add_test_executable(mxs1899_generated_cnf.cpp mxs1899_generated_cnf replication LABELS REPL_BACKEND)
|
|
|
|
# 'namedserverfilter' test
|
|
add_test_executable(namedserverfilter.cpp namedserverfilter_test namedserverfilter LABELS namedserverfilter LIGHT REPL_BACKEND)
|
|
|
|
# Authentication error testing
|
|
add_test_executable(no_password.cpp no_password replication LABELS MySQLAuth LIGHT REPL_BACKEND)
|
|
|
|
# Open and immediatelly close a big number of connections
|
|
add_test_executable(open_close_connections.cpp open_close_connections replication LABELS maxscale readwritesplit REPL_BACKEND)
|
|
|
|
# Open and immediatelly close a big number of connections, ssl is in use
|
|
#
|
|
# The test is broken due to some problem in the connector. It crashes with a
|
|
# double free error somewhere deep inside the connector/SSL libraries.
|
|
#
|
|
# add_test_script(open_close_connections_ssl open_close_connections ssl LABELS maxscale REPL_BACKEND)
|
|
|
|
# Persistant connection test
|
|
add_test_executable(pers_01.cpp pers_01 pers_01 LABELS maxscale REPL_BACKEND readwritesplit GALERA_BACKEND)
|
|
|
|
# Test with persistant connections configured and big number iof opened connections ,expect no crash
|
|
add_test_executable(pers_02.cpp pers_02 pers_01 LABELS maxscale REPL_BACKEND readwritesplit GALERA_BACKEND)
|
|
|
|
# Check if prepared statement works via Maxscale (via RWSplit)
|
|
add_test_executable(prepared_statement.cpp prepared_statement replication LABELS readwritesplit LIGHT REPL_BACKEND)
|
|
|
|
# Connect to ReadConn in master mode and check if there is only one backend connection to master
|
|
add_test_executable(readconnrouter_master.cpp readconnrouter_master replication LABELS readconnroute LIGHT REPL_BACKEND)
|
|
|
|
# Creates 100 connections to ReadConn in slave mode and check if connections are distributed among all slaves
|
|
add_test_executable(readconnrouter_slave.cpp readconnrouter_slave replication LABELS readconnroute LIGHT REPL_BACKEND)
|
|
|
|
# Regex filter test
|
|
add_test_executable(regexfilter1.cpp regexfilter1 regexfilter1 LABELS regexfilter LIGHT REPL_BACKEND)
|
|
|
|
# check that Maxscale is reacting correctly on ctrc+c signal and termination does not take ages
|
|
add_test_script(run_ctrl_c.sh run_ctrl_c.sh replication LABELS maxscale LIGHT REPL_BACKEND)
|
|
|
|
# run a set of queries in the loop (see setmix.sql) using Perl client
|
|
add_test_script(run_session_hang.sh run_session_hang.sh replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Checks changes of COM_SELECT and COM_INSERT after queris to check if RWSplit sends queries to master or to slave depending on if it is write or read only query
|
|
add_test_executable(rw_select_insert.cpp rw_select_insert replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Checks connections are distributed equaly among backends
|
|
add_test_executable(rwsplit_conn_num.cpp rwsplit_conn_num repl_lgc LABELS readwritesplit LIGHT REPL_BACKEND)
|
|
|
|
# Check that there is one connection to Master and one connection to one of slaves
|
|
add_test_executable(rwsplit_connect.cpp rwsplit_connect replication LABELS readwritesplit LIGHT REPL_BACKEND)
|
|
|
|
# Test of the read-only mode for readwritesplit when master fails (blocked)
|
|
add_test_executable(rwsplit_readonly.cpp rwsplit_readonly rwsplit_readonly LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Test of the read-only mode for readwritesplit when master fails (blocked), under load
|
|
add_test_executable(rwsplit_readonly_stress.cpp rwsplit_readonly_stress rwsplit_readonly LABELS readwritesplit HEAVY REPL_BACKEND)
|
|
|
|
# Test readwritesplit multi-statement handling
|
|
add_test_executable(rwsplit_multi_stmt.cpp rwsplit_multi_stmt rwsplit_multi_stmt LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Test readwritesplit multi-statement handling
|
|
add_test_executable(rwsplit_read_only_trx.cpp rwsplit_read_only_trx rwsplit_read_only_trx LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Test replication-manager with MaxScale
|
|
#add_test_executable(replication_manager.cpp replication_manager replication_manager LABELS maxscale REPL_BACKEND)
|
|
#add_test_executable_notest(replication_manager_2nodes.cpp replication_manager_2nodes replication_manager_2nodes LABELS maxscale REPL_BACKEND)
|
|
#add_test_executable_notest(replication_manager_3nodes.cpp replication_manager_3nodes replication_manager_3nodes LABELS maxscale REPL_BACKEND)
|
|
|
|
# Schemarouter duplicate database detection test: create DB on all nodes and then try query againt schema router
|
|
add_test_executable(schemarouter_duplicate.cpp schemarouter_duplicate schemarouter_duplicate LABELS schemarouter REPL_BACKEND)
|
|
|
|
# Test of external script execution
|
|
add_test_executable(script.cpp script script LABELS maxscale REPL_BACKEND)
|
|
|
|
# Test 10.3 SEQUENCE objects
|
|
add_test_executable(sequence.cpp sequence replication LABELS LIGHT)
|
|
|
|
# Test 10.1 compound statements with readwritesplit
|
|
add_test_executable(compound_statement.cpp compound_statement replication LABELS readwritesplit LIGHT)
|
|
|
|
# Check if 'weightby' parameter works
|
|
add_test_executable(server_weight.cpp server_weight galera.weight LABELS readwritesplit readconnroute LIGHT GALERA_BACKEND)
|
|
|
|
# Executes a lot of session commands with "disable_sescmd_history=true" and check that memory consumption is not increasing
|
|
add_test_executable(ses_bigmem.cpp ses_bigmem no_ses_cmd_store LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# test for 'max_sescmd_history' and 'connection_timeout' parameters
|
|
add_test_executable(session_limits.cpp session_limits session_limits LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Test of schema router
|
|
add_test_executable(sharding.cpp sharding sharding LABELS schemarouter BREAKS_REPL)
|
|
|
|
# MXS-1160: LOAD DATA LOCAL INFILE with schemarouter
|
|
add_test_executable(sharding_load_data.cpp sharding_load_data sharding LABELS schemarouter BREAKS_REPL)
|
|
|
|
# Do short sessions (open conn, short query, close conn) in the loop
|
|
add_test_executable(short_sessions.cpp short_sessions replication LABELS readwritesplit readconnroute REPL_BACKEND)
|
|
|
|
# Do short sessions (open conn, short query, close conn) in the loop, client ssl is ON
|
|
add_test_derived(short_sessions_ssl short_sessions ssl LABELS readwritesplit readconnroute REPL_BACKEND)
|
|
|
|
# Regression case for crash if maxadmin 'show monitors' command is issued, but no monitor is not running
|
|
add_test_executable(show_monitor_crash.cpp show_monitor_crash show_monitor_crash LABELS maxscale)
|
|
|
|
# Check how Maxscale works in case of one slave failure, only one slave is configured
|
|
add_test_executable(slave_failover.cpp slave_failover replication.one_slave LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Execute queries of different size, check data is the same when accessing via Maxscale and directly to backend
|
|
add_test_executable(sql_queries.cpp sql_queries replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Execute queries of different size, check data is the same when accessing via Maxscale and directly to backend, one persistant connection configured
|
|
add_test_derived(sql_queries_pers1 sql_queries sql_queries_pers1 LABELS maxscale readwritesplit HEAVY REPL_BACKEND)
|
|
|
|
# Execute queries of different size, check data is the same when accessing via Maxscale and directly to backend, 10 persistant connections configured
|
|
add_test_derived(sql_queries_pers10 sql_queries sql_queries_pers10 LABELS maxscale readwritesplit HEAVY REPL_BACKEND)
|
|
|
|
# Execute queries of different size, check data is the same when accessing via Maxscale and directly to backend, client ssl is ON
|
|
add_test_derived(ssl sql_queries ssl LABELS maxscale readwritesplit REPL_BACKEND)
|
|
|
|
|
|
# Check load balancing, client ssl is ON
|
|
|
|
# Disabled due to some strangeness in Connector-C 3.0 TLS connections which
|
|
# cause uneven distribution of connections.
|
|
#add_test_script(ssl_load load_balancing ssl_load LABELS maxscale readwritesplit REPL_BACKEND)
|
|
|
|
# Check load balancing, client ssl is ON, Galera backend
|
|
|
|
# Galera version is also disabled due to C/C 3.0 strangeness
|
|
#add_test_script(ssl_load_galera load_balancing_galera ssl_load_galera LABELS maxscale readwritesplit GALERA_BACKEND)
|
|
|
|
# Testing slaves who have lost their master and how MaxScale works with them
|
|
add_test_executable(stale_slaves.cpp stale_slaves stale_slaves LABELS mysqlmon REPL_BACKEND)
|
|
|
|
# Run sysbech test and block one slave during test execution
|
|
add_test_executable(sysbench_kill_slave.cpp sysbench_kill_slave replication LABELS UNSTABLE HEAVY REPL_BACKEND)
|
|
|
|
# Check temporal tables commands functionality
|
|
add_test_executable(temporal_tables.cpp temporal_tables replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# Test routing hints (mainly about how readwritesplit deals with them)
|
|
add_test_executable(test_hints.cpp test_hints hints2 LABELS hintfilter readwritesplit LIGHT REPL_BACKEND)
|
|
|
|
# Run MaxCtrl test suite
|
|
# add_test_executable(test_maxctrl.cpp test_maxctrl maxctrl LABELS REPL_BACKEND)
|
|
|
|
# Binlogrouter tests, these heavily alter the replication so they are run last
|
|
add_test_executable(avro.cpp avro avro LABELS avrorouter binlogrouter LIGHT BREAKS_REPL)
|
|
add_test_executable(avro_alter.cpp avro_alter avro LABELS avrorouter binlogrouter LIGHT BREAKS_REPL)
|
|
|
|
# Test avrorouter file compression
|
|
#add_test_script(avro_compression avro avro_compression LABELS avrorouter binlogrouter LIGHT BREAKS_REPL)
|
|
|
|
# In the binlog router setup stop Master and promote one of the Slaves to be new Master
|
|
add_test_executable(binlog_change_master.cpp binlog_change_master setup_binlog_tx_safe LABELS binlogrouter BREAKS_REPL)
|
|
|
|
# In the binlog router setup stop Master and promote one of the Slaves to be new Master (use GTID)
|
|
add_test_executable(binlog_change_master.cpp binlog_change_master_gtid setup_binlog_tx_safe_gtid LABELS binlogrouter BREAKS_REPL)
|
|
|
|
# trying to start binlog setup with incomplete Maxscale.cnf
|
|
add_test_executable(binlog_incompl.cpp binlog_incompl binlog_incompl LABELS binlogrouter BREAKS_REPL)
|
|
|
|
# configure binlog router setup, execute queries and transactions, check data; install semysync plugin, router options semisync=1,transaction_safety=1
|
|
add_test_executable(binlog_semisync.cpp binlog_semisync setup_binlog_semisync LABELS binlogrouter HEAVY BREAKS_REPL)
|
|
|
|
# configure binlog router setup, execute queries and transactions, check data; install semysync plugin, router options semisync=0,transaction_safety=0
|
|
add_test_derived(binlog_semisync_txs0_ss0 binlog_semisync setup_binlog_semisync_txs0_ss0 LABELS binlogrouter HEAVY BREAKS_REPL)
|
|
|
|
# configure binlog router setup, execute queries and transactions, check data; install semysync plugin, router options semisync=0,transaction_safety=1
|
|
add_test_derived(binlog_semisync_txs0_ss1 binlog_semisync setup_binlog_semisync_txs0_ss1 LABELS binlogrouter HEAVY BREAKS_REPL)
|
|
|
|
# configure binlog router setup, execute queries and transactions, check data; install semysync plugin, router options semisync=1,transaction_safety=0
|
|
add_test_derived(binlog_semisync_txs1_ss0 binlog_semisync setup_binlog_semisync_txs1_ss0 LABELS binlogrouter HEAVY BREAKS_REPL)
|
|
|
|
set_tests_properties(binlog_semisync PROPERTIES TIMEOUT 3600)
|
|
set_tests_properties(binlog_semisync_txs0_ss0 PROPERTIES TIMEOUT 3600)
|
|
set_tests_properties(binlog_semisync_txs0_ss1 PROPERTIES TIMEOUT 3600)
|
|
set_tests_properties(binlog_semisync_txs1_ss0 PROPERTIES TIMEOUT 3600)
|
|
|
|
#
|
|
# The encryption tests don't work as they require the file key management plugin
|
|
#
|
|
# Binlog encription test (aes_cbr encryption)
|
|
#add_test_executable(mxs1073_binlog_enc.cpp mxs1073_binlog_enc binlog_enc_aes_cbc LABELS binlogrouter 10.1 BREAKS_REPL)
|
|
# Binlog encription test (aes_ctr encryption)
|
|
#add_test_script(mxs1073_binlog_enc_aes_ctr mxs1073_binlog_enc binlog_enc_aes_ctr LABELS binlogrouter 10.1 BREAKS_REPL)
|
|
|
|
# Test of CDC protocol (avro listener)
|
|
add_test_executable(cdc_client.cpp cdc_client avro LABELS avrorouter binlogrouter BREAKS_REPL)
|
|
|
|
# Tries INSERTs with size close to 0x0ffffff * N (with binlog backend)
|
|
add_test_executable(different_size_binlog.cpp different_size_binlog setup_binlog LABELS binlogrouter HEAVY BREAKS_REPL)
|
|
|
|
# Try to configure binlog router to use wrong password for Master and check 'slave status' on binlog
|
|
add_test_executable(mxs781_binlog_wrong_passwrd.cpp mxs781_binlog_wrong_passwrd setup_binlog LABELS binlogrouter BREAKS_REPL)
|
|
|
|
# Regression case for crash if long host name is used for binlog router (in 'change master to ...')
|
|
add_test_executable(mxs813_long_hostname.cpp mxs813_long_hostname setup_binlog LABELS binlogrouter BREAKS_REPL)
|
|
|
|
# Test that masking filter can handle multi-statements.
|
|
add_test_executable(mxs1719.cpp mxs1719 mxs1719 LABELS masking REPL_BACKEND)
|
|
|
|
# configure binlog router setup, execute queries and transactions, check data;
|
|
add_test_executable(setup_binlog.cpp setup_binlog setup_binlog LABELS binlogrouter BREAKS_REPL)
|
|
|
|
# configure binlog router setup, execute queries and transactions, check data;
|
|
add_test_executable(setup_binlog_gtid.cpp setup_binlog_gtid setup_binlog_gtid LABELS binlogrouter BREAKS_REPL)
|
|
|
|
# configure binlog router setup, execute queries and transactions, check data; install semysync plugin, backends started with --binlog-checksum=CRC32 option
|
|
# disabled because it is included into setup_binlog test, separate test was created for debugging
|
|
# add_test_executable(setup_binlog_crc_32.cpp setup_binlog_crc_32 setup_binlog LABELS binlogrouter BREAKS_REPL)
|
|
|
|
# configure binlog router setup, execute queries and transactions, check data; install semysync plugin, backends started with --binlog-checksum=NONE option
|
|
# disabled because it is included into setup_binlog test, separate test was created for debugging
|
|
# add_test_executable(setup_binlog_crc_none.cpp setup_binlog_crc_none setup_binlog LABELS binlogrouter LIGHT BREAKS_REPL)
|
|
|
|
|
|
# Creates KDC and tries authrization via GSSAPI (both client and backend)
|
|
# works only with yum-based distributions
|
|
# TODO: make it working with zypper and apt, move part of KDC setup to MDBCI
|
|
add_test_executable(kerberos_setup.cpp kerberos_setup kerberos LABELS HEAVY gssapi REPL_BACKEND)
|
|
|
|
# Configures 'keepalived' on two Maxscale machines and tried failover
|
|
add_test_executable(keepalived.cpp keepalived keepalived LABELS REPL_BACKEND TWO_MAXSCALES)
|
|
|
|
# Configures 'keepalived' on two Maxscale machines and tried failover
|
|
add_test_executable(keepalived_masterdown.cpp keepalived_masterdown keepalived_masterdown LABELS REPL_BACKEND TWO_MAXSCALES)
|
|
|
|
# enable after fixing MXS-419
|
|
# add_test_executable(mxs419_lots_of_connections.cpp mxs419_lots_of_connections replication LABELS REPL_BACKEND)
|
|
|
|
# TODO: Alter the user_cache test
|
|
# add_test_executable(user_cache.cpp user_cache user_cache LABELS REPL_BACKEND)
|
|
|
|
# https://mariadb.atlassian.net/browse/MXS-576 - it is possible to set negative value for
|
|
# 'persistpoolmax' without any warning
|
|
#add_test_executable(bad_pers.cpp bad_pers bad_pers LABELS REPL_BACKEND)
|
|
|
|
# Test Aurora RDS monitor
|
|
#add_test_executable(auroramon.cpp auroramon auroramon LABELS HEAVY EXTERNAL_BACKEND)
|
|
|
|
# Disabled for the time being
|
|
# add_test_executable(gatekeeper.cpp gatekeeper gatekeeper LABELS gatekeeper)
|
|
|
|
# not implemented, just template
|
|
#add_test_executable(rw_galera_select_insert.cpp rw_galera_select_insert galera LABELS readwritesplit GALERA_BACKEND)
|
|
|
|
# a tool to delete RDS Aurora cluster
|
|
add_test_executable_notest(delete_rds.cpp delete_rds replication LABELS EXTERN_BACKEND)
|
|
|
|
# a tool to create RDS Aurora cluster
|
|
add_test_executable_notest(create_rds.cpp create_rds replication LABELS EXTERN_BACKEND)
|
|
|
|
# start sysbench ageints RWSplit for infinite execution
|
|
add_test_executable_notest(long_sysbench.cpp long_sysbench replication LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# test effect of local_address in configuration file
|
|
add_test_executable(local_address.cpp local_address local_address LABELS REPL_BACKEND)
|
|
|
|
# MXS-1628: Security scanner says MaxScale is vulnerable to ancient MySQL vulnerability
|
|
# https://jira.mariadb.org/browse/MXS-1628
|
|
add_test_executable(mxs1628_bad_handshake.cpp mxs1628_bad_handshake replication LABELS REPL_BACKEND)
|
|
|
|
# MXS-1836: MaxInfo "show eventTimes" returns garbage.
|
|
add_test_executable(mxs1836_show_eventTimes.cpp mxs1836_show_eventTimes mxs1836_show_eventTimes LABELS REPL_BACKEND)
|
|
|
|
# MXS-173 throttling filter
|
|
add_test_executable(mxs173_throttle_filter.cpp mxs173_throttle_filter mxs173_throttle_filter LABELS REPL_BACKEND)
|
|
|
|
# MXS-1889: A single remaining master is valid for readconnroute configured with 'router_options=slave'
|
|
# https://jira.mariadb.org/browse/MXS-1889
|
|
add_test_executable(mxs1889.cpp mxs1889 mxs1889 LABELS REPL_BACKEND)
|
|
|
|
# MXS-421 Improved log facility
|
|
add_test_executable(mxs421_events.cpp mxs421_events mxs421_events LABELS REPL_BACKEND)
|
|
|
|
# MXS-1926: LOAD DATA LOCAL INFILE interrupted by server shutdown
|
|
# https://jira.mariadb.org/browse/MXS-1926
|
|
add_test_executable(mxs1926_killed_server.cpp mxs1926_killed_server mxs1926_killed_server LABELS readwritesplit REPL_BACKEND)
|
|
|
|
# MXS-1929: Runtime service creation
|
|
# https://jira.mariadb.org/browse/MXS-1929
|
|
add_test_executable(mxs1929_service_runtime.cpp mxs1929_service_runtime mxs1929_service_runtime LABELS REPL_BACKEND)
|
|
|
|
# MXS-1929: Runtime filter creation/destruction
|
|
# https://jira.mariadb.org/browse/MXS-1929
|
|
add_test_executable(mxs1929_filter_runtime.cpp mxs1929_filter_runtime mxs1929_filter_runtime LABELS REPL_BACKEND)
|
|
|
|
# MXS-1929: Create complete configuration at runtime
|
|
# https://jira.mariadb.org/browse/MXS-1929
|
|
add_test_executable(mxs1929_start_from_scratch.cpp mxs1929_start_from_scratch mxs1929_start_from_scratch LABELS REPL_BACKEND)
|
|
|
|
# MXS-1932: Hidden files are not ignored
|
|
# https://jira.mariadb.org/browse/MXS-1932
|
|
add_test_executable(mxs1932_hidden_cnf.cpp mxs1932_hidden_cnf replication LABELS REPL_BACKEND)
|
|
|
|
# MXS-1949: Warning for user load failure logged even when service has no users
|
|
# https://jira.mariadb.org/browse/MXS-1949
|
|
add_test_executable(mxs1949_warn_user_injection.cpp mxs1949_warn_user_injection avro LABELS REPL_BACKEND)
|
|
|
|
# MXS-1958: Users with insert-only privileges don't work
|
|
# https://jira.mariadb.org/browse/MXS-1958
|
|
add_test_executable(mxs1958_insert_priv.cpp mxs1958_insert_priv replication LABELS REPL_BACKEND)
|
|
# TODO: Remove this once MXS-1958 is fixed
|
|
set_tests_properties(mxs1958_insert_priv PROPERTIES WILL_FAIL TRUE)
|
|
|
|
# MXS-1849: Table family sharding router
|
|
# https://jira.mariadb.org/browse/MXS-1849
|
|
add_test_executable(mxs1849_table_sharding.cpp mxs1849_table_sharding mxs1849_table_sharding LABELS schemarouter BREAKS_REPL)
|
|
|
|
# MXS-1961: Standalone master loses master status
|
|
# https://jira.mariadb.org/browse/MXS-1961
|
|
add_test_executable(mxs1961_standalone_rejoin.cpp mxs1961_standalone_rejoin mxs1961_standalone_rejoin LABELS REPL_BACKEND)
|
|
|
|
# MXS-1985: MaxScale hangs on concurrent KILL processing
|
|
# https://jira.mariadb.org/browse/MXS-1985
|
|
add_test_executable(mxs1985_kill_hang.cpp mxs1985_kill_hang replication LABELS REPL_BACKEND)
|
|
|
|
# MXS-1113: Support of prepared statement for schemarouter
|
|
# https://jira.mariadb.org/browse/MXS-1113
|
|
add_test_executable(mxs1113_schemarouter_ps.cpp mxs1113_schemarouter_ps mxs1113_schemarouter_ps LABELS schemarouter BREAKS_REPL)
|
|
|
|
# MXS-2037: Wildcards not working with source in Named Server Filter
|
|
# https://jira.mariadb.org/browse/MXS-2037
|
|
add_test_executable(mxs2037_namedserver_wildcards.cpp mxs2037_namedserver_wildcards mxs2037_namedserver_wildcards LABELS namedserverfilter LIGHT REPL_BACKEND)
|
|
|
|
# MXS-1980: Support Galera cluster nodes as masters for Binlog Router
|
|
# https://jira.mariadb.org/browse/MXS-1980
|
|
add_test_executable(mxs1980_blr_galera_server_ids.cpp mxs1980_blr_galera_server_ids mxs1980_blr_galera_server_ids LABELS binlogrouter GALERA_BACKEND)
|
|
|
|
# MXS-701: Binlog filtering
|
|
# https://jira.mariadb.org/browse/MXS-701
|
|
add_test_executable(mxs701_binlog_filter.cpp mxs701_binlog_filter mxs701_binlog_filter LABELS bilogrouter REPL_BACKEND)
|
|
|
|
# MXS-2043: Error "The MariaDB server is running with the --read-only option"
|
|
# for "select for update"
|
|
# https://jira.mariadb.org/browse/MXS-2043
|
|
add_test_executable(mxs2043_select_for_update.cpp mxs2043_select_for_update replication LABELS REPL_BACKEND)
|
|
|
|
# MXS-2054: Hybrid clusters
|
|
add_test_executable(mxs2054_hybrid_cluster.cpp mxs2054_hybrid_cluster mxs2054_hybrid_cluster LABELS REPL_BACKEND)
|
|
|
|
configure_file(templates.h.in ${CMAKE_CURRENT_BINARY_DIR}/templates.h @ONLY)
|