Commit Graph

1048 Commits

Author SHA1 Message Date
0907e0f0e5 Add BACKEND_SSL VM type
This is needed by tests that use add_test_executable_ex and require
backend SSL. Also fixed a problem in disable_ssl where an empty query was
executed instead of the query itself.
2020-05-27 14:06:51 +03:00
481f6f1aea Add missing operator=(Connection&&)
The move assignment should also be defined if the move construction is
defined.
2020-05-13 13:43:58 +03:00
a38b475e90 Fix add_template
The path to the coniguration file must be an absolute path
(CMAKE_SOURCE_DIR) instead of a relative one
(CMAKE_CURRENT_SOURCE_DIR). This fixes cdc_datatypes.
2020-04-27 10:22:51 +03:00
87328228f8 Fix mxs922_monitor
The monitor needs to be unlinked from servers before it is destroyed.
2020-04-24 14:52:23 +03:00
f527a8f2e6 2.3.19 Update Change Date 2020-04-23 14:23:57 +03:00
9d70f479c7 Rewrite mxs548_short_session_change_user
Use C++11 constructs along with the utilities provided by the newer
testing code.
2020-04-22 21:54:14 +03:00
c3ddcb9056 MXS-2900 Add ability to add derived tests to add_test_executable_ex() 2020-04-13 17:21:40 +03:00
f549d95793 MXS-2900 maxtest header cleanup 2020-04-11 22:10:35 +03:00
03726a5f25 MXS-2900 Rename maxtest files
Many of the headers were not renamed to avoid changing every test.
2020-04-10 20:50:28 +03:00
594e431f1a MXS-2900 Move MariaDB-Monitor tests 2020-04-07 15:49:34 +03:00
983b8247dd MXS-2900 Cleanup environment variable management 2020-04-07 11:29:50 +03:00
071501ea1f MXS-2900 Run uncrustify on testconnections.cpp
Also some other minor cleanup.
2020-04-02 11:52:02 +03:00
5ed99b2f5b MXS-2900 Move more TestConnection fields to private 2020-04-02 11:51:36 +03:00
2420ccf9a8 MXS-2900 Use named arguments in add_test_executable_ex()
Backend setup and labels are given in separate arguments. Only the backend
setup is saved to the test information array. Additional link libraries may
also be defined if a group of tests want to share code.
2020-04-01 22:06:04 +03:00
a3e358f29b MXS-2900 Cleanup test labels handling
The labels are stored in sets for easy searching.
2020-04-01 21:28:03 +03:00
6754586f76 MXS-2900 Add possibility of having system test in any directory
The cmake-function add_test_executable_ex() adds a test using a source file in the
current directory. The config file is given as a relative path.
2020-04-01 21:27:07 +03:00
c6a9c8bb0f MXS-2900 Cleanup system test information generation
The system test information array now has the full path to the MaxScale
configuration file. The array now only contains labels given in
CMakeLists.txt. The resulting .cc-file has linebreaks for readability.
2020-03-31 13:38:45 +03:00
d69e519038 MXS-2900 MXS-2900 Clean up TestConnection string handling
Now uses std::string for several fields.
2020-03-30 15:37:53 +03:00
480c57c122 MXS-2900 Move more TestConnections fields to private 2020-03-30 10:28:12 +03:00
3d7ee2e8cd MXS-2900 Clean up test config file and label handling 2020-03-24 14:14:20 +02:00
36244e9c7b MXS-2900 Move test description array to a .cc-file
The array is now compiled into the maxtest-library.
Also cleaned up the array handling a bit.
2020-03-24 11:33:59 +02:00
89a8d6ace5 Use bigger VMs for system tests 2020-03-23 16:16:07 +02:00
efe5bdfd9f Adopt run_test.sh for parallel test execution from BuildBot 2020-03-23 16:15:25 +02:00
5121aa296e Add timeout to rwsplit_readonly_stress
This prevents the test from hanging.
2020-03-16 15:09:41 +02:00
e7b8aca605 Stop MaxScale after tests
This allows crashes on exit to be detected.
2020-03-16 15:08:52 +02:00
e0cd6adb26 Update change date for 2.3.18 2020-03-10 10:45:47 +02:00
96ba2da40c MXS-2900 Move testcore library files to a dedicated directory
The library is now named "maxtest". The related include-files are, for
now, usable without designating the full include path. This may be changed
later, but would require modifying every test.
2020-03-02 11:17:30 +02:00
0614a44a4d Add monitor TLS test case
Added a test that verifies the server state is Down when the backend
doesn't support TLS.
2020-02-24 12:02:50 +02:00
cfb3f79b54 Update 2.3.17 Change Date 2020-02-10 15:28:38 +02:00
9262e14aed MXS-2851 Add test that reveals bug 2020-01-28 11:21:37 +02:00
36dee78cee MXS-2850 Add test that reveals bug 2020-01-28 11:02:19 +02:00
08616692a4 Fixed tests to be compatible with GCloud VMs
GCloud machines has more strict access rights settings. Derect calls of
'chmod' are needed to make all configuration files (e.g. 'fwf/rules') be
accessable by Maxscale.
2020-01-24 13:47:26 +02:00
c04d6748d3 Fix debug assertion on inconsistent sescmd result
The slave backend would be closed twice if it would both respond with a
different result and be closed due to a hangup before the master
responded.

