#include <TestFailOver.hpp>
Public Member Functions | |
void | setUp () |
Nothing to setup. | |
void | tearDown () |
Nothing to tearDown. | |
void | testReconnectNoControllers () |
Tries to connect to 1 then 2 failing controllers (actually with dummy ports). | |
void | testConnectOnlyOneControllerUp () |
Tries to connect to a list of controller in which only 1 ctrller is up. | |
void | testReconnect () |
USER INTERACTION NEEDED ! Launches 1000 write requests having 2 controllers. | |
Static Public Member Functions | |
static CppUnit::Test * | suite () |
Suite of tests to be run. |
void TestFailOver::testReconnect | ( | ) |
USER INTERACTION NEEDED ! Launches 1000 write requests having 2 controllers.
During these writes, the user has to stop one of the controllers and check that the other one is connected to silently Stop controller preferably with iptables. Command for iptables: > iptables -A INPUT -i lo -p tcp --dport 25322 -d localhost -j REJECT --reject-with tcp-reset to restore traffic: > iptables -D INPUT 1