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 ...@@ -23,7 +23,6 @@ from inventory_provider.routes.common import _ignore_cache_or_retrieve
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
routes = Blueprint('mic-support-routes', __name__) routes = Blueprint('mic-support-routes', __name__)
ALL_DATA_SCHEMA = { ALL_DATA_SCHEMA = {
"schema": "http://json-schema.org/draft-07/schema#", "schema": "http://json-schema.org/draft-07/schema#",
"type": "object", "type": "object",
...@@ -52,7 +51,7 @@ ALL_DATA_SCHEMA = { ...@@ -52,7 +51,7 @@ ALL_DATA_SCHEMA = {
"type": "array", "type": "array",
"items": {"type": "string"} "items": {"type": "string"}
}, },
"third_party_id": {"type": "string"} "third_party_id": {"type": "string"}
}, },
"required": ["id", "sid", "status", "name", "required": ["id", "sid", "status", "name",
"service_type", "contacts", "service_type", "contacts",
...@@ -68,7 +67,7 @@ ALL_DATA_SCHEMA = { ...@@ -68,7 +67,7 @@ ALL_DATA_SCHEMA = {
"additionalProperties": False "additionalProperties": False
} }
THIRD_PARTY_RESPONSE_SCHEMA ={ THIRD_PARTY_RESPONSE_SCHEMA = {
"schema": "http://json-schema.org/draft-07/schema#", "schema": "http://json-schema.org/draft-07/schema#",
"type": "object", "type": "object",
"properties": { "properties": {
...@@ -91,7 +90,8 @@ THIRD_PARTY_RESPONSE_SCHEMA ={ ...@@ -91,7 +90,8 @@ THIRD_PARTY_RESPONSE_SCHEMA ={
}, },
"third_party_id": {"type": "string"} "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 "additionalProperties": False
} }
}, },
...@@ -124,7 +124,8 @@ THIRD_PARTY_RESPONSE_SCHEMA ={ ...@@ -124,7 +124,8 @@ THIRD_PARTY_RESPONSE_SCHEMA ={
}, },
"third_party_id": {"type": "string"} "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 "additionalProperties": False
} }
} }
...@@ -139,6 +140,7 @@ THIRD_PARTY_RESPONSE_SCHEMA ={ ...@@ -139,6 +140,7 @@ THIRD_PARTY_RESPONSE_SCHEMA ={
"additionalProperties": False "additionalProperties": False
} }
@routes.route("/all-data") @routes.route("/all-data")
def get_everything(): def get_everything():
cache_key = "mic:impact:all-data" cache_key = "mic:impact:all-data"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment