a4c4c26ab9
Increase timeouts of mysqlmon_switchover
...
With default timeouts test failed on max-tst-01
2018-01-09 12:48:49 +02:00
eff88f7126
Disable detect_standalone_master in replication template
...
The template is used by tests that expect the functionality to be
disabled.
2018-01-09 10:57:18 +02:00
d1944d015d
Verify that connections fail in bug547
...
The test assumed that the connections failed but it did not check that it
actually did.
2018-01-09 10:57:18 +02:00
5fda35a998
Properly disable server settings
...
In the config files, spaces in setting names can be either with
_ or -, so need to disable both versions.
2018-01-08 16:15:31 +02:00
68ab6ea7e0
Disable log_slave_updates on failover tests
...
Some test environments may have the setting enabled. It should be
disabled on server3 to get consistent results.
2018-01-08 15:22:47 +02:00
c64fd4f39f
MXS-1543: Add test case
...
Added test case that checks that statement based replication is detected.
2018-01-05 12:50:39 +02:00
3c5963cf3b
Reset default master node state as well
...
Now that mariadbmon supports failover and switchover, a test may
may change the master to some other node than node 0.
Consequently, as part of fixing the replication, gtid_slave_pos
of node 0 must be reset as well.
2018-01-05 12:47:57 +02:00
bed0b850b1
Merge branch '2.1' into 2.2
2018-01-05 09:58:10 +02:00
1bd20cd2eb
temopary disable snapshot revert due to Galera failures
2018-01-05 09:40:41 +02:00
a6914ebefe
MXS-1565: Test for invalid old master rejoin
...
The test uses standard setup (1xMaster, 3xSlaves).
1. Shutdown master (server 1), check that autofailover promotes
a new master.
2. Stop MaxScale.
3. Start server 1 and add some events to it so it can no longer rejoin
cluster.
4. Start MaxScale, check that server 1 does not join.
5. Set current master to replicate from server 1, turning it to a relay
master.
6. Check that server 1 is master, all others are slaves (due to auto-rejoin).
2018-01-04 10:34:03 +02:00
e0a584a626
add ulimit setting for tests
2018-01-03 14:12:43 +02:00
7d8905d91f
Merge branch '2.1' into 2.2
2018-01-03 14:05:31 +02:00
00ca809963
MXS-1542: Add test case
...
Added test case that checks whether UTF16 strings work. The test is
expected to fail.
2018-01-03 10:37:25 +02:00
bacc11d28e
MXS-1516: Validate the connection on each query
...
A subset of the checks done at connection creation time need to be done at
query routing time. This guarantees that the connection is closed if the
server no longer qualifies as a valid candidate.
Added teset case that checks that a change in the replication topology
correctly breaks the connection.
2018-01-02 11:03:36 +02:00
eddd4db606
MXS-1562 Test switchover under ideal conditions
2018-01-02 10:21:01 +02:00
3f0ef7481e
Fix test build failure
...
The ssh_node_f function does not exist in 2.1.
2018-01-02 10:10:25 +02:00
cf29430476
Merge branch '2.1' into 2.2
2018-01-02 09:31:07 +02:00
6645281aeb
add killing mysqld process after snapshot revert
2018-01-02 07:32:44 +02:00
ef79db4362
add killing mysqld process after snapshot revert
2017-12-29 12:12:20 +02:00
d2a30cf7d7
Modify test mxs1585.cpp for 2.2
2017-12-29 11:57:13 +02:00
8ac5c3d377
MXS-1585: Make the test more precise
...
The test now more precisely exercises the code where the crash happened.
2017-12-29 11:04:13 +02:00
ee8161af83
Fix mxs1509
...
Temporarily disable the multi-source part of the test. Explicitly set
gtid_slave_pos when changing master. Add missing parameter to
configuration.
2017-12-29 11:01:07 +02:00
8b2aa52384
Merge branch '2.1' into 2.2
2017-12-29 08:42:49 +02:00
6b2133d6a6
Fix mysqlmon_failover_auto and mysqlmon_failover_manual
...
The tests now reset the replication state using queries and switchover instead of
calling fix_replication(). The results are checked so these tests now test
switchover as well.
Also, reduce printing when verbose is on for any test using the get_output()-function
in fail_switch_rejoin_common.cpp.
2017-12-28 21:54:58 +02:00
c6bc1f7327
MXS-1585: Add preliminary test case
...
The test case attempts to simulate the environment where the crash appears
to have happened. Local testing does not point out any problems.
2017-12-27 17:21:42 +02:00
3ca32457db
Don't force verbose output
...
The tests shouldn't force verbose output.
2017-12-27 17:21:42 +02:00
3b7275ec41
Use default value for "smoke"
...
The values should only be updated if the environment variable is defined.
2017-12-27 17:21:42 +02:00
58373b3495
Fix template generation
...
The templates weren't generated for Galera nodes.
2017-12-27 09:42:21 +02:00
d65c15d6f2
Merge branch '2.2' of github.com:mariadb-corporation/MaxScale into 2.2
2017-12-22 17:17:00 +02:00
14fe31db71
fix log copying in run_test.sh
2017-12-22 17:14:09 +02:00
57fc623b84
Update maxscale-system-test/.gitignore
2017-12-22 12:56:11 +02:00
3e65163429
Add more descriptive errors to blob_test functions
...
The expected and received value are now both logged when an error
occurs. The execution is also cut short to prevent excessive message
flooding as most of the time all comparisons fail.
2017-12-22 11:45:32 +02:00
ad57de6784
Merge branch '2.2' of github.com:mariadb-corporation/MaxScale into 2.2
2017-12-21 17:29:57 +02:00
5c7845c381
Galera startup crash fix, temporal removal of revert snapshot (Galera does not survive revert)
...
and add cores saving from tests themselves.
2017-12-21 17:20:41 +02:00
029f595100
Fix mxs1509
...
Temporarily disable the multi-source part of the test. Explicitly set
gtid_slave_pos when changing master. Add missing parameter to
configuration.
2017-12-21 17:07:58 +02:00
6348ca7449
Add dependency on Jansson to the test core
...
The core library depends on Jansson and it must be built first.
2017-12-21 12:22:47 +02:00
3fb44e6b6e
Make function const correct
2017-12-21 10:56:24 +02:00
96d084f1d6
Treat warnings as errors
...
Treat warnings as errors when compiling tests and fix where there
were problems.
2017-12-21 10:56:24 +02:00
071ab8302b
Remove old stashed configurations
...
When new configuration files are stashed, remove the old ones first.
2017-12-21 10:48:08 +02:00
339ea9aedb
Add a small delay to mxs1476
...
The test can fail if the Galera nodes aren't synced when the connection to
MaxScale is made. Adding a small sleep should allow the Galera cluster to
stabilize after the configuration switch.
2017-12-21 10:48:08 +02:00
ee00539366
Fix mxs1509 output
...
The status dumping function now returns a string instead of a pointer to a
static buffer.
2017-12-21 10:48:08 +02:00
c1405bb493
Only block nodes in mxs1476
...
This is less of a disruption to the whole Galera cluster, which appears to
go non-primary if the nodes are stopped instead of blocked.
2017-12-21 10:48:07 +02:00
9062c31865
compound_statement: Drop table if it exists
...
It's not an error if the table already exists, whatever the reason.
2017-12-21 10:48:07 +02:00
6b0c6ffa64
Update bug673 with new maxadmin behavior
...
Both the old and new style object names must work with MaxAdmin.
2017-12-21 10:48:07 +02:00
c9aa504f50
Make start_node parameters const
...
The second parameter can be `const char*` as it is not modified. This
fixes a compiler warning.
2017-12-21 10:48:07 +02:00
26751ae44f
Use correct CDC connector for cdc_datatypes
...
The cdc_datatypes test did not use the correct connector and instead it
used a stale version of the MaxScale CDC Connector. The connector should
be treated as an external dependency and thus cloned at configuration
time.
2017-12-21 10:48:07 +02:00
a2acecd229
Fix test failures
...
Use correct parameter name for verify_master_failure and run MaxScale
explicitly as root in run_ctrl_c.sh.
2017-12-21 10:48:06 +02:00
0e8bdeae13
Add test for 10.1 compound statements
...
The test executes a compound statement through MaxScale and checks that it
is routed correctly to the master.
2017-12-21 10:48:06 +02:00
ec1a37000b
Add more default parameter values
...
Added parameter default values to testconnections.h.
2017-12-21 10:48:05 +02:00
4d7c93f7c9
Rename test
...
We are testing switchover and not failover to a bad master
2017-12-21 10:24:03 +02:00