From 747533c5f8c16753daa5073c597a9f08d9de52fe Mon Sep 17 00:00:00 2001
From: Erik Reid <erik.reid@geant.org>
Date: Mon, 7 Sep 2020 09:48:18 +0200
Subject: [PATCH] handle new interface name

---
 test/test_opsdb_queries.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/test/test_opsdb_queries.py b/test/test_opsdb_queries.py
index daba68fd..e3d0bc56 100644
--- a/test/test_opsdb_queries.py
+++ b/test/test_opsdb_queries.py
@@ -1,5 +1,6 @@
 import json
 import os
+import re
 
 import jsonschema
 import pytest
@@ -246,8 +247,9 @@ def test_get_all_service_users(connection, cached_test_data):
         for k in cached_test_data.keys():
             if not k.startswith('netconf-interfaces:'):
                 continue
-            (_, hostname, ifc_name) = k.split(':')
-            yield {'hostname': hostname, 'interface': ifc_name}
+            m = re.match(r'^netconf-interfaces:([^:]+):(.*)$', k)
+            assert m
+            yield {'hostname': m.group(1), 'interface': m.group(2)}
 
     def _all_service_ids(interfaces):
         for ifc in interfaces:
-- 
GitLab