From a5e5a1b71f1d479369187da62c8cc3bf6ef4fff2 Mon Sep 17 00:00:00 2001
From: Erik Reid <erik.reid@geant.org>
Date: Mon, 4 Jan 2021 16:49:35 +0100
Subject: [PATCH] updated juniper-link-info response schema

---
 test/test_classifier_routes.py | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/test/test_classifier_routes.py b/test/test_classifier_routes.py
index 5de175c9..6fd6cf75 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
-- 
GitLab