TestFailOver Class Reference

Test class for controller connection policy Tests suspected controller queuing and update A controller *MUST* run locally for test success !!! More...

#include <TestFailOver.hpp>

List of all members.

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.


Detailed Description

Test class for controller connection policy Tests suspected controller queuing and update A controller *MUST* run locally for test success !!!


Member Function Documentation

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


The documentation for this class was generated from the following file:
Generated on Tue Oct 24 09:05:37 2006 for Carob by  doxygen 1.5.0