memgraph/tests/integration
Matija Santl f53913e053 Add automated test for Raft
Summary:
Created a new integration test for Raft protocol.

The tests iterates through the Raft cluster and does the following:
* kill machine `X`
* execute a query
* bring `X` back to life

The first step is to insert a vertex in the cluster, and last step is to check
if the cluster has all the data.

I also edited some of the raft core files because this test surafaced some bugs.

The `tester` binary is a hacked version of the HA client and so are the parts in
the code that refuse to execute a query is the machine is not in `Leader` mode.o
Those parts will go away once we have a proper HA client.

I've run the `runner.py` for a while (215 times)
```
while ./runner.py &> log.txt; do echo -n "."; done
```
and it didn't break.

Reviewers: ipaljak, mferencevic

Reviewed By: ipaljak

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1788
2019-01-14 13:41:36 +01:00
..
auth Polish Bolt client and mg_client 2018-10-19 13:55:51 +02:00
dgp Add dgp integration test 2018-09-08 00:01:03 +01:00
distributed Fix integration distributed test flakiness 2018-10-26 10:17:23 +02:00
ha_basic Add automated test for Raft 2019-01-14 13:41:36 +01:00
kafka Polish Bolt client and mg_client 2018-10-19 13:55:51 +02:00
ssl Add explicit start to servers 2018-10-16 11:39:42 +02:00
telemetry Reduce telemetry test flakiness 2018-10-18 14:29:13 +02:00
transactions Polish Bolt client and mg_client 2018-10-19 13:55:51 +02:00
apollo_runs.yaml Add automated test for Raft 2019-01-14 13:41:36 +01:00
CMakeLists.txt Add automated test for Raft 2019-01-14 13:41:36 +01:00