2.74. test_punt module¶
-
class
test_punt.
TestIP4PuntSocket
(methodName='runTest')¶ Bases:
test_punt.TestPuntSocket
Punt Socket for IPv4
-
setUp
()¶ Clear trace before running each test
-
classmethod
setUpClass
()¶ Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api
-
tearDown
()¶ Show various debug prints after each test
-
classmethod
tearDownClass
()¶ Perform final cleanup after running all tests in this test-case
-
test_punt_socket_dump
()¶ Punt socket registration/deregistration
-
test_punt_socket_traffic_multi_port_multi_sockets
()¶ Punt socket traffic multi ports and multi sockets
-
test_punt_socket_traffic_multi_ports_single_socket
()¶ Punt socket traffic multi ports and single socket
-
test_punt_socket_traffic_single_port_single_socket
()¶ Punt socket traffic single port single socket
-
-
class
test_punt.
TestIP6PuntSocket
(methodName='runTest')¶ Bases:
test_punt.TestPuntSocket
Punt Socket for IPv6
-
setUp
()¶ Clear trace before running each test
-
classmethod
setUpClass
()¶ Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api
-
tearDown
()¶ Show various debug prints after each test
-
classmethod
tearDownClass
()¶ Perform final cleanup after running all tests in this test-case
-
test_punt_socket_dump
()¶ Punt socket registration
-
test_punt_socket_traffic_multi_port_multi_sockets
()¶ Punt socket traffic multi ports and multi sockets
-
test_punt_socket_traffic_multi_ports_single_socket
()¶ Punt socket traffic multi ports and single socket
-
test_punt_socket_traffic_single_port_single_socket
()¶ Punt socket traffic single port single socket
-
-
class
test_punt.
TestPunt
(methodName='runTest')¶ Bases:
framework.VppTestCase
Punt Test Case
-
setUp
()¶ Clear trace before running each test
-
classmethod
setUpClass
()¶ Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api
-
tearDown
()¶ Show various debug prints after each test
-
classmethod
tearDownClass
()¶ Perform final cleanup after running all tests in this test-case
-
test_punt
()¶ Excpetion Path testing
-
-
class
test_punt.
TestPuntSocket
(methodName='runTest')¶ Bases:
framework.VppTestCase
Punt Socket
-
nr_packets
= 256¶
-
ports
= [1111, 2222, 3333, 4444]¶
-
portsCheck
= {}¶
-
setUp
()¶ Clear trace before running each test
-
classmethod
setUpClass
()¶ Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api
-
classmethod
setUpConstants
()¶ Set-up the test case class based on environment variables
-
sock_servers
= []¶
-
socket_client_close
()¶
-
socket_client_create
(sock_name, id=None)¶
-
tearDown
()¶ Show various debug prints after each test
-
classmethod
tearDownClass
()¶ Perform final cleanup after running all tests in this test-case
-
-
test_punt.
ethernet_frame
(data)¶
-
test_punt.
get_mac_addr
(bytes_addr)¶
-
test_punt.
ipv4
(bytes_addr)¶
-
test_punt.
ipv4_packet
(data)¶
-
test_punt.
ipv6_packet
(data)¶
-
test_punt.
receivePackets
(sock, counters)¶
-
class
test_punt.
serverSocketThread
(threadID, sockName, counters)¶ Bases:
threading.Thread
Socket server thread
-
run
()¶ Method representing the thread’s activity.
You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.
-
-
test_punt.
tcp_seg
(data)¶
-
test_punt.
udp_seg
(data)¶