Skip to content
Snippets Groups Projects
Commit f3c20172 authored by Saket Agrahari's avatar Saket Agrahari
Browse files

[DBOARD3-676]: tox

parent 22224547
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,6 @@ from inventory_provider.routes.common import _ignore_cache_or_retrieve
logger = logging.getLogger(__name__)
routes = Blueprint('mic-support-routes', __name__)
ALL_DATA_SCHEMA = {
"schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
......@@ -52,7 +51,7 @@ ALL_DATA_SCHEMA = {
"type": "array",
"items": {"type": "string"}
},
"third_party_id": {"type": "string"}
"third_party_id": {"type": "string"}
},
"required": ["id", "sid", "status", "name",
"service_type", "contacts",
......@@ -68,7 +67,7 @@ ALL_DATA_SCHEMA = {
"additionalProperties": False
}
THIRD_PARTY_RESPONSE_SCHEMA ={
THIRD_PARTY_RESPONSE_SCHEMA = {
"schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
......@@ -91,7 +90,8 @@ THIRD_PARTY_RESPONSE_SCHEMA ={
},
"third_party_id": {"type": "string"}
},
"required": ["id", "status", "name", "service_type", "contacts", "planned_work_contacts", "third_party_id"],
"required": ["id", "status", "name", "service_type", "contacts", "planned_work_contacts",
"third_party_id"],
"additionalProperties": False
}
},
......@@ -124,7 +124,8 @@ THIRD_PARTY_RESPONSE_SCHEMA ={
},
"third_party_id": {"type": "string"}
},
"required": ["id", "sid", "status", "name", "service_type", "contacts", "planned_work_contacts", "third_party_id"],
"required": ["id", "sid", "status", "name", "service_type", "contacts",
"planned_work_contacts", "third_party_id"],
"additionalProperties": False
}
}
......@@ -139,6 +140,7 @@ THIRD_PARTY_RESPONSE_SCHEMA ={
"additionalProperties": False
}
@routes.route("/all-data")
def get_everything():
cache_key = "mic:impact:all-data"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment