diff --git a/chpl/chpl-api/e2e/collections/report-data.postman_collection.json b/chpl/chpl-api/e2e/collections/report-data.postman_collection.json index c913f1aea6..f3ff4b9abf 100644 --- a/chpl/chpl-api/e2e/collections/report-data.postman_collection.json +++ b/chpl/chpl-api/e2e/collections/report-data.postman_collection.json @@ -1,774 +1,774 @@ { - "info": { - "name": "report-data", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" - }, - "item": [ - { - "name": "GET /report-data/hti-1-criteria-migration-report - 200 status and response body", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"/report-data/hti-1-criteria-migration-report endpoint returns 200 status and response body should not be empty\", function () {\r", - " pm.response.to.have.status(200);\r", - " var jsonData = pm.response.json();\r", - " pm.expect(jsonData.response).not.eq(null);\r", - "});\r", - "" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "method": "GET", - "header": [ - { - "key": "API-Key", - "value": "{{apiKey}}", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/rest/report-data/hti-1-criteria-migration-report", - "host": [ - "{{url}}" - ], - "path": [ - "rest", - "report-data", - "hti-1-criteria-migration-report" - ] - }, - "description": "GET /report-data/hti-1-criteria-migration-report - 200 status and response body for anonymous users" - }, - "response": [] - }, - { - "name": "GET /report-data/unique-developer-count - 200 status and count in response", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "var jsonData = pm.response.json();\r", - "pm.test(\"/report-data/unique-developer-count endpoint should return 200 status in response\", function () {\r", - " pm.response.to.have.status(200);\r", - " });\r", - "\r", - " pm.test(\"/report-data/unique-developer-count should include count in response\", function () {\r", - " pm.expect(pm.response.text()).to.include(\"count\");\r", - "});" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "method": "GET", - "header": [ - { - "key": "API-Key", - "value": "{{apiKey}}", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/rest/report-data/unique-developer-count", - "host": [ - "{{url}}" - ], - "path": [ - "rest", - "report-data", - "unique-developer-count" - ] - } - }, - "response": [] - }, - { - "name": "GET /report-data/developers-with-withdrawn-listings-by-acb - 200 status and response fields validation", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "const developerSchema =\r", - "[\r", - " {\r", - " \"id\": 0,\r", - " \"name\": \"string\",\r", - " \"status\": {\r", - " \"id\": 0,\r", - " \"name\": \"string\"\r", - " }\r", - " }\r", - "]\r", - "var jsonResponse = pm.response.json();\r", - "pm.test('developer schema for /report-data/developers-with-withdrawn-listings-by-acb is valid', function() {\r", - " pm.expect(tv4.validate(jsonResponse, developerSchema)).to.be.true; \r", - "});\r", - "\r", - "pm.test(\"/report-data/developers-with-withdrawn-listings-by-acb should include developer name and acbsForWithdrawnListings in response and return 200 status\", function () {\r", - " pm.expect(pm.response.text()).to.include(\"name\");\r", - " pm.expect(pm.response.text()).to.include(\"acbsForWithdrawnListings\");\r", - "});\r", - "" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "method": "GET", - "header": [ - { - "key": "API-Key", - "value": "{{apiKey}}", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/rest/report-data/developers-with-withdrawn-listings-by-acb", - "host": [ - "{{url}}" - ], - "path": [ - "rest", - "report-data", - "developers-with-withdrawn-listings-by-acb" - ] - } - }, - "response": [] - }, - { - "name": "GET /report-data/developers-with-suspended-listings-by-acb - 200 status and response fields validation", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"/report-data/developers-with-suspended-listings-by-acb should return 200 status in response\", function () {\r", - " pm.response.to.have.status(200); \r", - "});\r", - "" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "method": "GET", - "header": [ - { - "key": "API-Key", - "value": "{{apiKey}}", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/rest/report-data/developers-with-suspended-listings-by-acb", - "host": [ - "{{url}}" - ], - "path": [ - "rest", - "report-data", - "developers-with-suspended-listings-by-acb" - ] - } - }, - "response": [] - }, - { - "name": "GET /report-data/developers-with-active-listings-by-acb - 200 status and response fields validation", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "const developerSchema =\r", - "[\r", - " {\r", - " \"id\": 0,\r", - " \"name\": \"string\",\r", - " \"status\": {\r", - " \"id\": 0,\r", - " \"name\": \"string\"\r", - " }\r", - " }\r", - "]\r", - "var jsonResponse = pm.response.json();\r", - "pm.test('developer schema for /report-data/developers-with-active-listings-by-acb is valid', function() {\r", - " pm.expect(tv4.validate(jsonResponse, developerSchema)).to.be.true; \r", - "});\r", - "\r", - "pm.test(\"/report-data/developers-with-active-listings-by-acb should include developer name and acbsForActiveListings in response and return 200 status\", function () {\r", - " pm.response.to.have.status(200);\r", - " pm.expect(pm.response.text()).to.include(\"name\");\r", - " pm.expect(pm.response.text()).to.include(\"acbsForActiveListings\");\r", - "});\r", - "" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "method": "GET", - "header": [ - { - "key": "API-Key", - "value": "{{apiKey}}", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/rest/report-data/developers-with-active-listings-by-acb", - "host": [ - "{{url}}" - ], - "path": [ - "rest", - "report-data", - "developers-with-active-listings-by-acb" - ] - } - }, - "response": [] - }, - { - "name": "GET /report-data/developer-count-with-withdrawn-listings-by-acb - 200 status and response fields validation", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"/report-data/developer-count-with-withdrawn-listings-by-acb should include developer count by ACB Name in response and return 200 status\", function () {\r", - " pm.response.to.have.status(200);\r", - " pm.expect(pm.response.text()).to.include(\"count\");\r", - " pm.expect(pm.response.text()).to.include(\"acbName\");\r", - "});\r", - "" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "method": "GET", - "header": [ - { - "key": "API-Key", - "value": "{{apiKey}}", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/rest/report-data/developer-count-with-withdrawn-listings-by-acb", - "host": [ - "{{url}}" - ], - "path": [ - "rest", - "report-data", - "developer-count-with-withdrawn-listings-by-acb" - ] - } - }, - "response": [] - }, - { - "name": "GET /report-data/developer-count-with-suspended-listings-by-acb - 200 status and response fields validation", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"/report-data/developer-count-with-suspended-listings-by-acb should return 200 status\", function () {\r", - " pm.response.to.have.status(200);\r", - "});\r", - "" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "method": "GET", - "header": [ - { - "key": "API-Key", - "value": "{{apiKey}}", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/rest/report-data/developer-count-with-suspended-listings-by-acb", - "host": [ - "{{url}}" - ], - "path": [ - "rest", - "report-data", - "developer-count-with-suspended-listings-by-acb" - ] - } - }, - "response": [] - }, - { - "name": "GET /report-data/developer-count-with-active-listings-by-acb - 200 status and response fields validation", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"/report-data/developer-count-with-active-listings-by-acb should include developer count by ACB Name in response and return 200 status\", function () {\r", - " pm.response.to.have.status(200);\r", - " pm.expect(pm.response.text()).to.include(\"count\");\r", - " pm.expect(pm.response.text()).to.include(\"acbName\");\r", - "});\r", - "" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "method": "GET", - "header": [ - { - "key": "API-Key", - "value": "{{apiKey}}", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/rest/report-data/developer-count-with-active-listings-by-acb", - "host": [ - "{{url}}" - ], - "path": [ - "rest", - "report-data", - "developer-count-with-active-listings-by-acb" - ] - } - }, - "response": [] - }, - { - "name": "GET /report-data/surveillance-activity-counts - 200 status and counts in response", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "var jsonData = pm.response.json();\r", - "pm.test(\"/report-data/surveillance-activity-counts endpoint should return 200 status in response\", function () {\r", - " pm.response.to.have.status(200);\r", - " });\r", - "\r", - " pm.test(\"/report-data/surveillance-activity-counts should include surveillance activity counts in response\", function () {\r", - " pm.expect(pm.response.text()).to.include(\"totalActivities\");\r", - " pm.expect(pm.response.text()).to.include(\"openActivities\");\r", - " pm.expect(pm.response.text()).to.include(\"closedActivities\");\r", - "});" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "method": "GET", - "header": [ - { - "key": "API-Key", - "value": "{{apiKey}}", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/rest/report-data/surveillance-activity-counts", - "host": [ - "{{url}}" - ], - "path": [ - "rest", - "report-data", - "surveillance-activity-counts" - ] - }, - "description": "GET /report-data/surveillance-activity-counts - 200 status and counts in response" - }, - "response": [] - }, - { - "name": "GET /report-data/non-conformity-counts - 200 status and response fields validation", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"/report-data/non-conformity-counts should include open and closed non-conformity counts in response and return 200 status\", function () {\r", - " pm.expect(pm.response.text()).to.include(\"totalNonconformities\");\r", - " pm.expect(pm.response.text()).to.include(\"openNonconformities\");\r", - " pm.expect(pm.response.text()).to.include(\"closedNonconformities\");\r", - " pm.expect(pm.response.text()).to.include(\"avgDaysToAssessConformity\");\r", - " pm.expect(pm.response.text()).to.include(\"avgDaysToApproveCap\");\r", - " pm.expect(pm.response.text()).to.include(\"avgDaysOfCap\");\r", - " pm.expect(pm.response.text()).to.include(\"avgDaysFromCapApprovalToSurveillanceClose\");\r", - " pm.expect(pm.response.text()).to.include(\"avgDaysFromCapCloseToSurveillanceClose\");\r", - " pm.expect(pm.response.text()).to.include(\"avgDaysToCloseNonconformity\");\r", - "});\r", - "" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "method": "GET", - "header": [ - { - "key": "API-Key", - "value": "{{apiKey}}", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/rest/report-data/non-conformity-counts", - "host": [ - "{{url}}" - ], - "path": [ - "rest", - "report-data", - "non-conformity-counts" - ] - }, - "description": "GET /report-data/non-conformity-counts - 200 status and response fields validation" - }, - "response": [] - }, - { - "name": "GET /rest/report-data/cap-counts - 200 status and cap counts in response", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "var jsonData = pm.response.json();\r", - "pm.test(\"/report-data/cap-counts endpoint should return 200 status in response\", function () {\r", - " pm.response.to.have.status(200);\r", - " });\r", - "\r", - " pm.test(\"/report-data/cap-counts should include open and closed cap counts in response\", function () {\r", - " pm.expect(pm.response.text()).to.include(\"totalCaps\");\r", - " pm.expect(pm.response.text()).to.include(\"openCaps\");\r", - " pm.expect(pm.response.text()).to.include(\"closedCaps\");\r", - "});" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "method": "GET", - "header": [ - { - "key": "API-Key", - "value": "{{apiKey}}", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/rest/report-data/cap-counts", - "host": [ - "{{url}}" - ], - "path": [ - "rest", - "report-data", - "cap-counts" - ] - } - }, - "response": [] - }, - { - "name": "GET /report-data/service-base-url-list - 200 status and valid response", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"/report-data/service-base-url-list should retrieve status 200 and valid response\", function () {\r", - " pm.response.to.have.status(200);\r", - " pm.expect(pm.response.text()).to.include(\"urlUptimeMonitorId\");\r", - " pm.expect(pm.response.text()).to.include(\"datadogTestKey\");\r", - " pm.expect(pm.response.text()).to.include(\"checkTime\");\r", - " pm.expect(pm.response.text()).to.include(\"passed\");\r", - "});\r", - "" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "method": "GET", - "header": [ - { - "key": "API-Key", - "value": "{{apiKey}}", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/rest/report-data/service-base-url-list", - "host": [ - "{{url}}" - ], - "path": [ - "rest", - "report-data", - "service-base-url-list" - ] - }, - "description": "/report-data/service-base-url-list should retrieve status 200 and valid response" - }, - "response": [] - }, - { - "name": "GET /report-data/non-conformities/types - 200 status and valid response", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"/report-data/non-conformities/types should retrieve status 200 and valid response\", function () {\r", - " pm.response.to.have.status(200);\r", - " pm.expect(pm.response.text()).to.include(\"nonconformityType\");\r", - " pm.expect(pm.response.text()).to.include(\"number\");\r", - " pm.expect(pm.response.text()).to.include(\"title\");\r", - " pm.expect(pm.response.text()).to.include(\"startDay\");\r", - " pm.expect(pm.response.text()).to.include(\"endDay\");\r", - " pm.expect(pm.response.text()).to.include(\"removed\");\r", - " pm.expect(pm.response.text()).to.include(\"status\");\r", - "});\r", - "" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "method": "GET", - "header": [ - { - "key": "API-Key", - "value": "{{apiKey}}", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/rest/report-data/non-conformities/types", - "host": [ - "{{url}}" - ], - "path": [ - "rest", - "report-data", - "non-conformities", - "types" - ] - }, - "description": "GET /report-data/non-conformities/types - 200 status and valid response" - }, - "response": [] - }, - { - "name": "GET /report-data/real-world-testing/plans - 200 status and valid response", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"/report-data/real-world-testing/plans should retrieve status 200 and valid response\", function () {\r", - " pm.response.to.have.status(200);\r", - " pm.expect(pm.response.text()).to.include(\"realWorldTestingYear\");\r", - " pm.expect(pm.response.text()).to.include(\"checkedDate\");\r", - " pm.expect(pm.response.text()).to.include(\"checkedCount\");\r", - " pm.expect(pm.response.text()).to.include(\"requiresCheckCount\");\r", - "});" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "auth": { - "type": "noauth" - }, - "method": "GET", - "header": [ - { - "key": "API-Key", - "value": "{{apiKey}}", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/rest/report-data/real-world-testing/plans", - "host": [ - "{{url}}" - ], - "path": [ - "rest", - "report-data", - "real-world-testing", - "plans" - ] - }, - "description": "GET /report-data/real-world-testing/plans - 200 status and valid response" - }, - "response": [] - }, - { - "name": "GET /report-data/real-world-testing/results - 200 status and valid response", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"/report-data/real-world-testing/results should retrieve status 200 and valid response\", function () {\r", - " pm.response.to.have.status(200);\r", - "});" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "method": "GET", - "header": [ - { - "key": "API-Key", - "value": "{{apiKey}}", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/rest/report-data/real-world-testing/results", - "host": [ - "{{url}}" - ], - "path": [ - "rest", - "report-data", - "real-world-testing", - "results" - ] - }, - "description": "GET /report-data/real-world-testing/results - 200 status and valid response\r\n" - }, - "response": [] + "info": { + "name": "report-data", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + }, + "item": [ + { + "name": "GET /report-data/hti-1-criteria-migration-report - 200 status and response body", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"/report-data/hti-1-criteria-migration-report endpoint returns 200 status and response body should not be empty\", function () {\r", + " pm.response.to.have.status(200);\r", + " var jsonData = pm.response.json();\r", + " pm.expect(jsonData.response).not.eq(null);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "API-Key", + "value": "{{apiKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/rest/report-data/hti-1-criteria-migration-report", + "host": [ + "{{url}}" + ], + "path": [ + "rest", + "report-data", + "hti-1-criteria-migration-report" + ] + }, + "description": "GET /report-data/hti-1-criteria-migration-report - 200 status and response body for anonymous users" + }, + "response": [] + }, + { + "name": "GET /report-data/unique-developer-count - 200 status and count in response", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = pm.response.json();\r", + "pm.test(\"/report-data/unique-developer-count endpoint should return 200 status in response\", function () {\r", + " pm.response.to.have.status(200);\r", + " });\r", + "\r", + " pm.test(\"/report-data/unique-developer-count should include count in response\", function () {\r", + " pm.expect(pm.response.text()).to.include(\"count\");\r", + "});" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "API-Key", + "value": "{{apiKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/rest/report-data/unique-developer-count", + "host": [ + "{{url}}" + ], + "path": [ + "rest", + "report-data", + "unique-developer-count" + ] + } + }, + "response": [] + }, + { + "name": "GET /report-data/developers-with-withdrawn-listings-by-acb - 200 status and response fields validation", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "const developerSchema =\r", + "[\r", + " {\r", + " \"id\": 0,\r", + " \"name\": \"string\",\r", + " \"status\": {\r", + " \"id\": 0,\r", + " \"name\": \"string\"\r", + " }\r", + " }\r", + "]\r", + "var jsonResponse = pm.response.json();\r", + "pm.test('developer schema for /report-data/developers-with-withdrawn-listings-by-acb is valid', function() {\r", + " pm.expect(tv4.validate(jsonResponse, developerSchema)).to.be.true; \r", + "});\r", + "\r", + "pm.test(\"/report-data/developers-with-withdrawn-listings-by-acb should include developer name and acbsForWithdrawnListings in response and return 200 status\", function () {\r", + " pm.expect(pm.response.text()).to.include(\"name\");\r", + " pm.expect(pm.response.text()).to.include(\"acbsForWithdrawnListings\");\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "API-Key", + "value": "{{apiKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/rest/report-data/developers-with-withdrawn-listings-by-acb", + "host": [ + "{{url}}" + ], + "path": [ + "rest", + "report-data", + "developers-with-withdrawn-listings-by-acb" + ] + } + }, + "response": [] + }, + { + "name": "GET /report-data/developers-with-suspended-listings-by-acb - 200 status and response fields validation", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"/report-data/developers-with-suspended-listings-by-acb should return 200 status in response\", function () {\r", + " pm.response.to.have.status(200); \r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "API-Key", + "value": "{{apiKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/rest/report-data/developers-with-suspended-listings-by-acb", + "host": [ + "{{url}}" + ], + "path": [ + "rest", + "report-data", + "developers-with-suspended-listings-by-acb" + ] + } + }, + "response": [] + }, + { + "name": "GET /report-data/developers-with-active-listings-by-acb - 200 status and response fields validation", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "const developerSchema =\r", + "[\r", + " {\r", + " \"id\": 0,\r", + " \"name\": \"string\",\r", + " \"status\": {\r", + " \"id\": 0,\r", + " \"name\": \"string\"\r", + " }\r", + " }\r", + "]\r", + "var jsonResponse = pm.response.json();\r", + "pm.test('developer schema for /report-data/developers-with-active-listings-by-acb is valid', function() {\r", + " pm.expect(tv4.validate(jsonResponse, developerSchema)).to.be.true; \r", + "});\r", + "\r", + "pm.test(\"/report-data/developers-with-active-listings-by-acb should include developer name and acbsForActiveListings in response and return 200 status\", function () {\r", + " pm.response.to.have.status(200);\r", + " pm.expect(pm.response.text()).to.include(\"name\");\r", + " pm.expect(pm.response.text()).to.include(\"acbsForActiveListings\");\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "API-Key", + "value": "{{apiKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/rest/report-data/developers-with-active-listings-by-acb", + "host": [ + "{{url}}" + ], + "path": [ + "rest", + "report-data", + "developers-with-active-listings-by-acb" + ] + } + }, + "response": [] + }, + { + "name": "GET /report-data/developer-count-with-withdrawn-listings-by-acb - 200 status and response fields validation", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"/report-data/developer-count-with-withdrawn-listings-by-acb should include developer count by ACB Name in response and return 200 status\", function () {\r", + " pm.response.to.have.status(200);\r", + " pm.expect(pm.response.text()).to.include(\"count\");\r", + " pm.expect(pm.response.text()).to.include(\"acbName\");\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "API-Key", + "value": "{{apiKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/rest/report-data/developer-count-with-withdrawn-listings-by-acb", + "host": [ + "{{url}}" + ], + "path": [ + "rest", + "report-data", + "developer-count-with-withdrawn-listings-by-acb" + ] + } + }, + "response": [] + }, + { + "name": "GET /report-data/developer-count-with-suspended-listings-by-acb - 200 status and response fields validation", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"/report-data/developer-count-with-suspended-listings-by-acb should return 200 status\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "API-Key", + "value": "{{apiKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/rest/report-data/developer-count-with-suspended-listings-by-acb", + "host": [ + "{{url}}" + ], + "path": [ + "rest", + "report-data", + "developer-count-with-suspended-listings-by-acb" + ] + } + }, + "response": [] + }, + { + "name": "GET /report-data/developer-count-with-active-listings-by-acb - 200 status and response fields validation", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"/report-data/developer-count-with-active-listings-by-acb should include developer count by ACB Name in response and return 200 status\", function () {\r", + " pm.response.to.have.status(200);\r", + " pm.expect(pm.response.text()).to.include(\"count\");\r", + " pm.expect(pm.response.text()).to.include(\"acbName\");\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "API-Key", + "value": "{{apiKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/rest/report-data/developer-count-with-active-listings-by-acb", + "host": [ + "{{url}}" + ], + "path": [ + "rest", + "report-data", + "developer-count-with-active-listings-by-acb" + ] + } + }, + "response": [] + }, + { + "name": "GET /report-data/surveillance-activity-counts - 200 status and counts in response", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = pm.response.json();\r", + "pm.test(\"/report-data/surveillance-activity-counts endpoint should return 200 status in response\", function () {\r", + " pm.response.to.have.status(200);\r", + " });\r", + "\r", + " pm.test(\"/report-data/surveillance-activity-counts should include surveillance activity counts in response\", function () {\r", + " pm.expect(pm.response.text()).to.include(\"totalActivities\");\r", + " pm.expect(pm.response.text()).to.include(\"openActivities\");\r", + " pm.expect(pm.response.text()).to.include(\"closedActivities\");\r", + "});" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "API-Key", + "value": "{{apiKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/rest/report-data/surveillance-activity-counts", + "host": [ + "{{url}}" + ], + "path": [ + "rest", + "report-data", + "surveillance-activity-counts" + ] + }, + "description": "GET /report-data/surveillance-activity-counts - 200 status and counts in response" + }, + "response": [] + }, + { + "name": "GET /report-data/non-conformity-counts - 200 status and response fields validation", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"/report-data/non-conformity-counts should include open and closed non-conformity counts in response and return 200 status\", function () {\r", + " pm.expect(pm.response.text()).to.include(\"totalNonconformities\");\r", + " pm.expect(pm.response.text()).to.include(\"openNonconformities\");\r", + " pm.expect(pm.response.text()).to.include(\"closedNonconformities\");\r", + " pm.expect(pm.response.text()).to.include(\"avgDaysToAssessConformity\");\r", + " pm.expect(pm.response.text()).to.include(\"avgDaysToApproveCap\");\r", + " pm.expect(pm.response.text()).to.include(\"avgDaysOfCap\");\r", + " pm.expect(pm.response.text()).to.include(\"avgDaysFromCapApprovalToSurveillanceClose\");\r", + " pm.expect(pm.response.text()).to.include(\"avgDaysFromCapCloseToSurveillanceClose\");\r", + " pm.expect(pm.response.text()).to.include(\"avgDaysToCloseNonconformity\");\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "API-Key", + "value": "{{apiKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/rest/report-data/non-conformity-counts", + "host": [ + "{{url}}" + ], + "path": [ + "rest", + "report-data", + "non-conformity-counts" + ] + }, + "description": "GET /report-data/non-conformity-counts - 200 status and response fields validation" + }, + "response": [] + }, + { + "name": "GET /rest/report-data/cap-counts - 200 status and cap counts in response", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "var jsonData = pm.response.json();\r", + "pm.test(\"/report-data/cap-counts endpoint should return 200 status in response\", function () {\r", + " pm.response.to.have.status(200);\r", + " });\r", + "\r", + " pm.test(\"/report-data/cap-counts should include open and closed cap counts in response\", function () {\r", + " pm.expect(pm.response.text()).to.include(\"totalCaps\");\r", + " pm.expect(pm.response.text()).to.include(\"openCaps\");\r", + " pm.expect(pm.response.text()).to.include(\"closedCaps\");\r", + "});" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "API-Key", + "value": "{{apiKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/rest/report-data/cap-counts", + "host": [ + "{{url}}" + ], + "path": [ + "rest", + "report-data", + "cap-counts" + ] + } + }, + "response": [] + }, + { + "name": "GET /report-data/service-base-url-list - 200 status and valid response", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"/report-data/service-base-url-list should retrieve status 200 and valid response\", function () {\r", + " pm.response.to.have.status(200);\r", + " pm.expect(pm.response.text()).to.include(\"urlUptimeMonitorId\");\r", + " pm.expect(pm.response.text()).to.include(\"datadogTestKey\");\r", + " pm.expect(pm.response.text()).to.include(\"checkTime\");\r", + " pm.expect(pm.response.text()).to.include(\"passed\");\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "API-Key", + "value": "{{apiKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/rest/report-data/service-base-url-list", + "host": [ + "{{url}}" + ], + "path": [ + "rest", + "report-data", + "service-base-url-list" + ] + }, + "description": "/report-data/service-base-url-list should retrieve status 200 and valid response" + }, + "response": [] + }, + { + "name": "GET /report-data/non-conformities/types - 200 status and valid response", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"/report-data/non-conformities/types should retrieve status 200 and valid response\", function () {\r", + " pm.response.to.have.status(200);\r", + " pm.expect(pm.response.text()).to.include(\"nonconformityType\");\r", + " pm.expect(pm.response.text()).to.include(\"number\");\r", + " pm.expect(pm.response.text()).to.include(\"title\");\r", + " pm.expect(pm.response.text()).to.include(\"startDay\");\r", + " pm.expect(pm.response.text()).to.include(\"endDay\");\r", + " pm.expect(pm.response.text()).to.include(\"removed\");\r", + " pm.expect(pm.response.text()).to.include(\"status\");\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "API-Key", + "value": "{{apiKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/rest/report-data/non-conformities/types", + "host": [ + "{{url}}" + ], + "path": [ + "rest", + "report-data", + "non-conformities", + "types" + ] + }, + "description": "GET /report-data/non-conformities/types - 200 status and valid response" + }, + "response": [] + }, + { + "name": "GET /report-data/real-world-testing/plans - 200 status and valid response", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"/report-data/real-world-testing/plans should retrieve status 200 and valid response\", function () {\r", + " pm.response.to.have.status(200);\r", + " pm.expect(pm.response.text()).to.include(\"realWorldTestingYear\");\r", + " pm.expect(pm.response.text()).to.include(\"checkedDate\");\r", + " pm.expect(pm.response.text()).to.include(\"checkedCount\");\r", + " pm.expect(pm.response.text()).to.include(\"requiresCheckCount\");\r", + "});" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "auth": { + "type": "noauth" + }, + "method": "GET", + "header": [ + { + "key": "API-Key", + "value": "{{apiKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/rest/report-data/real-world-testing/plans", + "host": [ + "{{url}}" + ], + "path": [ + "rest", + "report-data", + "real-world-testing", + "plans" + ] + }, + "description": "GET /report-data/real-world-testing/plans - 200 status and valid response" + }, + "response": [] + }, + { + "name": "GET /report-data/real-world-testing/results - 200 status and valid response", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"/report-data/real-world-testing/results should retrieve status 200 and valid response\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "API-Key", + "value": "{{apiKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/rest/report-data/real-world-testing/results", + "host": [ + "{{url}}" + ], + "path": [ + "rest", + "report-data", + "real-world-testing", + "results" + ] + }, + "description": "GET /report-data/real-world-testing/results - 200 status and valid response\r\n" + }, + "response": [] }, { "name": "GET /report-data/important-dates - 200 status and valid response", @@ -864,6 +864,57 @@ "description": "GET /report-data/real-world-testing/results-summary-by-developer - 200 status and valid response\r\n" }, "response": [] + }, + { + "name": "GET /report-data/surveillance-by-developer - status 200 and valid response", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"/report-data/surveillance-by-developer should retrieve status 200 and valid response\", function () {\r", + " pm.response.to.have.status(200);\r", + " pm.expect(pm.response.text()).to.include(\"chplProductNumber\");\r", + " pm.expect(pm.response.text()).to.include(\"developerName\");\r", + " pm.expect(pm.response.text()).to.include(\"surveillanceEndDate\");\r", + " pm.expect(pm.response.text()).to.include(\"surveillanceId\");\r", + " pm.expect(pm.response.text()).to.include(\"surveillanceStartDate\");\r", + "});" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "API-Key", + "value": "{{apiKey}}", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/rest/report-data/surveillance-by-developer", + "host": [ + "{{url}}" + ], + "path": [ + "rest", + "report-data", + "surveillance-by-developer" + ] + }, + "description": "GET /report-data/surveillance-by-developer - status 200 and valid response" + }, + "response": [] } ] -} +} \ No newline at end of file