From b45f08efaa67b5ec58e6eaf8abad9711fad592cc Mon Sep 17 00:00:00 2001 From: Erik Reid <erik.reid@geant.org> Date: Mon, 20 Mar 2023 09:17:18 +0100 Subject: [PATCH] added failing test --- test/test_parse_router.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/test/test_parse_router.py b/test/test_parse_router.py index ffe6157..dfe39da 100644 --- a/test/test_parse_router.py +++ b/test/test_parse_router.py @@ -77,6 +77,27 @@ def test_no_db_load_interfaces(mocked_router): assert aggregates +def test_physical_no_lag(mocked_router): + """ + confirm no ae* interfaces are present in the list + of physical interfaces + """ + + ssh = { + 'username': 'bogus', + 'private-key': 'no file' + } + + with juniper.router( + hostname='blah-bogus', + port=12345, + ssh_config=ssh) as dev: + + physical = juniper.load_installed_ethernet_ports(dev) + assert all(p['name'].startswith('ae') is False for p in physical) + + + def test_load_interfaces( mocked_router, resources_db, config_file, router_name): """ -- GitLab