From 3a9a2725196cc75f94bc08cfabb313e79cd2f692 Mon Sep 17 00:00:00 2001
From: Robert Latta <robert.latta@geant.org>
Date: Tue, 22 Oct 2019 09:17:46 +0000
Subject: [PATCH] updated regex to cope with qfx netconf data

---
 test/test_junosspace_io.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test_junosspace_io.py b/test/test_junosspace_io.py
index b762213d..9390e85b 100644
--- a/test/test_junosspace_io.py
+++ b/test/test_junosspace_io.py
@@ -53,4 +53,4 @@ def test_router_hostname_derivation(mocked_redis):
     hostnames = list(worker._derive_router_hostnames(config))
     assert hostnames  # test data is non-empty
     for h in hostnames:
-        assert re.match(r'^mx[12].+\.geant\.net$', h)
+        assert re.match(r'^(mx[12]|qfx).+\.geant\.net$', h)
-- 
GitLab