|
ZeroSDN Controller
1.0
A modular distributed Software-Defined Network Controller
|
#include <DeviceModuleTests.h>
Functional Tests (Unit-Tests) for the DeviceModule implementation.
| void DeviceModuleTests::setUp | ( | ) |
| void DeviceModuleTests::tearDown | ( | ) |
| void DeviceModuleTests::testAddDevice | ( | ) |
A test for the DeviceModule method addDevice(). Tests if a given device gets added correctly including all of its properties.
| void DeviceModuleTests::testGetDeviceByMacAddressNotRegistered | ( | ) |
A test for the DeviceModule method getDeviceByMacAddress(). Tests whether for a valid (resp. not registered Device at DeviceModule) MAC-Address no Device is returned.
| void DeviceModuleTests::testGetDeviceByMacAddressRegistered | ( | ) |
A test for the DeviceModule method getDeviceByMacAddress(). Tests whether for a valid (resp. registered Device at DeviceModule) MAC-Address the correct Device is returned.
| void DeviceModuleTests::testHandleARPExistingDeviceNoUpdate | ( | ) |
A test for the DeviceModule method handlePacketIn() with ARP packet. Tests the handling for an existing Device that is already registered at the DeviceModule with the same properties like the registered one.
| void DeviceModuleTests::testHandleARPExistingDeviceUpdate | ( | ) |
A test for the DeviceModule method handlePacketIn() with ARP packet. Tests the handling for an existing Device that is already registered at the DeviceModule but with other properties like the registered one.
| void DeviceModuleTests::testHandleARPForBroadcast | ( | ) |
A test for the DeviceModule method handlePacketIn() with ARP packet. Tests the handling for an ARP packet that is a broadcast.
| void DeviceModuleTests::testHandleARPNewDevice | ( | ) |
A test for the DeviceModule method handlePacketIn() with ARP packet. Tests the handling for a new Device that is not yet registered at the DeviceModule.
| void DeviceModuleTests::testHandleIPv4ExistingDeviceNoUpdate | ( | ) |
A test for the DeviceModule method handlePacketIn() with IPv4 packet. Tests the handling for an existing Device that is already registered at the DeviceModule with the same properties like the registered one.
| void DeviceModuleTests::testHandleIPv4ExistingDeviceUpdate | ( | ) |
A test for the DeviceModule method handlePacketIn() with IPv4 packet. Tests the handling for an existing Device that is already registered at the DeviceModule but with other properties like the registered one.
| void DeviceModuleTests::testHandleIPv4NewDevice | ( | ) |
A test for the DeviceModule method handlePacketIn() with IPv4 packet. Tests the handling for a new Device that is not yet registered at the DeviceModule.
| void DeviceModuleTests::testHandleIPv6ExistingDeviceNoUpdate | ( | ) |
A test for the DeviceModule method handlePacketIn() with IPv6 packet. Tests the handling for an existing Device that is already registered at the DeviceModule with the same properties like the registered one.
| void DeviceModuleTests::testHandleIPv6ExistingDeviceUpdate | ( | ) |
A test for the DeviceModule method handlePacketIn() with IPv6 packet. Tests the handling for an existing Device that is already registered at the DeviceModule but with other properties like the registered one.
| void DeviceModuleTests::testHandleIPv6NewDevice | ( | ) |
A test for the DeviceModule method handlePacketIn() with IPv6 packet. Tests the handling for a new Device that is not yet registered at the DeviceModule.
| void DeviceModuleTests::testHandlePacketInEthernetIINoInnerPDU | ( | ) |
A test for the DeviceModule method handlePacketIn() with an invalid EthernetII packet containing no inner pdu. Tests if this case sepcial case gets catched.
| void DeviceModuleTests::testHandlePacketInIPv4BroadcastAddress | ( | ) |
A test for DeviceModule method handlePacketIn(). Tests the handling of a packet in with a broadcast IPv4 Address (255.255.255.255).
| void DeviceModuleTests::testHandlePacketInIPv6BroadcastAddress | ( | ) |
A test for DeviceModule method handlePacketIn(). Tests the handling of a packet in with a "broadcast" IPv6 Address (::).
| void DeviceModuleTests::testHandlePacketInSTSLinkPacket | ( | ) |
A test for DeviceModule method handlePacketIn(). Tests the handling of a packet that was sent from a Switch.
| void DeviceModuleTests::testHandlePacketInUnknownPacket | ( | ) |
A test for the DeviceModule method handlePacketIn(). Tests the handling of a packet that is unknown.
| void DeviceModuleTests::testHandleRequestGetAllDevices | ( | ) |
A test for the DeviceModule method handleRequest(). Tests the handling for requests of type kGetAllDevicesRequest.
| void DeviceModuleTests::testHandleRequestGetDeviceByFilter | ( | ) |
A test for the DeviceModule method handleRequest(). Tests the handling for requests of type kGetDevicesByFilterRequest with multiple filtering.
| void DeviceModuleTests::testHandleRequestGetDeviceByFilterWithMacFilter | ( | ) |
A test for the DeviceModule method handleRequest(). Tests the handling for requests of type kGetDevicesByFilterRequest with MAC filtering.
| void DeviceModuleTests::testHandleRequestGetDeviceByMacAddress | ( | ) |
A test for the DeviceModule method handleRequest(). Tests the handling for requests of type kGetDeviceByMacAddressRequest.
| void DeviceModuleTests::testHandleRequestInvalidProtobuf | ( | ) |
A test for the DeviceModule method handleRequest(). Tests the handling for requests with an invalid ProtoBuffer format.
| void DeviceModuleTests::testHandleRequestUnknownReqType | ( | ) |
A test for the DeviceModule method handleRequest(). Tests the handling for request with an unknwon Request type.
| void DeviceModuleTests::testIsDevicePassingFurtherFilters | ( | ) |
A test for the DeviceModule method isDevicePassingFurtherFilters(). Tests if for a given filter request the positive devices pass the filtering.
| void DeviceModuleTests::testIsDevicePassingFurtherFiltersNegative | ( | ) |
A test for the DeviceModule method isDevicePassingFurtherFilters(). Tests if for a given filter request the negative devices fail the filtering.
| void DeviceModuleTests::testRequestAllSTSLinks | ( | ) |
A Test for the Request to the LinkDiscoveryModule for all Switch-to-Switch Links. Tests if the request to a Mock is successfull and if the returned Links are added correctly.
| void DeviceModuleTests::testSwitchLinkEventInvalidProtobuf | ( | ) |
A test for the DeviceModule method handleSwitchLinkEvent(). Tests the handling for link event with an invalid ProtoBuffer format.
| void DeviceModuleTests::testSwitchLinkEventUnknownEventType | ( | ) |
A test for the DeviceModule method handleSwitchLinkEvent(). Tests the handling for link events with an unknwon Request type
| void DeviceModuleTests::testSwitchToSwitchLinkAdded | ( | ) |
A Test for the SwitchLinkEvent Added from the LinkDiscoveryModule. Tests the adding for a new SwitchToSwitchLink published by the mentioned event.
| void DeviceModuleTests::testSwitchToSwitchLinkRemoved | ( | ) |
A Test for the SwitchLinkEvent Removed from the LinkDiscoveryModule. Tests the removing of a SwitchToSwitchLink published by the mentioned event.
| void DeviceModuleTests::testValidateDevicesAllValid | ( | ) |
A Test for the method validateDevices() of DeviceModule. Tests if valid devices are detected as valid.
| void DeviceModuleTests::testValidateDevicesInvalid | ( | ) |
A Test for the method validateDevices() of DeviceModule. Tests if an invalid devices gets detected as invalid and is deleted from devices map.