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

added test fro coriant field update

parent 77c8393c
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,24 @@ def test_juniper_field_update():
assert r["interface_name"] == "xe-2/0/0.123"
def test_coriant_update_fields():
i = {
"equipment": "groove-1",
"card_id": "2-3",
"port": None
}
r = inventory_provider.opsdb._coriant_field_update(i)
assert r["interface_name"] == "2-3"
i = {
"equipment": "groove-1",
"card_id": "2-3",
"port": "4"
}
r = inventory_provider.opsdb._coriant_field_update(i)
assert r["interface_name"] == "2-3/4"
def test_get_circuits(mocker):
mocker.patch("inventory_provider.opsdb.db.cursor")
mocked_convert_to_dict = mocker.patch(
......
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