MXS-2146: Add csmon test case

Added a test case that does a set of sanity checks on the monitor. As the
monitor is very simple, there are not a lot of things to test without
access to the actual instances (e.g. ExeMgr failures need to be tested).

Currently the test always passes as ColumnStore clusters aren't
implemented for the test framework.
This commit is contained in:
Markus Mäkelä
2018-11-19 10:51:47 +02:00
parent da1772f8c9
commit 41670875fc
3 changed files with 100 additions and 0 deletions

View File

@ -0,0 +1,48 @@
[maxscale]
threads=###threads###
[CS-Monitor]
type=monitor
module=csmon
servers=server1,server2,server3,server4
user=maxskysql
password=skysql
monitor_interval=1000
primary=server1
[RW-Split-Router]
type=service
router=readwritesplit
servers=server1,server2,server3,server4
user=maxskysql
password=skysql
[RW-Split-Listener]
type=listener
service=RW-Split-Router
protocol=MariaDBClient
port=4006
[server1]
type=server
address=###node_server_IP_1###
port=###node_server_port_1###
protocol=MariaDBBackend
[server2]
type=server
address=###node_server_IP_2###
port=###node_server_port_2###
protocol=MariaDBBackend
[server3]
type=server
address=###node_server_IP_3###
port=###node_server_port_3###
protocol=MariaDBBackend
[server4]
type=server
address=###node_server_IP_4###
port=###node_server_port_4###
protocol=MariaDBBackend