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

added low-level description/dashboard test (tbd)

parent 707e11fd
No related branches found
No related tags found
No related merge requests found
......@@ -215,3 +215,20 @@ def test_dcu_oid_values(ifIndex, expected_oid):
def test_fw_counter_bytes_oid_values(customer, interface_name, expected_oid):
assert poller._jnx_fw_counter_bytes_oid(
customer, interface_name) == expected_oid
@pytest.mark.parametrize('description,expected_dashboards', [
('SRV_IAS CUSTOMER JISC #JISC-AP1-IAS IASPS | ASN786',
['IAS_CUSTOMER']),
('SRV_L2CIRCUIT CUSTOMER JISC JISC #DUB-LON-NRENBBEXT-JANET-13015 | backup for niran ',
['L2_CIRCUIT'])
])
def test_interface_dashboard_mapping(description, expected_dashboards):
interface = {
'router': '',
'name': '',
'description': description
}
dashboards = poller._get_dashboards(interface)
dashboards = [d.name for d in dashboards]
assert set(list(dashboards)) == set(expected_dashboards)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment