|
ZeroSDN Controller
1.0
A modular distributed Software-Defined Network Controller
|
#include <TopologyModuleTests.h>
Public Member Functions | |
| TopologyModuleTests () | |
| void | setUp () |
| void | tearDown () |
| void | testSwitchEventAdded () |
| void | testSwitchEventChanged () |
| void | testSwitchEventChangedUnknownSwitch () |
| void | testSwitchEventRemoved () |
| void | testSwitchEventRemovedUnknownSwitch () |
| void | testSwitchEventInvalidProtobuf () |
| void | testSwitchEventUnknownEvent () |
| void | testSwitchToSwitchLinkAddedRegistered () |
| void | testSwitchToSwitchLinkAddedUnegistered () |
| void | testSwitchToSwitchLinkFromUnregisteredToRegistered () |
| void | testIsSwitchRegisteredCorrectIDIncorrectPort () |
| void | testSwitchToSwitchLinkRemoved () |
| void | testSwitchLinkEventInvalidProtobuf () |
| void | testSwitchLinkEventUnknownEvent () |
| void | testHandleRequestGetTopologyRequest () |
| void | testHandleRequestInvalidProtobuf () |
| void | testHandleRequestUnknownReqType () |
Functional Tests (Unit-Tests) for the TopologyModule implementation.
| TopologyModuleTests::TopologyModuleTests | ( | ) |
| void TopologyModuleTests::setUp | ( | ) |
Mock dependencies
| void TopologyModuleTests::tearDown | ( | ) |
| void TopologyModuleTests::testHandleRequestGetTopologyRequest | ( | ) |
A test for the handleRequest method.
| void TopologyModuleTests::testHandleRequestInvalidProtobuf | ( | ) |
A test for the TopologyModule method handleRequest(). Tests the handling for requests with an invalid ProtoBuffer format.
| void TopologyModuleTests::testHandleRequestUnknownReqType | ( | ) |
A test for the TopologyModule method handleRequest(). Tests the handling for request with an unknwon Request type.
| void TopologyModuleTests::testIsSwitchRegisteredCorrectIDIncorrectPort | ( | ) |
A Test for the TopologyModule method isSwitchRegistered(). Input is a valid switchID but with an invalid/unknown port.
| void TopologyModuleTests::testSwitchEventAdded | ( | ) |
A Test for the SwitchEvent Added from the SwitchRegistryModule. Tests the adding for a new Switch published by the mentioned event.
| void TopologyModuleTests::testSwitchEventChanged | ( | ) |
A Test for the SwitchEvent Changed from the SwitchRegistryModule. Tests the changing for a Switch published by the mentioned event.
| void TopologyModuleTests::testSwitchEventChangedUnknownSwitch | ( | ) |
A Test for the SwitchEvent Changed from the SwitchRegistryModule. Tests if an update for a yet unknown Switch in published, a new switch shoud be added.
| void TopologyModuleTests::testSwitchEventInvalidProtobuf | ( | ) |
A test for the SwitchEvent. Tests the handling for SwitchEvents with an invalid ProtoBuffer format.
| void TopologyModuleTests::testSwitchEventRemoved | ( | ) |
A Test for the SwitchEvent Removed from the LinkDiscoveryModule. Tests the removing of a Switch published by the mentioned event.
| void TopologyModuleTests::testSwitchEventRemovedUnknownSwitch | ( | ) |
A Test for the SwitchEvent Removed from the LinkDiscoveryModule. Tests if a remove for a yet unknown Switch is published.
| void TopologyModuleTests::testSwitchEventUnknownEvent | ( | ) |
A test for the TopologyModule method handleSwitchEvent(). Tests the handling for SwitchEvents with an unknwon Request type.
| void TopologyModuleTests::testSwitchLinkEventInvalidProtobuf | ( | ) |
A test for the TopologyModule method handleSwitchLinkEvent(). Tests the handling for SwitchLinkEvents with an invalid ProtoBuffer format.
| void TopologyModuleTests::testSwitchLinkEventUnknownEvent | ( | ) |
A test for the TopologyModule method handleSwitchLinkEvent(). Tests the handling for SwitchLinkEvents with an unknwon type.
| void TopologyModuleTests::testSwitchToSwitchLinkAddedRegistered | ( | ) |
A Test for the SwitchLinkEvent Added from the LinkDiscoveryModule for already registered Switches. Tests the adding for a new SwitchToSwitchLink published by the mentioned event.
| void TopologyModuleTests::testSwitchToSwitchLinkAddedUnegistered | ( | ) |
A Test for the SwitchLinkEvent Added from the LinkDiscoveryModule for unregistered Switches. Tests the adding for a new SwitchToSwitchLink published by the mentioned event.
| void TopologyModuleTests::testSwitchToSwitchLinkFromUnregisteredToRegistered | ( | ) |
A Test for the SwitchEvent Added where a primarily unregistered SwitchToSwitchLink gets set to registered because the according Switch was added.
| void TopologyModuleTests::testSwitchToSwitchLinkRemoved | ( | ) |
A Test for the SwitchLinkEvent Removed from the LinkDiscoveryModule. Tests the removing of a SwitchToSwitchLink published by the mentioned event.