From 48d3da2c2004e49168cc575b873617e7e7b0086f Mon Sep 17 00:00:00 2001
From: Robert Latta <robert.latta@geant.org>
Date: Mon, 8 Apr 2019 18:03:34 +0100
Subject: [PATCH] updated test to cope with updated Infinera end point

---
 test/test_infinera_classifier.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/test/test_infinera_classifier.py b/test/test_infinera_classifier.py
index 0cd26f2c..58fc24a5 100644
--- a/test/test_infinera_classifier.py
+++ b/test/test_infinera_classifier.py
@@ -61,7 +61,7 @@ INFINERA_LINK_METADATA = {
             },
             "additionalProperties": False
         },
-        "geant-lambdas": {
+        "geant-lambda": {
             "type": "object",
             "properties": {
                 "id": {"type": "integer"},
@@ -81,8 +81,8 @@ INFINERA_LINK_METADATA = {
             "type": "array",
             "items": {"$ref": "#/definitions/service-info"}
         },
-        "geant-lambdas": {
-            "type": "array",
+        "geant-lambda": {
+            "type": "object",
             "items": {"$ref": "#/definitions/geant-lambdas"}
         },
     },
@@ -92,7 +92,8 @@ INFINERA_LINK_METADATA = {
 
 def test_trap_metadata(client_with_mocked_data):
     rv = client_with_mocked_data.get(
-        '/classifier/infinera-lambda-info/LON01-DTNX10-1/1-B-2-1-3',
+        '/classifier/infinera-lambda-info/'
+        'LON2-DTNX10-1/1-A-2-1-4/gen-lon3_LHC_CERN-JANET_09013',
         headers=DEFAULT_REQUEST_HEADERS)
     assert rv.status_code == 200
     assert rv.is_json
-- 
GitLab