Exemplo n.º 1
0
 def Node6PingTestCase(self, connection: Connection):
     should_contains(do_ping(connection, "101.0.0.1", "106.0.0.1", 10),
                     "10 packets transmitted")
     should_contains(do_ping(connection, "102.0.0.1", "106.0.0.1", 10),
                     "10 packets transmitted")
     should_contains(do_ping(connection, "103.0.0.1", "106.0.0.1", 10),
                     "10 packets transmitted")
     should_contains(do_ping(connection, "104.0.0.1", "106.0.0.1", 10),
                     "10 packets transmitted")
     should_contains(do_ping(connection, "105.0.0.1", "106.0.0.1", 10),
                     "10 packets transmitted")
Exemplo n.º 2
0
 def Node1PingTestCase(self, connection: Connection):
     should_contains(do_ping(connection, "4.0.0.1", "1.0.0.1", 10),
                     "10 packets transmitted")
Exemplo n.º 3
0
 def Node2PingTestCase(self, connection: Connection):
     should_contains(tcpdump(connection, "eth0", "packets", "10"),
                     "IP 4.0.0.1 > 1.0.0.1: ICMP echo reply")
     should_contains(tcpdump(connection, "eth0", "packets", "10"),
                     "IP 30.0.0.2 > 10.0.0.1: ICMP echo reply")
Exemplo n.º 4
0
 def Node3PingTestCase(self, connection: Connection):
     should_contains(do_ping(connection, "101.0.0.1", "103.0.0.1", 40),
                     self.ping_error)
     should_contains(do_ping(connection, "102.0.0.1", "103.0.0.1", 40),
                     self.ping_error)