From 560cfd7dd827e79c56e9314fd7b19518ce103285 Mon Sep 17 00:00:00 2001 From: Erik Reid <erik.reid@geant.org> Date: Thu, 7 Nov 2019 14:51:01 +0100 Subject: [PATCH] fixed some unit test to agree with new test data --- test/test_junosspace_io.py | 2 +- test/test_testing_routes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) diff --git a/test/test_testing_routes.py b/test/test_testing_routes.py index 045a6068..54a2cc3e 100644 --- a/test/test_testing_routes.py +++ b/test/test_testing_routes.py @@ -76,7 +76,7 @@ def test_get_children(client): def test_get_parents(client): rv = client.get( - '/testing/opsdb/circuit-hierarchy/parents/11725', + '/testing/opsdb/circuit-hierarchy/parents/49388', headers=DEFAULT_REQUEST_HEADERS) assert rv.status_code == 200 assert rv.is_json -- GitLab