Commit Graph

83 Commits

Author SHA1 Message Date
38e623df9c MXS-3410 Drop anonymous users also in Xpand
As Xpand does not have a mysql.user table but a system.users
table, we need to arrange things so that the query used for
selecting annymous users can be different depending on the cluster.
2021-02-19 15:42:04 +02:00
f782a538cc MXS-3410 Add Mariadb_nodes::prepare_for_test(MYSQL*)
Needs to be a member function as the dropping of anonymous
users must be done differently for Xpand. With current code,
no anonymous users in Xpand will be dropped, and there will
always be an error (so, should someone care about the return
code, this would not work).
2021-02-19 12:50:43 +02:00
c0abec4e5b MXS-3410 Rename Mariadb_nodes::flush_hosts() to prepare_for_test()
The function does more than simply executes "FLUSH HOSTS". Also
change return type to bool as that is what it has returned.
2021-02-19 12:38:10 +02:00
3fefe557c0 MXS-3410 Make xpand system test setup more resilient
Xpand nodes must be added one by one to the cluster as an attempt
to add more nodes will fail, if any of the nodes to be added
already are in the cluster.

Further, the adding of a node may also fail if, when the addition
is made, the addition of the previous node is still in process.
Now it will be attempted at most 5 times, while sleaping as many
seconds between each attempt as there has been attempts.

