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

updated juniper-link-info response schema

parent 12f8e0dd
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,15 @@ JUNIPER_LINK_METADATA_DEFINITIONS = {
"type": "string",
"pattern": r'^[a-f\d:]+/\d+$'
},
"snmp-info": {
"type": "object",
"properties": {
"community": {"type": "string"},
"index": {"type": "integer"}
},
"required": ["community", "index"],
"additionalProperties": False
},
"interface-info": {
"type": "object",
"properties": {
......@@ -66,7 +75,8 @@ JUNIPER_LINK_METADATA_DEFINITIONS = {
# TODO: check what's changed: added to make tests pass
'bundle': {"type": "array"},
'bundle_members': {"type": "array"}
'bundle_members': {"type": "array"},
'snmp': {"$ref": "#/definitions/snmp-info"}
},
"required": ["name", "description", "ipv4", "ipv6"],
"additionalProperties": False
......@@ -181,7 +191,7 @@ JUNIPER_LINK_METADATA = {
def test_juniper_link_info(client):
rv = client.get(
'/classifier/juniper-link-info/mx1.ams.nl.geant.net/ae15.1500',
'/classifier/juniper-link-info/mx1.ams.nl.geant.net/ae16.100',
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