diff --git a/test/test_lg_routes.py b/test/test_lg_routes.py index 2439300e2ee1f8516d16993cfad9ba995a248a8a..acb8a662cd0ae203cf9e7eff89fe162bd3ff6d86 100644 --- a/test/test_lg_routes.py +++ b/test/test_lg_routes.py @@ -23,21 +23,21 @@ def test_public_routers(client): assert all(r['type'] == 'CORE' for r in response_data) -# Temporarily removed until I check IMS - RL -# def test_internal_routers(client): -# rv = client.get( -# '/lg/routers/all', -# headers=DEFAULT_REQUEST_HEADERS) -# assert rv.status_code == 200 -# assert rv.is_json -# response_data = json.loads(rv.data.decode('utf-8')) -# jsonschema.validate(response_data, LG_ROUTERS_SCHEMA) -# -# assert response_data # test data is non-empty -# -# # response should contain both public & internal routers -# assert any(r['type'] == 'INTERNAL' for r in response_data) -# assert any(r['type'] == 'CORE' for r in response_data) +@pytest.mark.skip(reason='IMS INTERNAL vs CORE calcualtion is not clear') +def test_internal_routers(client): + rv = client.get( + '/lg/routers/all', + headers=DEFAULT_REQUEST_HEADERS) + assert rv.status_code == 200 + assert rv.is_json + response_data = json.loads(rv.data.decode('utf-8')) + jsonschema.validate(response_data, LG_ROUTERS_SCHEMA) + + assert response_data # test data is non-empty + + # response should contain both public & internal routers + assert any(r['type'] == 'INTERNAL' for r in response_data) + assert any(r['type'] == 'CORE' for r in response_data) @pytest.mark.parametrize('bad_endpoint', [