From cabf55df533aca81a2ee1247e993cf00efbeea5b Mon Sep 17 00:00:00 2001 From: Erik Reid <erik.reid@geant.org> Date: Fri, 15 Mar 2019 14:33:04 +0100 Subject: [PATCH] add required list to service info schema --- test/test_classifier_routes.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/test/test_classifier_routes.py b/test/test_classifier_routes.py index 4608dd2e..c7f945f7 100644 --- a/test/test_classifier_routes.py +++ b/test/test_classifier_routes.py @@ -44,8 +44,6 @@ JUNIPER_LINK_METADATA = { "required": ["name", "description", "ipv4", "ipv6"], "additionalProperties": False }, - # TODO: modify service-info so that "" entries are just omitted - # (... rather than requiring 'oneOf') "service-info": { "type": "object", "properties": { @@ -76,7 +74,15 @@ JUNIPER_LINK_METADATA = { "interface_name": {"type": "string"}, "other_end_interface_name": {"type": "string"} }, - # "required": ["name", "description", "ipv4", "ipv6"], + # TODO: modify service-info so that "" entries are just omitted + # (... rather than requiring 'oneOf') + # TODO: put 'other_end_*' params in a sub dictionary + "required": [ + "id", "name", "status", + "circuit_type", "service_type", + "project", "port", "manufacturer", + "equipment", "logical_unit", "card_id", "interface_name" + ], "additionalProperties": False } }, -- GitLab