Markus Mäkelä
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
Markus Mäkelä
1b5866e609
MXS-2969: Silence restart output
2020-04-22 15:18:29 +03:00
Markus Mäkelä
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
Markus Mäkelä
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
Esa Korhonen
c3ddcb9056
MXS-2900 Add ability to add derived tests to add_test_executable_ex()
2020-04-13 17:21:40 +03:00
Esa Korhonen
f549d95793
MXS-2900 maxtest header cleanup
2020-04-11 22:10:35 +03:00
Esa Korhonen
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
Markus Mäkelä
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
Esa Korhonen
594e431f1a
MXS-2900 Move MariaDB-Monitor tests
2020-04-07 15:49:34 +03:00
Markus Mäkelä
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
Esa Korhonen
983b8247dd
MXS-2900 Cleanup environment variable management
2020-04-07 11:29:50 +03:00
Markus Mäkelä
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
Esa Korhonen
071501ea1f
MXS-2900 Run uncrustify on testconnections.cpp
...
Also some other minor cleanup.
2020-04-02 11:52:02 +03:00
Esa Korhonen
5ed99b2f5b
MXS-2900 Move more TestConnection fields to private
2020-04-02 11:51:36 +03:00
Esa Korhonen
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
Esa Korhonen
a3e358f29b
MXS-2900 Cleanup test labels handling
...
The labels are stored in sets for easy searching.
2020-04-01 21:28:03 +03:00
Esa Korhonen
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
Markus Mäkelä
67a77a2497
MXS-2944: Remove old tutorials
2020-04-01 09:09:28 +03:00
Markus Mäkelä
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
Esa Korhonen
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
Esa Korhonen
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
Esa Korhonen
480c57c122
MXS-2900 Move more TestConnections fields to private
2020-03-30 10:28:12 +03:00
Markus Mäkelä
2630cc930f
Install 2.3 license file
2020-03-30 08:53:55 +03:00
Markus Mäkelä
1fc5ec36b1
Add filters to maxctrl show service
...
The filters were not listed.
2020-03-30 08:53:55 +03:00
Markus Mäkelä
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
Markus Mäkelä
a412ed6211
Fix monitor REST API documentation
...
The DELETE documentation had the wrong endpoint.
2020-03-30 08:53:54 +03:00
Esa Korhonen
3d7ee2e8cd
MXS-2900 Clean up test config file and label handling
2020-03-24 14:14:20 +02:00
Esa Korhonen
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
Timofey Turenko
89a8d6ace5
Use bigger VMs for system tests
2020-03-23 16:16:07 +02:00
Timofey Turenko
efe5bdfd9f
Adopt run_test.sh for parallel test execution from BuildBot
2020-03-23 16:15:25 +02:00
Markus Mäkelä
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
Markus Mäkelä
5121aa296e
Add timeout to rwsplit_readonly_stress
...
This prevents the test from hanging.
2020-03-16 15:09:41 +02:00
Markus Mäkelä
e7b8aca605
Stop MaxScale after tests
...
This allows crashes on exit to be detected.
2020-03-16 15:08:52 +02:00
Johan Wikman
f0fd480237
Merge branch '2.3.18' into 2.3
2020-03-12 10:27:26 +02:00
Johan Wikman
7efdb5dd28
Update 2.3.18 release date
2020-03-12 10:20:54 +02:00
Johan Wikman
04533e6293
2.3.18 Create release notes and update change log
2020-03-12 10:20:54 +02:00
Timofey Turenko
09c8e7b29b
create symlink also from sles to opensuse repos
2020-03-11 20:23:12 +02:00
Timofey Turenko
8b2c46991b
Set cpu cores number to build VM and separate build and upgrade
...
VM should have 8 cores to make build faster in GCloud.
To get rid of ssfs between build hosts the build step
and upgrade test step are separated as well as
repository discriåtion generation
2020-03-11 19:00:27 +02:00
Timofey Turenko
a97973665a
Merge branch '2.3' of github.com:mariadb-corporation/MaxScale into 2.3
2020-03-11 18:57:54 +02:00
Timofey Turenko
33ccc4687c
Set cpu cores number to build VM and separate build and upgrade
...
VM should have 8 cores to make build faster in GCloud.
To get rid of ssfs between build hosts the build step
and upgrade test step are separated as well as
repository discriåtion generation
2020-03-11 18:50:53 +02:00
Johan Wikman
df18c1b2e8
Update maintenance version for 2.3
2020-03-10 15:09:29 +02:00
Markus Mäkelä
38420c38b9
Upgrade to nodejs 6.17.1
2020-03-10 14:25:05 +02:00
Johan Wikman
e0cd6adb26
Update change date for 2.3.18
2020-03-10 10:45:47 +02:00
Johan Wikman
8dd9a4ca27
MXS-2917 Add missing destructors to sqlite rules
...
Lemon (the sqlite parser generator) destructors are needed for
all rules that return dynamically allocated structures. Otherwise
there may be leaks if a statement is not completely parsed.
2020-03-09 15:24:20 +02:00
Esa Korhonen
4a2d3dc55b
MXS-2914 Link to pcre2 syntax page instead of API page
...
More appropriate link.
2020-03-04 16:38:18 +02:00
Markus Mäkelä
2f6d003491
MXS-2832: Document failover timing estimates
...
The worst-case time it takes for failover to start is now documented.
2020-03-04 08:49:03 +02:00
Markus Mäkelä
e2e220de66
MXS-2726: Document ccrfilter default behavior
...
Added an explicit mention of the way the filter works.
2020-03-02 17:30:11 +02:00
Markus Mäkelä
b7d0be97ab
MXS-2211: Auto-generate TOC
...
The link no longer works as the section has been removed. Auto-generating
the TOC solves this.
2020-03-02 17:30:10 +02:00
Markus Mäkelä
207882defb
MXS-2277: Document script limitations
...
The script should not interact with the administrative interfaces of
MaxScale.
2020-03-02 17:30:10 +02:00
Markus Mäkelä
67fee60f80
Fix Auth Error server status
...
The mon_ping_or_connect_to_db resets the MYSQL handle which caused the
loss of the error message. Returning a new enumeration value for
authentication errors solves this problem.
2020-03-02 16:32:35 +02:00