26da72a41f
Merge branch '2.2' into 2.3
2019-01-03 09:23:16 +02:00
04dd05b262
MXS-2231: Move TLS handshake code into MariaDBClient
...
The code is now in the correct place and TLS connections with all
authenticators should now work.
2019-01-02 19:29:41 +02:00
d48c17fd08
MXS-2231: Add Kerberos+SSL test case
...
Added a test case that uses Kerberos services with SSL enabled listeners.
2019-01-02 19:27:14 +02:00
038f4d63e1
Mxs 2226 long test ( #186 )
...
* add possibility to run named test
* remove sysbench_dir
* remove unsupported in 1.0 sysbench options
* exculed ReadConnRouter sysbench test
* fix sysbench table name
2018-12-31 17:27:04 +02:00
95d8ee9305
Extend maxctrl system test
...
The test now executes all commands present in MaxCtrl.
2018-11-30 12:05:14 +02:00
1d91895f41
Fix switchover_auto and rejoin_bad tests
...
Increased some timeouts which were a bit too short in some cases. Cleaned up
the tests too.
2018-11-28 13:08:49 +02:00
73aaa3c981
Use failcount=1 in keepalived_masterdown
...
This speeds up the test and most possibly fixes it.
2018-11-27 12:52:45 +02:00
64ca8d4aaa
Simplify mxs1743_rconn_bitmask
...
The test now uses maxctrl to count how many connections there are. This
helps avoid creating new users on the database and works around the slave
syncing problems.
2018-11-27 12:52:45 +02:00
a15aab610a
MXS-2187: Add test case
...
The test checks that a single transaction can survive multiple master
failovers.
2018-11-27 12:52:45 +02:00
636fdca4aa
Update expected outcome of error_messages
...
The test is expected to fail until MXS-2174 is fixed.
2018-11-27 12:52:43 +02:00
19ad915685
Add failover and read_only test
...
The test performs a series of node stops and starts and checks that server
states are correct and read_only is set on slaves.
2018-11-26 12:13:59 +02:00
e287e29ad0
Fix mxs1476 config
...
The parameter name was wrong.
2018-11-26 09:43:10 +02:00
de49797014
Rewrite bug561.sh in C++
...
Rewrote the bug561.sh test as the error_messages test that covers what was
tested by the script as well as some new parts that were untested. This
revealed a bug in the error messages where MaxScale always returns the
database name in the error.
2018-11-22 13:51:08 +02:00
aa2572c677
Pass database as a parameter in connect
...
When connecting to a node, a database can now be optionally given as a
parameter. This makes testing with different databases easier as the need
to use the explicit functions is removed.
2018-11-22 13:51:08 +02:00
cb67d4cee3
Log instructions for bypassing test dependency checks
...
If not all test programs are installed, instructions on how to bypass them
are logged. This allows testing without installing all of the packages.
2018-11-22 13:51:08 +02:00
816e45ccb9
Add multimaster test with 'assume_unique_hostnames' disabled
...
Uses the same test code, just changes the config file. This test is currently
the only one in which the setting is disabled.
2018-11-22 12:17:45 +02:00
0916b58c7e
Merge branch '2.2' into 2.3
2018-11-21 16:46:06 +02:00
7777732f19
remove tabs and spaces from set_env.sh
2018-11-21 13:53:50 +02:00
b44ea837b9
do not use ssh to check MariaDB server start command
...
maxscale-system-test/set_env.sh script is slow because it checks if MariaDB start command is mysql or mysqld
Now all versions can be started with 'mysql' except MySQL 5.5 which is not supported
2018-11-21 13:39:01 +02:00
45eee098d1
MXS-2158 Add test case for rejoining a server with no gtid
2018-11-20 11:28:29 +02:00
87e350f171
Remove hard-coded server_id from mysqlmon_failover_stress
...
Dynamically probing the server_id prevents the test from failing if the
server configuration is changed.
2018-11-19 20:19:21 +02:00
41670875fc
MXS-2146: Add csmon test case
...
Added a test case that does a set of sanity checks on the monitor. As the
monitor is very simple, there are not a lot of things to test without
access to the actual instances (e.g. ExeMgr failures need to be tested).
Currently the test always passes as ColumnStore clusters aren't
implemented for the test framework.
2018-11-19 20:19:21 +02:00
da1772f8c9
MXS-2146: Add conditional columnstore usage
...
Tests can now declare that they require a columnstore setup. If one is not
present, the test is skipped.
2018-11-19 20:19:18 +02:00
92b4ed2867
Use explicit paths for bad config location
...
The test_bad_config used implicit locations which aren't very clear. Using
an explicit path, /tmp/, solves all of these problems.
2018-11-19 20:03:22 +02:00
778623bdfd
Make mysqlmon_failover_manual2 tests faster
...
Removed the sleeps and used wait_for_monitor instead. Also dropped the
table at the end of the test.
2018-11-19 20:03:22 +02:00
fd3a42ceb6
Remove unnecessary sleeps from tests
...
Removed unnecessary sleeps and replaced sleeps with wait_for_monitor in
some older tests. Also removed the odd arrangement of arrays in
server_weight.
2018-11-19 20:02:13 +02:00
47092ed18a
Prevent connection double counts in tests
...
The function would count a connection twice if hostname resolution was not
enabled and both the host and the IP matched.
2018-11-19 20:02:13 +02:00
601c2d6633
Drop databases in connect_to_nonexisting_db
...
The test left undropped databases after itself which caused unnecessary
work with repeated runs. Also removed the somewhat superficial wait at the
start of the test.
2018-11-19 20:02:12 +02:00
9c19a481fc
Rewrite readconnrouter_master test
...
Using server_id values is more reliable and significantly faster. Changed
code to use newer functions and constructs.
2018-11-19 20:02:12 +02:00
355f34669d
Sanitize log_matches input
...
Given that the pattern is given as an argument quoted with single quotes,
embedded single quotes are a problem. Given that most cases that they are
used for is as parts of natural words like can't or won't. By replacing
the single quotes with wildcard characters, we make sure the input is
formatted correctly while still matching with relatively high accuracy.
2018-11-19 20:02:12 +02:00
4b6aab1417
Replace check_log_err with log_includes/log_excludes
...
The latter are more explicit and easier to understand at the call site.
Also removed the redundant crash checks via the log files.
2018-11-19 20:02:11 +02:00
bc8db6d52c
Improve false_monitor_state_change
...
The test uses wait_for_monitor and no longer does the redundant debug
assert check that is covered by the core dump detection.
2018-11-19 20:02:11 +02:00
d60e97dfa5
Make node startup more robust
...
The connection attempts to all nodes are done over a period of time to
cope with slowly starting servers.
2018-11-19 20:02:11 +02:00
1f8180b8ee
Use explicit file in mxs722
...
Using an explicit file also checks whether the correct file is used when a
specific file is given as an argument.
2018-11-19 20:02:11 +02:00
29b3dd0930
Fix prepared_statement
...
The test relied on the master's @@server_id being a specific value.
2018-11-19 20:02:11 +02:00
14fb142afb
Rewrite maxscale_process_user
...
Changed output format to be more robust and used stack allocated objects
instead of heap allocated ones.
2018-11-19 20:02:10 +02:00
74ec1e7400
Skip tests that cannot be run
...
If a test requires Galera but it is not available, it is now skipped. All
tests that explicitly use the `test.galera` member as well as all tests
that use a Galera configuration now require that Galera is present.
2018-11-19 20:02:10 +02:00
eac9b86647
MXS-2167: Change expected test outcome
...
The test should now pass as the functionality is implemented. Also added a
temporary workaround to firewall problems.
2018-11-15 14:24:41 +02:00
598edea203
MXS-2167: Add test case
...
Added a test case that reproduces the problem.
2018-11-15 14:24:41 +02:00
396da06eb8
Move sync_with_stdio into TestConnections constructor
...
This way all tests run with the same configuration.
2018-11-15 14:24:41 +02:00
29d96662eb
Add missing error message to check_replication
...
The version extraction could fail silently.
2018-11-15 14:24:41 +02:00
4bd8630107
MXS-1598 Add replication lag test cases to mysqlmon_multimaster
...
The delay is added simply with the 'MASTER_DELAY'-option of
the 'CHANGE MASTER TO'-command.
2018-11-15 13:26:38 +02:00
52b9cc59d5
MXS-1775 Test automatic switchover
...
Tests low disk space detection and automatic switchover.
2018-11-14 18:17:40 +02:00
3092a744ed
Enable verbose output on Galera startup failure
...
If a Galera node fails to start, enabling the verbose mode prints the
output of each SSH command. This fixes the visibility of the log file
printing.
2018-11-14 16:23:47 +02:00
54370618bc
Stop keepalived after the tests
...
Once the tests are done keepalived must be stopped. This is done to
prevent it from affecting other tests.
2018-11-14 16:23:47 +02:00
07231747bf
Print server logs on failure to start
...
When the MariaDB server exits with an error, the logs help explain why
that happened.
2018-11-14 16:23:47 +02:00
77f8a3b71b
MXS-2057 System test
2018-11-14 16:20:42 +02:00
e371964f8b
MXS-2057 Add log output for system test, and two random code fixes
2018-11-14 16:20:42 +02:00
2650a9174e
Fix addition of galera config options
...
The options weren't properly set as the galera nodes used different file
names.
2018-11-14 13:08:27 +02:00
896ce87332
Allow loading any plugin for tests
...
Required for 'disks'-plugin.
2018-11-14 11:05:23 +02:00