项目作者: markus456

项目描述 :
Test for replication-manager: https://github.com/tanji/replication-manager
高级语言: Python
项目地址: git://github.com/markus456/mrm-tests.git
创建时间: 2017-04-26T11:23:11Z
项目社区:https://github.com/markus456/mrm-tests

开源协议:BSD 3-Clause "New" or "Revised" License

下载


mrm-tests

Tests for replication-manager
and MaxScale.

Running tests requires:

  • Python 3
  • transitions (pip3 install transitions)
  • A local MaxAdmin executable

Edit the following files to do the following actions:

  • start.sh: Start a node, either 0 or 1 is given as parameter for either first or second node
  • stop.sh: Stop a node, same parameters as start
  • bootstrap.sh: Bootstrap the cluster into a running state
  • bootstrap_cluster_down.sh: Bootstrap the cluster into a downed state

Test syntax

The tests consist of two a node setup with one master and one slave. Each line
in a .test file is considered a state of the cluster. Here’s an example:

  1. MS
  2. MX
  3. MS

This starts with the first server as Master and the second server as Slave
(MS). Then the second server goes down (MX) and is restarted again (MS).