Skip to content
Snippets Groups Projects
Commit 560cfd7d authored by Erik Reid's avatar Erik Reid
Browse files

fixed some unit test to agree with new test data

parent b84444b1
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment