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

temp comment some code until new test data is built

parent db1436b3
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ import jsonschema ...@@ -4,7 +4,7 @@ import jsonschema
import pytest import pytest
from inventory_provider.routes.msr import PEERING_LIST_SCHEMA, \ from inventory_provider.routes.msr import PEERING_LIST_SCHEMA, \
PEERING_GROUP_LIST_SCHEMA, ACCESS_SERVICES_LIST_SCHEMA PEERING_GROUP_LIST_SCHEMA
DEFAULT_REQUEST_HEADERS = { DEFAULT_REQUEST_HEADERS = {
"Content-type": "application/json", "Content-type": "application/json",
...@@ -12,20 +12,20 @@ DEFAULT_REQUEST_HEADERS = { ...@@ -12,20 +12,20 @@ DEFAULT_REQUEST_HEADERS = {
} }
@pytest.mark.skip(reason='tmp disabled while changing schema') # @pytest.mark.skip(reason='tmp disabled while changing schema')
def test_access_services(client): # def test_access_services(client):
#
# todo - fix once IMS msr code is done # # todo - fix once IMS msr code is done
#
rv = client.get( # rv = client.get(
'/msr/access-services', # '/msr/access-services',
headers=DEFAULT_REQUEST_HEADERS) # headers=DEFAULT_REQUEST_HEADERS)
assert rv.status_code == 200 # assert rv.status_code == 200
assert rv.is_json # assert rv.is_json
response_data = json.loads(rv.data.decode('utf-8')) # response_data = json.loads(rv.data.decode('utf-8'))
jsonschema.validate(response_data, ACCESS_SERVICES_LIST_SCHEMA) # jsonschema.validate(response_data, ACCESS_SERVICES_LIST_SCHEMA)
#
assert response_data # test data is non-empty # assert response_data # test data is non-empty
def test_logical_system_peerings_all(client): def test_logical_system_peerings_all(client):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment