Skip to content
Snippets Groups Projects
Commit de7d6503 authored by Robert Latta's avatar Robert Latta
Browse files

removed redundant test

parent b1d0d18d
No related branches found
No related tags found
No related merge requests found
......@@ -205,70 +205,6 @@ def test_get_port_id_services(mocker):
assert res == predicted
# Temporarily removed
# def test_get_fibre_info(mocker):
#
# ims = mocker.patch('inventory_provider.db.ims.IMS')
# with open('test/data/ims_fibre_data.json') as data:
# ims.return_value.get_filtered_entities.return_value = json.load(data)
#
# ds = inventory_provider.db.ims.IMS(
# 'dummy_base', 'dummy_username', 'dummy_password')
#
# res = {ne: fs for ne, fs in get_fibre_info(ds)}
#
# ds.get_filtered_entities.assert_called_once_with(
# 'Circuit',
# 'product.name == "wdm" | speed.name == "ots" | vendor == "infinera"',
# [
# inventory_provider.db.ims.CIRCUIT_PROPERTIES['SubCircuits'],
# inventory_provider.db.ims.CIRCUIT_PROPERTIES['CalculatedNode'],
# inventory_provider.db.ims.CIRCUIT_PROPERTIES['PortA'],
# inventory_provider.db.ims.CIRCUIT_PROPERTIES['PortB'],
# ],
# step_count=1000
# )
#
# assert res == {
# "BUD01-DTNX10-1-3": [
# {
# "circuit_id": 659616,
# "df_route": "BUDAPEST-ZAGREB-OS160-001(UNKNOWN)",
# "df_route_id": 662153,
# "df_status": "operational",
# "ne": "BUD01-DTNX10-1-3"
# }
# ],
# "KOM-OLA1-1": [
# {
# "circuit_id": 659617,
# "df_route": "BUDAPEST-ZAGREB-OS160-001(UNKNOWN)",
# "df_route_id": 662153,
# "df_status": "operational",
# "ne": "KOM-OLA1-1"
# }
# ],
# "SZE-OLA1-1": [
# {
# "circuit_id": 659616,
# "df_route": "BUDAPEST-ZAGREB-OS160-001(UNKNOWN)",
# "df_route_id": 662153,
# "df_status": "operational",
# "ne": "SZE-OLA1-1"
# }
# ],
# "ZAG01-DTNX10-1-2": [
# {
# "circuit_id": 659617,
# "df_route": "BUDAPEST-ZAGREB-OS160-001(UNKNOWN)",
# "df_route_id": 662153,
# "df_status": "operational",
# "ne": "ZAG01-DTNX10-1-2"
# }
# ]
# }
def test_lookup_lg_routers(mocker):
ims = mocker.patch('inventory_provider.db.ims.IMS')
......
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