Commit Graph

858 Commits

Author SHA1 Message Date
fed5037081 Make copying of SSL certs conditional
If the certs exist, they are not copied. This makes testing slightly
faster.
2018-10-05 11:25:50 +03:00
8029bdff4f Process maxscale.cnf template with one sed command
Using a single sed command with multiple -e flags is faster than multiple
separate sed commands.
2018-10-05 11:25:49 +03:00
75ea1b6ea1 Fix formatting of new(std::nothrow)
The code previously formatted everything as `new( std::nothrow)`.
2018-10-04 21:50:44 +03:00
1af43d4ff5 Speed up mxs1961_standalone_rejoin
The waits were needlessly long. Also cleaned up a bit.
2018-10-04 20:29:19 +03:00
70907097c5 Exclude MXS-2047 test case
Moved to the MXS-2047 branch.
2018-10-04 15:17:54 +03:00
80c731f02a Fix verify_master_failure
The log message had changed, changed test to match. Also, the remaining
delay is now printed.
2018-10-04 13:38:10 +03:00
db6a187cd3 Fix mysqlmon_external_master
Removed unneeded operations, added comments and cleanup. The test requires a larger
rework to be more useful.
2018-10-04 13:33:33 +03:00
2e589e0328 Fix mysqlmon_rejoin_bad2
The test didn't work correctly with the failover/switchover changes.
Also cleaned up the test a bit.
2018-10-04 13:09:28 +03:00
9ecd027ea0 Test: Provide additional control of local MaxScale
When running BLR locally, you need to be able to specify what
IP the BLR is visible at (127.0.0.1 does not work for VM nodes)
and also to perform cleanup etc. action when needed.
2018-10-04 12:57:54 +03:00
74effa6e7f MXS-2054: Add test case
Add test case that emulates a hybrid cluster of MariaDB and ColumnStore
instances.
2018-10-04 10:52:40 +03:00
321435b80e Fix mysqlmon log copying
The backup file required superuser permissions.
2018-10-03 12:46:54 +03:00
75f9921ca2 Merge branch '2.2' into develop 2018-10-02 10:18:09 +03:00
dad4f55ee6 Save output of mysqlmon tests
Before the tests truncate the log, it can be copied to a backup file. This
allows the whole log to be inspected after the test is complete.
2018-10-02 09:44:02 +03:00
3fd0c2c407 Stop timeout during slave sync 2018-10-02 09:44:01 +03:00
7b5985d6be Add missing connect to mxs682_cyrillic
The connections were used without connecting.
2018-10-02 09:44:01 +03:00
c7fc00b3d8 Shorten mxs812_1
Three iterations should be adequate for most cases.
2018-10-02 09:44:01 +03:00
ee45900648 Remove network variable export file after use
Otherwise the file is left in the current working directory.
2018-10-02 09:44:00 +03:00
bb8245d2c1 Merge branch '2.2' into develop 2018-09-30 21:26:47 +03:00
5b644a785b Refactor mxs682_cyrillic
Use stack allocated objects and do general cleanup. Increased timeouts to
be a bit more forgiving.
2018-09-28 09:24:48 +03:00
afd3eae65b Add more output to mxs1743_rconn_bitmask
The test times out but it doesn't tell where it times out.
2018-09-28 09:15:02 +03:00
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