diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/topotests/bgp_route_map/test_route_map_topo1.py | 21 | ||||
| -rw-r--r-- | tests/topotests/lib/micronet.py | 5 | ||||
| -rw-r--r-- | tests/topotests/lib/micronet_cli.py | 6 | ||||
| -rw-r--r-- | tests/topotests/lib/topotest.py | 4 | ||||
| -rwxr-xr-x | tests/topotests/ospf_netns_vrf/__init__.py (renamed from tests/topotests/ospf_topo1_vrf/__init__.py) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_netns_vrf/r1/ospfd.conf (renamed from tests/topotests/ospf_topo1_vrf/r1/ospfd.conf) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_netns_vrf/r1/ospfroute.txt (renamed from tests/topotests/ospf_topo1_vrf/r1/ospfroute.txt) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_netns_vrf/r1/ospfroute_down.txt (renamed from tests/topotests/ospf_topo1_vrf/r1/ospfroute_down.txt) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_netns_vrf/r1/zebra.conf (renamed from tests/topotests/ospf_topo1_vrf/r1/zebra.conf) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_netns_vrf/r1/zebraroute.txt (renamed from tests/topotests/ospf_topo1_vrf/r1/zebraroute.txt) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_netns_vrf/r1/zebraroutedown.txt (renamed from tests/topotests/ospf_topo1_vrf/r1/zebraroutedown.txt) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_netns_vrf/r2/ospfd.conf (renamed from tests/topotests/ospf_topo1_vrf/r2/ospfd.conf) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_netns_vrf/r2/ospfroute.txt (renamed from tests/topotests/ospf_topo1_vrf/r2/ospfroute.txt) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_netns_vrf/r2/ospfroute_down.txt (renamed from tests/topotests/ospf_topo1_vrf/r2/ospfroute_down.txt) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_netns_vrf/r2/zebra.conf (renamed from tests/topotests/ospf_topo1_vrf/r2/zebra.conf) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_netns_vrf/r2/zebraroute.txt (renamed from tests/topotests/ospf_topo1_vrf/r2/zebraroute.txt) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_netns_vrf/r2/zebraroutedown.txt (renamed from tests/topotests/ospf_topo1_vrf/r2/zebraroutedown.txt) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_netns_vrf/r3/ospfd.conf (renamed from tests/topotests/ospf_topo1_vrf/r3/ospfd.conf) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_netns_vrf/r3/ospfroute.txt (renamed from tests/topotests/ospf_topo1_vrf/r3/ospfroute.txt) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_netns_vrf/r3/ospfroute_down.txt (renamed from tests/topotests/ospf_topo1_vrf/r3/ospfroute_down.txt) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_netns_vrf/r3/zebra.conf (renamed from tests/topotests/ospf_topo1_vrf/r3/zebra.conf) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_netns_vrf/r3/zebraroute.txt (renamed from tests/topotests/ospf_topo1_vrf/r3/zebraroute.txt) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_netns_vrf/r3/zebraroutedown.txt (renamed from tests/topotests/ospf_topo1_vrf/r3/zebraroutedown.txt) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_netns_vrf/test_ospf_netns_vrf.dot (renamed from tests/topotests/ospf_topo1_vrf/test_ospf_topo1-vrf.dot) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_netns_vrf/test_ospf_netns_vrf.jpg (renamed from tests/topotests/ospf_topo1_vrf/test_ospf_topo1_vrf.jpg) | bin | 65859 -> 65859 bytes | |||
| -rw-r--r-- | tests/topotests/ospf_netns_vrf/test_ospf_netns_vrf.py (renamed from tests/topotests/ospf_topo1_vrf/test_ospf_topo1_vrf.py) | 4 | ||||
| -rw-r--r-- | tests/topotests/ospf_unnumbered/r1/ospf-route.json (renamed from tests/topotests/ospf_topo2/r1/ospf-route.json) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_unnumbered/r1/ospfd.conf (renamed from tests/topotests/ospf_topo2/r1/ospfd.conf) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_unnumbered/r1/v4_route.json (renamed from tests/topotests/ospf_topo2/r1/v4_route.json) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_unnumbered/r1/zebra.conf (renamed from tests/topotests/ospf_topo2/r1/zebra.conf) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_unnumbered/r2/ospf-route.json (renamed from tests/topotests/ospf_topo2/r2/ospf-route.json) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_unnumbered/r2/ospfd.conf (renamed from tests/topotests/ospf_topo2/r2/ospfd.conf) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_unnumbered/r2/v4_route.json (renamed from tests/topotests/ospf_topo2/r2/v4_route.json) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_unnumbered/r2/zebra.conf (renamed from tests/topotests/ospf_topo2/r2/zebra.conf) | 0 | ||||
| -rw-r--r-- | tests/topotests/ospf_unnumbered/test_ospf_unnumbered.py (renamed from tests/topotests/ospf_topo2/test_ospf_topo2.py) | 4 |
35 files changed, 25 insertions, 19 deletions
diff --git a/tests/topotests/bgp_route_map/test_route_map_topo1.py b/tests/topotests/bgp_route_map/test_route_map_topo1.py index 3c2d7f28a2..6556c050bb 100644 --- a/tests/topotests/bgp_route_map/test_route_map_topo1.py +++ b/tests/topotests/bgp_route_map/test_route_map_topo1.py @@ -444,9 +444,10 @@ def test_route_map_inbound_outbound_same_neighbor_p0(request): result = verify_rib( tgen, adt, dut, input_dict_2, protocol=protocol, expected=False ) - assert result is not True, ( - "Testcase {} : Failed \n" - "routes are not present in rib \n Error: {}".format(tc_name, result) + assert ( + result is not True + ), "Testcase {} : Failed \nroutes are not present in rib \n Error: {}".format( + tc_name, result ) logger.info("Expected behaviour: {}".format(result)) @@ -466,9 +467,10 @@ def test_route_map_inbound_outbound_same_neighbor_p0(request): result = verify_rib( tgen, adt, dut, input_dict, protocol=protocol, expected=False ) - assert result is not True, ( - "Testcase {} : Failed \n " - "routes are not present in rib \n Error: {}".format(tc_name, result) + assert ( + result is not True + ), "Testcase {} : Failed \nroutes are not present in rib \n Error: {}".format( + tc_name, result ) logger.info("Expected behaviour: {}".format(result)) @@ -664,9 +666,10 @@ def test_route_map_with_action_values_combination_of_prefix_action_p0( result = verify_rib( tgen, adt, dut, input_dict_2, protocol=protocol, expected=False ) - assert result is not True, ( - "Testcase {} : Failed \n " - "Routes are still present \n Error: {}".format(tc_name, result) + assert ( + result is not True + ), "Testcase {} : Failed \nRoutes are still present \n Error: {}".format( + tc_name, result ) logger.info("Expected behaviour: {}".format(result)) else: diff --git a/tests/topotests/lib/micronet.py b/tests/topotests/lib/micronet.py index 8567bd3b4b..59dd80ff7b 100644 --- a/tests/topotests/lib/micronet.py +++ b/tests/topotests/lib/micronet.py @@ -358,11 +358,14 @@ class Commander(object): # pylint: disable=R0205 # wait for not supported in screen for now channel = None cmd = [self.get_exec_path("screen")] + if title: + cmd.append("-t") + cmd.append(title) if not os.path.exists( "/run/screen/S-{}/{}".format(os.environ["USER"], os.environ["STY"]) ): cmd = ["sudo", "-u", os.environ["SUDO_USER"]] + cmd - cmd.append(nscmd) + cmd.extend(nscmd.split(" ")) elif "DISPLAY" in os.environ: # We need it broken up for xterm user_cmd = cmd diff --git a/tests/topotests/lib/micronet_cli.py b/tests/topotests/lib/micronet_cli.py index 6459d5d151..4292f47ce0 100644 --- a/tests/topotests/lib/micronet_cli.py +++ b/tests/topotests/lib/micronet_cli.py @@ -113,11 +113,11 @@ def doline(unet, line, writef): hosts = [unet.hosts[x] for x in args] for host in hosts: if cmd == "t" or cmd == "term": - host.run_in_window("bash") + host.run_in_window("bash", title="sh-%s" % host) elif cmd == "v" or cmd == "vtysh": - host.run_in_window("vtysh") + host.run_in_window("vtysh", title="vt-%s" % host) elif cmd == "x" or cmd == "xterm": - host.run_in_window("bash", forcex=True) + host.run_in_window("bash", title="sh-%s" % host, forcex=True) elif cmd == "sh": hosts, cmd = host_cmd_split(unet, oargs) for host in hosts: diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py index 6be644ac00..d3438f67e5 100644 --- a/tests/topotests/lib/topotest.py +++ b/tests/topotests/lib/topotest.py @@ -1613,7 +1613,7 @@ class Router(Node): shell_routers = g_extra_config["shell"] if "all" in shell_routers or self.name in shell_routers: - self.run_in_window(os.getenv("SHELL", "bash")) + self.run_in_window(os.getenv("SHELL", "bash"), title="sh-%s" % self.name) if self.daemons["eigrpd"] == 1: eigrpd_path = os.path.join(self.daemondir, "eigrpd") @@ -1631,7 +1631,7 @@ class Router(Node): vtysh_routers = g_extra_config["vtysh"] if "all" in vtysh_routers or self.name in vtysh_routers: - self.run_in_window("vtysh") + self.run_in_window("vtysh", title="vt-%s" % self.name) return status diff --git a/tests/topotests/ospf_topo1_vrf/__init__.py b/tests/topotests/ospf_netns_vrf/__init__.py index e69de29bb2..e69de29bb2 100755 --- a/tests/topotests/ospf_topo1_vrf/__init__.py +++ b/tests/topotests/ospf_netns_vrf/__init__.py diff --git a/tests/topotests/ospf_topo1_vrf/r1/ospfd.conf b/tests/topotests/ospf_netns_vrf/r1/ospfd.conf index e1e2bfb99a..e1e2bfb99a 100644 --- a/tests/topotests/ospf_topo1_vrf/r1/ospfd.conf +++ b/tests/topotests/ospf_netns_vrf/r1/ospfd.conf diff --git a/tests/topotests/ospf_topo1_vrf/r1/ospfroute.txt b/tests/topotests/ospf_netns_vrf/r1/ospfroute.txt index d617ab36d9..d617ab36d9 100644 --- a/tests/topotests/ospf_topo1_vrf/r1/ospfroute.txt +++ b/tests/topotests/ospf_netns_vrf/r1/ospfroute.txt diff --git a/tests/topotests/ospf_topo1_vrf/r1/ospfroute_down.txt b/tests/topotests/ospf_netns_vrf/r1/ospfroute_down.txt index 4f7fd699cf..4f7fd699cf 100644 --- a/tests/topotests/ospf_topo1_vrf/r1/ospfroute_down.txt +++ b/tests/topotests/ospf_netns_vrf/r1/ospfroute_down.txt diff --git a/tests/topotests/ospf_topo1_vrf/r1/zebra.conf b/tests/topotests/ospf_netns_vrf/r1/zebra.conf index 56d7a9764e..56d7a9764e 100644 --- a/tests/topotests/ospf_topo1_vrf/r1/zebra.conf +++ b/tests/topotests/ospf_netns_vrf/r1/zebra.conf diff --git a/tests/topotests/ospf_topo1_vrf/r1/zebraroute.txt b/tests/topotests/ospf_netns_vrf/r1/zebraroute.txt index 979af20c59..979af20c59 100644 --- a/tests/topotests/ospf_topo1_vrf/r1/zebraroute.txt +++ b/tests/topotests/ospf_netns_vrf/r1/zebraroute.txt diff --git a/tests/topotests/ospf_topo1_vrf/r1/zebraroutedown.txt b/tests/topotests/ospf_netns_vrf/r1/zebraroutedown.txt index ec99fad762..ec99fad762 100644 --- a/tests/topotests/ospf_topo1_vrf/r1/zebraroutedown.txt +++ b/tests/topotests/ospf_netns_vrf/r1/zebraroutedown.txt diff --git a/tests/topotests/ospf_topo1_vrf/r2/ospfd.conf b/tests/topotests/ospf_netns_vrf/r2/ospfd.conf index c1984276f4..c1984276f4 100644 --- a/tests/topotests/ospf_topo1_vrf/r2/ospfd.conf +++ b/tests/topotests/ospf_netns_vrf/r2/ospfd.conf diff --git a/tests/topotests/ospf_topo1_vrf/r2/ospfroute.txt b/tests/topotests/ospf_netns_vrf/r2/ospfroute.txt index 89763ff733..89763ff733 100644 --- a/tests/topotests/ospf_topo1_vrf/r2/ospfroute.txt +++ b/tests/topotests/ospf_netns_vrf/r2/ospfroute.txt diff --git a/tests/topotests/ospf_topo1_vrf/r2/ospfroute_down.txt b/tests/topotests/ospf_netns_vrf/r2/ospfroute_down.txt index d946f02dfd..d946f02dfd 100644 --- a/tests/topotests/ospf_topo1_vrf/r2/ospfroute_down.txt +++ b/tests/topotests/ospf_netns_vrf/r2/ospfroute_down.txt diff --git a/tests/topotests/ospf_topo1_vrf/r2/zebra.conf b/tests/topotests/ospf_netns_vrf/r2/zebra.conf index 6ff72d1267..6ff72d1267 100644 --- a/tests/topotests/ospf_topo1_vrf/r2/zebra.conf +++ b/tests/topotests/ospf_netns_vrf/r2/zebra.conf diff --git a/tests/topotests/ospf_topo1_vrf/r2/zebraroute.txt b/tests/topotests/ospf_netns_vrf/r2/zebraroute.txt index df66e92abc..df66e92abc 100644 --- a/tests/topotests/ospf_topo1_vrf/r2/zebraroute.txt +++ b/tests/topotests/ospf_netns_vrf/r2/zebraroute.txt diff --git a/tests/topotests/ospf_topo1_vrf/r2/zebraroutedown.txt b/tests/topotests/ospf_netns_vrf/r2/zebraroutedown.txt index 4afc354ca7..4afc354ca7 100644 --- a/tests/topotests/ospf_topo1_vrf/r2/zebraroutedown.txt +++ b/tests/topotests/ospf_netns_vrf/r2/zebraroutedown.txt diff --git a/tests/topotests/ospf_topo1_vrf/r3/ospfd.conf b/tests/topotests/ospf_netns_vrf/r3/ospfd.conf index b73d547e3e..b73d547e3e 100644 --- a/tests/topotests/ospf_topo1_vrf/r3/ospfd.conf +++ b/tests/topotests/ospf_netns_vrf/r3/ospfd.conf diff --git a/tests/topotests/ospf_topo1_vrf/r3/ospfroute.txt b/tests/topotests/ospf_netns_vrf/r3/ospfroute.txt index 917702b14c..917702b14c 100644 --- a/tests/topotests/ospf_topo1_vrf/r3/ospfroute.txt +++ b/tests/topotests/ospf_netns_vrf/r3/ospfroute.txt diff --git a/tests/topotests/ospf_topo1_vrf/r3/ospfroute_down.txt b/tests/topotests/ospf_netns_vrf/r3/ospfroute_down.txt index 966185e495..966185e495 100644 --- a/tests/topotests/ospf_topo1_vrf/r3/ospfroute_down.txt +++ b/tests/topotests/ospf_netns_vrf/r3/ospfroute_down.txt diff --git a/tests/topotests/ospf_topo1_vrf/r3/zebra.conf b/tests/topotests/ospf_netns_vrf/r3/zebra.conf index 1534150048..1534150048 100644 --- a/tests/topotests/ospf_topo1_vrf/r3/zebra.conf +++ b/tests/topotests/ospf_netns_vrf/r3/zebra.conf diff --git a/tests/topotests/ospf_topo1_vrf/r3/zebraroute.txt b/tests/topotests/ospf_netns_vrf/r3/zebraroute.txt index b435c2ebe5..b435c2ebe5 100644 --- a/tests/topotests/ospf_topo1_vrf/r3/zebraroute.txt +++ b/tests/topotests/ospf_netns_vrf/r3/zebraroute.txt diff --git a/tests/topotests/ospf_topo1_vrf/r3/zebraroutedown.txt b/tests/topotests/ospf_netns_vrf/r3/zebraroutedown.txt index f30a4be6c6..f30a4be6c6 100644 --- a/tests/topotests/ospf_topo1_vrf/r3/zebraroutedown.txt +++ b/tests/topotests/ospf_netns_vrf/r3/zebraroutedown.txt diff --git a/tests/topotests/ospf_topo1_vrf/test_ospf_topo1-vrf.dot b/tests/topotests/ospf_netns_vrf/test_ospf_netns_vrf.dot index 789fdd7c09..789fdd7c09 100644 --- a/tests/topotests/ospf_topo1_vrf/test_ospf_topo1-vrf.dot +++ b/tests/topotests/ospf_netns_vrf/test_ospf_netns_vrf.dot diff --git a/tests/topotests/ospf_topo1_vrf/test_ospf_topo1_vrf.jpg b/tests/topotests/ospf_netns_vrf/test_ospf_netns_vrf.jpg Binary files differindex 85f2e52f8e..85f2e52f8e 100644 --- a/tests/topotests/ospf_topo1_vrf/test_ospf_topo1_vrf.jpg +++ b/tests/topotests/ospf_netns_vrf/test_ospf_netns_vrf.jpg diff --git a/tests/topotests/ospf_topo1_vrf/test_ospf_topo1_vrf.py b/tests/topotests/ospf_netns_vrf/test_ospf_netns_vrf.py index 44de61d82a..621d8079dc 100644 --- a/tests/topotests/ospf_topo1_vrf/test_ospf_topo1_vrf.py +++ b/tests/topotests/ospf_netns_vrf/test_ospf_netns_vrf.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # -# test_ospf_topo1.py +# test_ospf_netns_vrf.py # Part of NetDEF Topology Tests # # Copyright (c) 2017 by @@ -23,7 +23,7 @@ # """ -test_ospf_topo1.py: Test the FRR OSPF routing daemon. +test_ospf_netns_vrf.py: Test OSPF with Network Namespace VRFs. """ import os diff --git a/tests/topotests/ospf_topo2/r1/ospf-route.json b/tests/topotests/ospf_unnumbered/r1/ospf-route.json index 6beb7e9bed..6beb7e9bed 100644 --- a/tests/topotests/ospf_topo2/r1/ospf-route.json +++ b/tests/topotests/ospf_unnumbered/r1/ospf-route.json diff --git a/tests/topotests/ospf_topo2/r1/ospfd.conf b/tests/topotests/ospf_unnumbered/r1/ospfd.conf index 65843cbb83..65843cbb83 100644 --- a/tests/topotests/ospf_topo2/r1/ospfd.conf +++ b/tests/topotests/ospf_unnumbered/r1/ospfd.conf diff --git a/tests/topotests/ospf_topo2/r1/v4_route.json b/tests/topotests/ospf_unnumbered/r1/v4_route.json index 76c6396169..76c6396169 100644 --- a/tests/topotests/ospf_topo2/r1/v4_route.json +++ b/tests/topotests/ospf_unnumbered/r1/v4_route.json diff --git a/tests/topotests/ospf_topo2/r1/zebra.conf b/tests/topotests/ospf_unnumbered/r1/zebra.conf index d96d9707c1..d96d9707c1 100644 --- a/tests/topotests/ospf_topo2/r1/zebra.conf +++ b/tests/topotests/ospf_unnumbered/r1/zebra.conf diff --git a/tests/topotests/ospf_topo2/r2/ospf-route.json b/tests/topotests/ospf_unnumbered/r2/ospf-route.json index 3cfd255bfd..3cfd255bfd 100644 --- a/tests/topotests/ospf_topo2/r2/ospf-route.json +++ b/tests/topotests/ospf_unnumbered/r2/ospf-route.json diff --git a/tests/topotests/ospf_topo2/r2/ospfd.conf b/tests/topotests/ospf_unnumbered/r2/ospfd.conf index b032f1a8ac..b032f1a8ac 100644 --- a/tests/topotests/ospf_topo2/r2/ospfd.conf +++ b/tests/topotests/ospf_unnumbered/r2/ospfd.conf diff --git a/tests/topotests/ospf_topo2/r2/v4_route.json b/tests/topotests/ospf_unnumbered/r2/v4_route.json index 1638536388..1638536388 100644 --- a/tests/topotests/ospf_topo2/r2/v4_route.json +++ b/tests/topotests/ospf_unnumbered/r2/v4_route.json diff --git a/tests/topotests/ospf_topo2/r2/zebra.conf b/tests/topotests/ospf_unnumbered/r2/zebra.conf index f9dd2c4471..f9dd2c4471 100644 --- a/tests/topotests/ospf_topo2/r2/zebra.conf +++ b/tests/topotests/ospf_unnumbered/r2/zebra.conf diff --git a/tests/topotests/ospf_topo2/test_ospf_topo2.py b/tests/topotests/ospf_unnumbered/test_ospf_unnumbered.py index 1ad62ff18e..a9640adca3 100644 --- a/tests/topotests/ospf_topo2/test_ospf_topo2.py +++ b/tests/topotests/ospf_unnumbered/test_ospf_unnumbered.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # -# test_ospf_topo2.py +# test_ospf_unnumbered.py # # Copyright (c) 2019 by # Cumulus Networks, Inc @@ -23,7 +23,7 @@ # """ -test_ospf_topo2.py: Test the OSPF unnumbered. +test_ospf_unnumbered.py: Test the OSPF unnumbered. """ import os |
