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

renamed trap-metadata to juniper-link-info

parent 2c593b1d
No related branches found
No related tags found
No related merge requests found
......@@ -50,10 +50,10 @@ def related_interfaces(hostname, interface):
yield k[len(prefix):]
@routes.route("/trap-metadata/<source_equipment>/<path:interface>",
@routes.route("/juniper-link-info/<source_equipment>/<path:interface>",
methods=['GET', 'POST'])
@common.require_accepts_json
def get_trap_metadata(source_equipment, interface):
def get_juniper_link_info(source_equipment, interface):
r = common.get_redis()
cache_key = 'classifier:cache:%s:%s' % (source_equipment, interface)
......
......@@ -117,9 +117,9 @@ JUNIPER_LINK_METADATA = {
}
def test_trap_metadata(client_with_mocked_data):
def test_juniper_link_info(client_with_mocked_data):
rv = client_with_mocked_data.get(
'/classifier/trap-metadata/mx1.ams.nl.geant.net/ae15.1500',
'/classifier/juniper-link-info/mx1.ams.nl.geant.net/ae15.1500',
headers=DEFAULT_REQUEST_HEADERS)
assert rv.status_code == 200
assert rv.is_json
......
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