Commit Graph

738 Commits

Author SHA1 Message Date
66227301aa Merge branch '2.2' into develop 2018-09-27 11:47:32 +03:00
6e380d541b MXS-2043 Add system test 2018-09-27 10:17:47 +03:00
1a41f1a8e2 Add more timeouts to mxs1743_rconn_bitmask
The test timed out on a few test runs which means that there is a problem
in the areas where timeouts weren't present.
2018-09-26 11:08:12 +03:00
50bec07438 Fix mxs1776_ps_exec_hang
The results weren't freed between the fetches.
2018-09-26 09:43:25 +03:00
5869f5369c MXS-701: Extend binlogfilter test
The test now checks that default database usage works as expected. This
currently only works with RBR and with SBR it fails due to inadequate
processing of the SQL statements (default database is not concatenated
into the table).
2018-09-26 09:43:24 +03:00
da242973f5 MXS-701: Add binlogfilter test case
Added a simple test case that checks that the match and exclude parameters
work.
2018-09-26 09:43:23 +03:00
77daf1fbdb MXS-2047 React on any fatal error 2018-09-25 10:07:11 +03:00
c105a71317 MXS-2047 Create test that reveals problem
If

* BLR replicates from a node in a Galera cluster and
* writes are made to all nodes in that cluster,

then

* if a slave to BLR is stopped when it has received an event
  originating in a node different than the one BLR is replicating
  from

