Commit Graph

13157 Commits

Author SHA1 Message Date
c3dff9c60c MXS-3014: Add missing global parameters to REST API
A few global parameters weren't included in the list of parameters. A few
non-parameter values that were in the parameter object were moved out into
the attributes object. Sorted the parameter alphabetically.
2020-05-29 08:32:39 +03:00
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
c211bf1a21 Remove old VERSION.cmake files 2020-05-25 09:06:43 +03:00
7c011b4081 MXS-2998: Fix key-value parsing
The code assumed that no value would hold an equals sign which is
wrong. Added a test case that reproduces the problem and verifies the fix.
2020-05-14 09:34:25 +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
b212117fd3 MXS-2990 Fix the problem, treat ! as not
If '!' is followed by '=' then it is NOT-EQUAL, otherwise it is
just NOT.
2020-05-13 10:38:07 +03:00
9999650bbe MXS-2990 Add test that reveals problem
Had to fix qc_mysqlembedded as well to work with 10.2.
2020-05-13 10:32:39 +03:00
73eba01ce9 Fix cluster sync documentation
The MaxScale instance isn't stopped if the synchronization fails. Added
missing documentation for the command argument.
2020-05-11 07:44:57 +03:00
b4108270dc MXS-2982: Fix documetation link in --help output 2020-05-11 07:44:57 +03:00
a2b5a1aba3 MXS-2980: Forward options to the interactive mode
The --quiet option does not make sense in the interactive mode so it isn't
forwarded.

Added code that reports TLS certificate loading errors. The errors
themselves aren't very exact but at least they give a hint as to why it
failed.
2020-05-11 07:44:56 +03:00
0ddee9613b MXS-2981: Treat missing TLS files as an error
Also treats partially defined TLS files as an error.
2020-05-11 07:44:56 +03:00
c34b835c51 Build maxbase tests only if BUILD_TESTS in on 2020-04-30 17:55:23 +03:00
df01a6e9e0 Merge branch '2.3.19' into 2.3 2020-04-27 15:54:04 +03:00
5b33e03a64 2.3 Update maintenance version 2020-04-27 15:51:46 +03:00
25c5c91fea Update 2.3.19 release date 2020-04-27 15:36:04 +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
c689aac939 2.3.19 Create release notes and update change log 2020-04-23 14:31:08 +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
1b5866e609 MXS-2969: Silence restart output 2020-04-22 15:18:29 +03:00
fe44fd8a87 MXS-2969: Invert user check conditional
The conditional was inverted and the user was created if it already
existed.
2020-04-22 15:18:00 +03:00
be567b6029 MXS-2969: Restart MaxScale on upgrade
Renamed the postrm script to prerm since it is executed before
uninstallation.

Silenced the output of the systemctl disable commands and added a
conditional restart of MaxScale if a MaxScale instance is running.

Use getent instead of grep to detect if the maxscale user needs to be
created.
2020-04-21 09:29:16 +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
aacae9b508 MXS-2956: Fix use of admin_ssl_ca_cert
The parameter is now optional and uses the correct file. If defined, it
defines the CA certificate that would be used to verify client
certificate. Client certificate verification doesn't seem to currently
work as that requires a custom verification callback that interfaces with
GnuTLS.
2020-04-09 11:58:50 +03:00
594e431f1a MXS-2900 Move MariaDB-Monitor tests 2020-04-07 15:49:34 +03:00
5dbe4f11c9 MXS-2948: Don't update passwords with cluster sync
Not updating the passwords prevents the cluster sync from breaking working
configurations.
2020-04-07 12:35:56 +03:00
983b8247dd MXS-2900 Cleanup environment variable management 2020-04-07 11:29:50 +03:00
1ed6304281 MXS-2954: Use correct object for PATCH
The destination object instead of the source object was used. This caused
the PATCH to be a no-op.

Due to how the REST API behaves when it received parameters, the set of
synced parameters must be filtered. The REST API should be more lenient
towards alterations to parameters that don't actually change the value.
2020-04-06 19:37:53 +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
67a77a2497 MXS-2944: Remove old tutorials 2020-04-01 09:09:28 +03:00
e0cd4ec485 MXS-2931: Use a preun, not a postun, script
The script must be called before the package is removed on CentOS 6 to
allow the process to be stopped correctly.
2020-03-31 14:49:54 +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
2630cc930f Install 2.3 license file 2020-03-30 08:53:55 +03:00
1fc5ec36b1 Add filters to maxctrl show service
The filters were not listed.
2020-03-30 08:53:55 +03:00
7b00d2c01b MXS-2942: Only DELETE monitors with no servers
The behavior is now according to the documentation and is consistent with
how services behave.
2020-03-30 08:53:54 +03:00
a412ed6211 Fix monitor REST API documentation
The DELETE documentation had the wrong endpoint.
2020-03-30 08:53:54 +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
a8e2584bfc Fix REST API servers documentation
Always use plural form of the objects. PATCH example used PUT.
2020-03-19 15:13:02 +02:00