MaxScale/maxscale-system-test/test_binlog_fnc.h
Markus Mäkelä d7d4ec29bb Add tests from develop
Added tests from develop. The test results need to be modified for 2.0.
2017-05-26 15:40:40 +03:00

31 lines
849 B
C++

#ifndef TEST_BINLOG_FNC_H
#define TEST_BINLOG_FNC_H
#include <iostream>
#include "testconnections.h"
#include "maxadmin_operations.h"
#include "sql_t1.h"
/**
* @brief check_sha1 Check that checksum of binlog files on Maxscale machines and all backends are equal
* @param Test TestConnections object
* @return 0 if binlog files checksums are identical
*/
int check_sha1(TestConnections* Test);
/**
* @brief start_transaction Template for test transaction (used by test_binlog()
* @param Test TestConnections object
* @return 0 in case of success
*/
int start_transaction(TestConnections* Test);
/**
* @brief test_binlog Execute a number of tests for check if binlog router is ok
* (see test description in setup_binlog.cpp)
* @param Test TestConnections object
*/
void test_binlog(TestConnections* Test);
#endif // TEST_BINLOG_FNC_H