Added a test case that reproduced the problem.
2020-01-23 18:38:05 +02:00
b46974f3e7 Fix Galera lib seach in mariadb_nodes.cpp 2020-01-23 14:49:18 +02:00
790d90f229 Update 2.3.16 Change Date 2020-01-15 11:08:51 +02:00
aeab1bdc7d Cherry-pick: Fall back to pkill in run_ctrl_c.sh
The pkill executable is provided by the same package that provides ps
which is why it is more likely to be installed. Seems that the test VMs
don't always have killall installed.

Run the MaxScale process with the maxscale user instead of the root user
to prevent any new files from being owned by a different user.

Cherry-picked the commit a06c122a5e050071589f724758d6bbd3d8d3f419 from
develop.
2020-01-13 17:12:05 +02:00
8de3339bc0 MXS-619: Restore old test
The test now performs the original test of not doing any queries between
the opening and closing of sessions.
2019-12-19 14:43:27 +02:00
aa801c74c5 Use constexpr instead of define in the mxs173_throttle_filter test 2019-12-16 19:53:53 +02:00
e1fc0b8734 Squashed commit of the following:
commit 48a0b902b67da46f1eed4afa687bdcb56b59d02f
Author: Timofey Turenko <timofey.turenko@mariadb.com>
Date:   Mon Dec 16 15:35:07 2019 +0200

    Increase timouts in the mxs173_trottle_filter test

commit 81d8083a89421a8004b8024d480ae0f35d715b86
Author: Timofey Turenko <timofey.turenko@mariadb.com>
Date:   Mon Dec 16 14:19:39 2019 +0200

    Increase timeouts in max1071_maxrow test

commit e1039c6132f0e9274b8801165f3f905ede7c9421
Author: Timofey Turenko <timofey.turenko@mariadb.com>
Date:   Mon Dec 16 00:06:53 2019 +0200

    Remove hardcoded 'home/vagrant/' from all maxscale.cnf in system tests

commit 28c8029e060afdcf5159bf802b13dcd5e484d9f1
Author: Timofey Turenko <timofey.turenko@mariadb.com>
Date:   Sun Dec 15 21:31:34 2019 +0200

    Use private IP for Galera congiguration in maxscale-system-tests

commit 66dc36cbf43a5fb92465df31e1295e82865be1fc
Author: Timofey Turenko <timofey.turenko@mariadb.com>
Date:   Sun Dec 15 09:06:28 2019 +0200

    Fix typos in fwf_*.cpp

commit 44c7a4384ddf39596c0254c955aeb6c008a00a35
Author: Timofey Turenko <timofey.turenko@mariadb.com>
Date:   Sun Dec 15 09:05:26 2019 +0200

    Fix typos in fwf_*.cpp

commit 2649017611908a8b0d27090f49722947ac31c4f4
Author: Timofey Turenko <timofey.turenko@mariadb.com>
Date:   Sun Dec 15 09:03:41 2019 +0200

    Fix typos in fwf_*.cpp

commit 5cc87658523e8496eaab17700be8a821af5b0cde
Author: Timofey Turenko <timofey.turenko@mariadb.com>
Date:   Sat Dec 14 23:54:53 2019 +0200

    Fix typo in fwf_copy_rules.cpp