Some additional logging was also added.
2021-02-18 15:12:20 +02:00
0224f24077 2.4.16 Update Change Date 2021-02-16 14:59:00 +02:00
2d0780bdfa Fix open_close_connections
Missing comma in the test assertion.
2021-01-22 14:03:07 +02:00
219b4422cd Add more output to binlog_change_master
Knowing the GTIDs before the MASTER_GTID_WAIT call should help us figure
out why it doesn't seem to be working as expected.
2021-01-22 10:12:59 +02:00
a617347fb6 Fix open_close_connections
The assumption that errno would be the same for the duration of the whole
call chain is wrong as it's possible that other calls that modify it are
made. Using the actual error string itself is much more reliable.
2021-01-22 10:12:59 +02:00
9fceffbf9e Backport mxs1071_maxrows fix
This is a backport of commit `4167399cefa4f1621e1fa5ee7fe54c12736a6d21`.
2021-01-22 10:12:59 +02:00
88e4b5724b Backport mxs1804_long_ps_hang fix
This is a backport of commit `cec91ccb298dabce0857ec566a8671e34b58259b`.
2021-01-22 10:12:58 +02:00
8ec0deb0fc Fix mysql_enforce_simple test 2021-01-20 12:16:27 +02:00
c5bcf7a8b1 2.4.15 Update change date 2021-01-18 15:30:30 +02:00
9500665e89 Merge branch '2.3' into 2.4 2020-12-28 16:01:17 +02:00
be997b56c6 Fix system-test MDBCI template 2020-12-28 16:00:42 +02:00
36a655a819 Merge branch '2.3' into 2.4 2020-12-28 13:53:15 +02:00
e9a6871fae Fix processing of force_*_version in mdbci/set_run_test_variables.sh 2020-12-28 13:52:51 +02:00
9388f9bfca fix conflicts 2020-12-28 13:16:47 +02:00
c03e557a31 add force_version parameters to the MDBCI template 2020-12-25 13:42:16 +02:00
6ed1173cd6 add force_version parameters to the MDBCI template 2020-12-25 13:31:10 +02:00
7c68c396a2 system-test works with production version of Maxscale
Every change to MariaDB Enterprise should be tested with Maxscale.
Maxscale should be stable - installed from production repository.
New enviromental variable 'maxscale_product' is introduced.
It can be 'maxscale' or 'maxscale_ci' (default is 'maxscale_ci')
2020-12-23 04:06:35 +02:00
22698ed6fb fix maxscale_product env variable 2020-12-23 02:33:19 +02:00
be7b04f963 Find MDBCI executable file 2020-12-23 00:02:32 +02:00
601eadac8b Fix default.json template 2020-12-21 13:41:09 +02:00
5ef953fb4a add comment 2020-12-21 11:50:45 +02:00
36b97ea198 MXS-3324 Test switchover with autocommit off 2020-12-17 13:37:30 +02:00
4dd057d99d MXS-3158 Add test case
Test that monitor does not alter event charset or collation.
2020-12-14 14:06:43 +02:00
8787b5dc81 Merge branch '2.3' into 2.4 2020-12-07 22:16:47 +02:00
f9be1d9cb4 test_bad_config() return 1 when ssh result is 256 2020-12-07 22:15:09 +02:00
65261c8eeb Merge branch '2.3' of github.com:mariadb-corporation/MaxScale into 2.3 2020-12-07 22:12:12 +02:00
f0ac65ffb5 Fails system-test if they are not executed properly
In case of VM creation problem or test code build problem
run_test.sh and run_test_vm.sh exit with 1 to show the problem
in the BuildBot
2020-12-07 22:10:17 +02:00
7a26207564 Fix typo 2020-12-07 13:46:18 +02:00
347468e87d config_test should fail also if VM is broken
config_test expects Maxscale start failure, but ssh to
Maxscale node also fails if VM is broken.
Test should fail in case of VM problem to prevent
Maxscale problem hiding.
2020-12-07 13:24:41 +02:00
b953e0c395 Merge branch '2.3' into 2.4 2020-12-01 06:36:34 +02:00
5c34c0f202 use stop/start_node() to restart server 2020-11-30 16:23:49 +02:00
46c3755678 add server restart to prepare_servers() 2020-11-30 16:17:33 +02:00
9be78df776 MXS-3306 Make binary_ps test work with more servers than 4
When doing the match, the test only checked slaves 1 - 3. If the
test is run after a heavy test there will also be slaves 4 - 14.
2020-11-30 07:59:54 +02:00
47f5f2f0cc Set Xpand version to 'latest' in system-test
Now MDBCI is able to find latest version of XPand automatically
2020-11-25 16:19:50 +02:00
27528628e2 Merge branch '2.4.14' into 2.4 2020-11-24 13:56:38 +02:00
885077b4d0 Avoid using test.repl->N in MariaDBMonitor tests
The value may not match the nodes used by the test.
2020-11-24 12:31:15 +02:00
abd1efefc6 Group Galera tests correctly
Grouping tests that require Galera backend together delays the creation of
those backends until they are needed.
2020-11-24 11:16:45 +02:00
3003ad6385 Remove Python tests
The tests are not very good and require custom Python modules to be
installed. In addition, they were written for Python2 which is no longer
available on all modern systems.
2020-11-24 11:16:27 +02:00
454e9aca14 Stop timeout before finishing test
This helps distinguish actual timeouts that happen during the test and
timeouts that happen during the test shutdown.
2020-11-24 11:16:27 +02:00
36f2af810a 2.4.14 Fix xpand_basics
The test assumed a certain node would always be present. Now the
test figures out what id to use.

Also fix broken clustrix -> xpand renaming.
2020-11-23 13:16:02 +02:00
0fe6f70458 Merge branch '2.4.14' into 2.4 2020-11-23 12:48:24 +02:00
26c7aa4c34 Fix xpand_transaction_replay configuration
The test expected rollbacks to be automatically replayed without it being
configured.
2020-11-23 11:55:01 +02:00
5906f59344 Merge branch '2.4' into 2.4.14 2020-11-19 13:54:55 +02:00
266c866b18 2.4.14 Fix xpand_transaction_replay config 2020-11-19 13:40:57 +02:00
a0922a2451 2.4.14 Fix xpand cluster setup 2020-11-19 13:37:14 +02:00
f2f2e66da3 Merge branch '2.3' into 2.4 2020-11-19 09:42:36 +02:00
41caccbf4b Separate MariaDB installation and Galera configuration
MDBCI now supports separate Galera server .cnf configuring.
Changing MDBCI config template in order to use this MDBCI
capability. It allows to use any MariaDB product in the
backend (Community or Enterprise, production, staging or CI)
2020-11-18 19:12:24 +02:00