diff --git a/test/test_classifier_routes.py b/test/test_classifier_routes.py index 5de175c93a72f52874f8403048dc1cf5707dedad..6fd6cf75340597dade9359afe29a6e1bdd5e02c8 100644 --- a/test/test_classifier_routes.py +++ b/test/test_classifier_routes.py @@ -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