From 30f61475430a35ff6982d8175139b2c4f4d63a97 Mon Sep 17 00:00:00 2001
From: Erik Reid <erik.reid@geant.org>
Date: Thu, 3 Jan 2019 21:28:00 +0100
Subject: [PATCH] re-enabled forgotten test

---
 test/per_router/test_juniper_data.py | 38 ++++++++++++++--------------
 1 file changed, 19 insertions(+), 19 deletions(-)

diff --git a/test/per_router/test_juniper_data.py b/test/per_router/test_juniper_data.py
index 6016fe93..e6343d00 100644
--- a/test/per_router/test_juniper_data.py
+++ b/test/per_router/test_juniper_data.py
@@ -42,25 +42,25 @@ def netconf_doc(mocker, router, data_config):
     return juniper.load_config(router, data_config['ssh'])
 
 
-# def test_interface_list(netconf_doc):
-#
-#     schema = {
-#         "$schema": "http://json-schema.org/draft-07/schema#",
-#         "type": "array",
-#         "items": {
-#             "type": "object",
-#             "properties": {
-#                 "name": {"type": "string"},
-#                 "description": {"type": "string"}
-#             },
-#             "required": ["name", "description"],
-#             "additionalProperties": False
-#         }
-#     }
-#
-#     interfaces = list(netconf.list_interfaces(netconf_doc))
-#     jsonschema.validate(interfaces, schema)
-#     assert interfaces  # at least shouldn't be empty
+def test_interface_list(netconf_doc):
+
+    schema = {
+        "$schema": "http://json-schema.org/draft-07/schema#",
+        "type": "array",
+        "items": {
+            "type": "object",
+            "properties": {
+                "name": {"type": "string"},
+                "description": {"type": "string"}
+            },
+            "required": ["name", "description"],
+            "additionalProperties": False
+        }
+    }
+
+    interfaces = list(juniper.list_interfaces(netconf_doc))
+    jsonschema.validate(interfaces, schema)
+    assert interfaces  # at least shouldn't be empty
 
 
 def test_bgp_list(netconf_doc):
-- 
GitLab