Skip to content
Snippets Groups Projects
Commit ffd05854 authored by Erik Reid's avatar Erik Reid
Browse files

added a unit test for the new patterns

parent dc926a2a
No related branches found
No related tags found
No related merge requests found
......@@ -294,9 +294,12 @@ def test_lookup_lg_routers(connection, cached_test_data):
assert not any(
r['equipment name'].lower().startswith('junosspace') for r in routers)
srx = filter(
lambda r: r['equipment name'].lower().startswith('srx'), routers)
assert all(s['type'] == 'INTERNAL' for s in srx)
internal_prefix_patterns = ['srx', 'gts', 'qfx']
for prefix in internal_prefix_patterns:
filtered = filter(
lambda r: r['equipment name'].lower().startswith(prefix), routers)
assert all(r['type'] == 'INTERNAL' for r in filtered), \
f'not all {prefix}* routers are INTERNAL'
CIRCUIT_INFO_SCHEMA = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment