Commit Graph

727 Commits

Author SHA1 Message Date
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
4fd6d075cb doc and astyle fixes 2018-08-29 12:00:52 +03:00
0ce183d7e3 stop monitor for all Maxscales in rw_slect_insert_test 2018-08-29 12:00:52 +03:00
4887bce398 use different way to get own IP in keepalive tests 2018-08-29 12:00:52 +03:00
7e5353dae8 copy maxscale_000_XX to maxscale_XX variables in set_env.sh 2018-08-29 12:00:52 +03:00
f4317121e1 fix galera nodes in twomaxscales_full template 2018-08-29 12:00:52 +03:00
90ca096bc8 add twomaxscales_full template 2018-08-29 12:00:52 +03:00
8f3eabb868 Add missing timeouts to mxs1929_start_from_scratch 2018-08-29 11:06:11 +03:00
9a6f1b2044 Merge branch '2.2' into develop 2018-08-28 16:06:23 +03:00
51ade9e6fe Wait two monitor intervals in failover tests
Since the failover always takes two intervals, the test also needs to wait
two intervals.
2018-08-28 08:39:38 +03:00
4a637b024d Fix mysqlmon_failover_no_slaves
The current monitor detects the extra slave connection before
failover is launched, turning the entire feature off. That part of
the test has been removed.
2018-08-24 12:08:22 +03:00
1f8ed106b3 MXS-1929: Test configuration creation under load
The test case performs the creation and destruction of a complete MaxScale
configuration and repeats the process multiple times.
2018-08-23 15:46:47 +03:00