Skip to content
Snippets Groups Projects
Commit 7b389878 authored by Pelle Koster's avatar Pelle Koster
Browse files

lint

parent c07ec1e3
No related branches found
No related tags found
No related merge requests found
......@@ -236,14 +236,6 @@ def test_router_info_all_routers(client):
jsonschema.validate(result, ROUTER_INFO_ALL_ROUTERS_RESPONSE_SCHEMA)
assert len(result) > 0
def test_router_info_all_routers(client, mocked_redis):
rv = client.get("/classifier/router-info", headers=DEFAULT_REQUEST_HEADERS)
assert rv.status_code == 200
assert rv.is_json
result = rv.json
jsonschema.validate(result, ROUTER_INFO_ALL_ROUTERS_RESPONSE_SCHEMA)
assert len(result) > 0
def test_all_routers_skips_routers_not_in_ims(client, mocked_redis):
all_routers = json.loads(mocked_redis.get('netdash'))
......@@ -253,6 +245,7 @@ def test_all_routers_skips_routers_not_in_ims(client, mocked_redis):
assert not any(r['hostname'] == 'invalid.router' for r in result)
@pytest.mark.parametrize("router", ["mx1.ams.nl", "mx1.ams.nl.geant.net"])
def test_router_info(client, router):
rv = client.get(
......@@ -266,7 +259,6 @@ def test_router_info(client, router):
assert len(result['contacts']) > 0
def test_router_info_caches_result(client, mocked_redis):
router = "mx1.ams.nl"
cache_key = f"classifier-cache:router:{router.upper()}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment