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

enable but skip a test

parent 165dd4db
Branches
Tags
No related merge requests found
......@@ -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', [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment