diff --git a/test/test_classifier_routes.py b/test/test_classifier_routes.py index c7f945f72440efca94172f7953074f460b28c507..e799c11c9b68cdda37ffb44a57bba899ece2b473 100644 --- a/test/test_classifier_routes.py +++ b/test/test_classifier_routes.py @@ -49,8 +49,14 @@ JUNIPER_LINK_METADATA = { "properties": { "id": {"type": "integer"}, "name": {"type": "string"}, - "status": {"type": "string"}, - "circuit_type": {"type": "string"}, + "status": { + "type": "string", + "enum": ["operational", "installed", "planned", "ordered"] + }, + "circuit_type": { + "type": "string", + "enum": ["path", "service", "l2circuit"] + }, "service_type": {"type": "string"}, "project": {"type": "string"}, "equipment": {"type": "string"}, @@ -68,7 +74,13 @@ JUNIPER_LINK_METADATA = { {"type": "string", "maxLength": 0} ] }, - "manufacturer": {"type": "string"}, + "manufacturer": { + "type": "string", + "enum": ["juniper", "coriant", "infinera", + "cisco", "hewlett packard", + "corsa", "graham smith uk ltd", + "unknown", ""] + }, "card_id": {"type": "string"}, "other_end_card_id": {"type": "string"}, "interface_name": {"type": "string"}, @@ -99,6 +111,7 @@ JUNIPER_LINK_METADATA = { "items": {"$ref": "#/definitions/service-info"} } }, + "required": ["interface"], "additionalProperties": False }