commit fb1accc36cb9d79691469f63cb4535f3bc38dedd
Author: Timofey Turenko <timofey.turenko@mariadb.com>
Date:   Sat Dec 14 23:52:51 2019 +0200

    More hardcoded 'vagrant' removals

commit 77e49d474b4abe767629ff87b01f08137773d761
Author: Timofey Turenko <timofey.turenko@mariadb.com>
Date:   Sat Dec 14 23:35:09 2019 +0200

    Fix hardcoded 'vagrant' user in fwf* tests

    Several firewall filter tests has hardcoded 'vagrant' as a user name for
    access user on the VM. Changed to node->access_user.

commit ed5ab1487f37822db6a7478f76c0f3652776c389
Author: Timofey Turenko <timofey.turenko@mariadb.com>
Date:   Sat Dec 14 22:50:35 2019 +0200

    Fix IP vs IP_private

    Many tests use IP instead of IP_private which makes them failed in the
    AWS or GCloud environment.
    The same applies to get_conn_num() etc functions.

commit 0558aac23d303a675dc12d05b1766e698753b444
Author: Timofey Turenko <timofey.turenko@mariadb.com>
Date:   Thu Aug 15 12:02:01 2019 +0300

    fix IP -> IP_private for some mysqlmon* testst

commit 5d9c70970d970eb995c8774d0088bd1c54ab76fe
Author: Timofey Turenko <timofey.turenko@mariadb.com>
Date:   Sat Dec 14 20:20:51 2019 +0200

    Replace IP to IP_private in the maxscale-system-tests

commit b06cf3329af59ff100748691991213fe639f29e6
Author: Timofey Turenko <timofey.turenko@mariadb.com>
Date:   Tue Nov 19 11:52:33 2019 +0200

    Remove spaces from value which were read from *_network_config

    MDBCI can put spaces around values in the *_network_config file which
    can cause ssh connection failures in the tests. To fix it removing all
    spaces from all values which were read from *_network_config

commit b3904f019847ef1db9d4ec9714ad9ef869fa0b01
Author: Timofey Turenko <timofey.turenko@mariadb.com>
Date:   Thu Dec 12 23:36:31 2019 +0200

    Increate default timeout for all system tests
2019-12-16 15:41:52 +02:00
5ab6c472a0 Fix parameter name for kerberos_setup_ssl config 2019-12-10 09:48:58 +02:00
694c0e784b MXS-2788 Add test that reveals problem
String comparison when checking whether a columns should be masked
is made in a case-insensitive way.
2019-12-05 13:02:05 +02:00
fa656c6870 Disable peer verification in kerberos_setup_ssl
The test uses the command line client which doesn't provide certificates.
2019-12-05 10:21:25 +02:00
cc52be8df2 Explicitly state the owner, group and access parameters to the MariaDB configuration file during the server reset 2019-11-20 09:20:13 +02:00
ed3548b825 MXS-2770 Fix mxs2167_extra_port
1) Only two backends are set up for extra-port
2) The setting is checked to work by connecting directly to servers
3) The server connections are saturated before starting MaxScale
4) MaxScale logs are checked for extra-port-related messages
2019-11-18 13:31:29 +02:00
df6c56e7ca Update 2.3.13 Change Date 2019-10-29 12:51:31 +02:00
195a016b7c Rewrite slave_failover
The test now uses the @@server_id server variable to detect which server
is used. This is a lot less error prone than comparing hostnames is.
2019-10-29 11:33:10 +02:00
c54e254ea0 MXS-2645 Add test case to connection_limit test
Tests max_connections with repeated failed logins.
2019-10-04 15:11:09 +03:00
ff2048625b MXS-2652 Add test
Test case added to an existing test.
2019-09-06 10:12:16 +03:00
d82a90e27f Add read rights to /etc/my.cnf.d/* on test VMs
In some configs /etc/my.cnf.d/* files access rights are
very limited and server can not read configuration.
It leads to broken settings and unability to setup
replication during the test
2019-09-05 10:21:04 +03:00
cc038278d6 MXS-2631 Add system test 2019-08-29 01:00:49 +03:00