the subsequent (re)starting of the slave will fail because BLR looks
for the last event from a file whose path contains the server id of
the node where the event originates, although it should look for it
in the file whose path contains the server id of the node from which
BLR replicates.
2018-09-25 10:07:11 +03:00
6e4556849c Deal with columns being NULL
As it is not possible to create an std::string from NULL, we
need to handle each value separately.
2018-09-25 10:07:11 +03:00
aa649a2754 Reduce failcount for mysqlmon_detect_standalone_master
The test seems to continue before the failover has finished. Reducing the
failcount from 2 to 1 should speed up the master failover process.
2018-09-24 12:07:50 +03:00
920fbb9d70 Fix mxs2037_namedserver_wildcards
The configuration used removed parameters.
2018-09-24 12:07:50 +03:00
ce43df5514 Refactor server_weight
Changed to stack allocated objects, removed unnecessary and corrected
false comments, removed obsolete log message checks.
2018-09-24 12:07:50 +03:00
02d5840d5b MXS-1762 Add reset-replication test
The test adds events to the backends, causing them to go out of sync. It then
uses the reset-replication command to fix the situation and checks replication
is working.
2018-09-24 10:56:33 +03:00
dfc10b109d MXS-1937 Add failover/switchover with server events test
The test adds a scheduled server event, the does failover, rejoin and
switchover and checks that event is manipulated correctly. Also includes
a change to the monitor to fix an invalid ALTER EVENT query when the event
definer has wildcard host.
2018-09-24 10:43:17 +03:00
71ffef5708 Partially revert 4ba011266843857bbd3201e5b925a47e88e1808f
Add back leading operator enforcement.
2018-09-20 15:57:30 +03:00
d8d0b1a29c Merge branch '2.2' into develop 2018-09-20 12:21:53 +03:00
8a3376767a use different server id for Galera test nodes 2018-09-19 15:03:48 +03:00
795796c8a2 Swap usernames around in mxs729_maxadmin
The usernames were in the wrong order.
2018-09-19 14:22:21 +03:00
af2546a3bd add proper timeouts to different_size_* tests 2018-09-17 16:41:11 +03:00
4ba0112668 Deactive some uncrustify settings
This only deactivates some of the more heavy-handed features. All files have
been formatted with the new settings, which seems to have only affected lines
which were not formatted before.
2018-09-14 16:20:13 +03:00
4e41978069 Merge branch '2.2' into develop 2018-09-14 10:41:43 +03:00
5e6abe71f1 Fix local_address
The test did not create a grant for the gateway IP address where the
client was connecting from.
2018-09-13 15:36:31 +03:00
8c561c6e55 Merge branch '2.2' into develop 2018-09-13 12:26:58 +02:00
ce602daf10 Enable log_info for bug664 2018-09-13 13:14:28 +03:00
b3d6e49061 Shorten mysqlmon_failover_stress
The test fails since slaves are constantly going out-of-sync and cannot rejoin
the cluster. After three failovers, the cluster has three standalone server and
the monitor gets confused which server is the master. For now, limit the test to
two failovers.
2018-09-13 11:33:19 +03:00
d65d815b99 Add format attribute to test functions, fix resulting errors
Fixes mysqlmon_failover_stress.
2018-09-13 11:33:19 +03:00
7ec2f77708 Merge branch '2.2' into develop 2018-09-12 23:18:08 +03:00
e1f2b81734 Wait for monitor in bug547
The test expects the monitor to respond within 5 seconds. This is not
guaranteed to happen so waiting for a monitor interval instead of a
hard-coded duration provides for a more stable test.
2018-09-12 22:09:51 +03:00
b3e2bf58d9 Wait two monitor intervals in mysqlmon_failover_auto
The master failover require two monitor intervals to complete.
2018-09-12 22:09:51 +03:00
6f5d089131 Use expect in mxs1947_composite_roles
`assert` was renamed to `expect`.
2018-09-12 22:09:38 +03:00
f6840fbded Remove implicit initialization of all maxscales
The extra maxscale instances are only started if the test explicitly
requests it.
2018-09-12 22:09:38 +03:00
077f344a20 MXS-2037 Add test case 2018-09-12 20:59:47 +03:00
d881630204 Allow programatic control of galera restarting
If a test program needs other than the default Galera config
(e.g. log_slave_updates enabled), then it should be able to
programmatically cause galera to be restarted as part of the
TestConnections construction.
2018-09-12 09:09:52 +03:00
81a3c73c74 Fix assert -> expect breakage 2018-09-12 08:39:54 +03:00
fd176c4122 Merge branch '2.2' into develop 2018-09-11 12:57:19 +03:00
c878146c24 MXS-1947: Add test case
The test checks that composite roles work.
2018-09-10 21:47:47 +03:00
73405c8ff9 Stabilize bug676
The test should now be stabler as it waits for a monitor interval instead
of a set amount of seconds.
2018-09-10 15:01:29 +03:00
108638b0cf Format with Uncrustify 0.67 2018-09-10 13:31:39 +03:00
d11c78ad80 Format all sources with Uncrustify
Formatted all sources and manually tuned some files to make the code look
neater.
2018-09-10 13:22:49 +03:00
edd5ddcc88 Merge branch '2.2' into develop 2018-09-10 12:29:00 +03:00
6279ab350c Rename TestConnections::assert() to TestConnections::expect()
Allows the including of <assert.h>.
2018-09-10 10:24:46 +03:00
c447e5cf15 Uncrustify maxscale
See script directory for method. The script to run in the top level
MaxScale directory is called maxscale-uncrustify.sh, which uses
another script, list-src, from the same directory (so you need to set
your PATH). The uncrustify version was 0.66.
2018-09-09 22:26:19 +03:00
0e5d827f7a Merge branch '2.2' into develop 2018-09-08 18:58:57 +03:00
b99390f3e0 install Maxscale on all VMs in run_test_snapshot 2018-09-03 16:35:43 +03:00
77926bb999 Merge branch '2.2' into develop 2018-08-31 12:25:21 +03:00
b2fea99dbc Fix set_env.sh
The -gt operator should be used to compared numbers.
2018-08-31 12:12:11 +03:00
19a84569fe add compatibility with one Maxscale template to set_env.sh 2018-08-30 14:26:19 +03:00
a13e95951b Merge branch '2.2' into develop 2018-08-30 11:37:49 +03:00
c554fd3417 Fix mxs1643_extra_events
The test expected the wrong results. Also updated the log message checks
to be server specific.
2018-08-29 18:36:34 +03:00
39016c410c use different hostname for second Maxscale VM 2018-08-29 12:00:52 +03:00