From 5a2c209f92f4a8407f9ec0c2aaf3030644dc4182 Mon Sep 17 00:00:00 2001 From: Thomas Kranitsas Date: Thu, 12 Nov 2020 18:42:26 +0200 Subject: [PATCH] Misc fixes --- README.md | 5 + app-constants.js | 1 + config/default.js | 4 +- docs/swagger.yaml | 50 + ...oder-challenge-api.postman_collection.json | 1340 ++++++++++++----- ...der-challenge-api.postman_environment.json | 5 + local/docker-compose.yml | 6 +- mock-api/app.js | 35 + src/common/helper.js | 41 +- src/controllers/ChallengeController.js | 14 +- src/init-db.js | 2 +- src/models/Challenge.js | 3 + src/routes.js | 7 + src/services/ChallengeService.js | 120 +- 14 files changed, 1200 insertions(+), 433 deletions(-) diff --git a/README.md b/README.md index 98818de2..13f5f4ea 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,11 @@ There are two parts need to be updated for local development - https://github.com/topcoder-platform/challenge-api/blob/develop/config/default.js#L27-L28 Two aws config should be uncommented +and AUTH0 related configuration must be set at config file or in env variables. +### Deploy the app + +- Follow the Notes section above - Install dependencies `npm install` - Run lint `npm run lint` - Run lint fix `npm run lint:fix` @@ -118,6 +122,7 @@ Two aws config should be uncommented or re-create the index: `npm run init-es force` - Create tables `npm run create-tables` - Clear and init db `npm run init-db` +- Seed tables: `npm run seed-tables` - Start app `npm start` - App is running at `http://localhost:3000` diff --git a/app-constants.js b/app-constants.js index d1b37094..d2b78ef1 100644 --- a/app-constants.js +++ b/app-constants.js @@ -55,6 +55,7 @@ const DiscussionTypes = { const Topics = { ChallengeCreated: 'challenge.notification.create', ChallengeUpdated: 'challenge.notification.update', + ChallengeDeleted: 'challenge.notification.delete', ChallengeTypeCreated: 'test.new.bus.events', // 'challenge.action.type.created', ChallengeTypeUpdated: 'test.new.bus.events', // 'challenge.action.type.updated', ChallengePhaseCreated: 'test.new.bus.events', // 'challenge.action.phase.created', diff --git a/config/default.js b/config/default.js index b57e3b51..0e053f9c 100644 --- a/config/default.js +++ b/config/default.js @@ -25,8 +25,8 @@ module.exports = { KAFKA_ERROR_TOPIC: process.env.KAFKA_ERROR_TOPIC || 'common.error.reporting', AMAZON: { - // AWS_ACCESS_KEY_ID: process.env.AWS_FAKE_ID, - // AWS_SECRET_ACCESS_KEY: process.env.AWS_FAKE_KEY, + // AWS_ACCESS_KEY_ID: process.env.AWS_FAKE_ID || "FAKE_ACCESS_KEY", + // AWS_SECRET_ACCESS_KEY: process.env.AWS_FAKE_KEY || "FAKE_SECRET_ACCESS_KEY", AWS_REGION: process.env.AWS_REGION || 'ap-northeast-1', IS_LOCAL_DB: process.env.IS_LOCAL_DB || true, DYNAMODB_URL: process.env.DYNAMODB_URL || 'http://localhost:8000', diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 11279b7c..80e2baa1 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -598,6 +598,50 @@ paths: description: Server error schema: $ref: '#/definitions/ErrorModel' + delete: + tags: + - Challenges + description: > + Delete the challenge with the provided id. + Only challenges with status of "New" can be deleted. + security: + - bearer: [] + produces: + - application/json + parameters: + - name: challengeId + in: path + required: true + type: string + format: UUID + description: The id of challenge to update + responses: + '200': + description: Deleted - The request was successful and the resource is returned. + schema: + $ref: '#/definitions/Challenge' + '400': + description: Bad request. Request parameters were invalid. + schema: + $ref: '#/definitions/ErrorModel' + '401': + description: Unauthorized. Fail to authenticate the requester. + schema: + $ref: '#/definitions/ErrorModel' + '403': + description: > + Forbidden. The requester does not have the correct permission to + update the challenge. + schema: + $ref: '#/definitions/ErrorModel' + '404': + description: Challenge not found + schema: + $ref: '#/definitions/ErrorModel' + '500': + description: Server error + schema: + $ref: '#/definitions/ErrorModel' /challenge-types: get: tags: @@ -2426,6 +2470,9 @@ definitions: numOfRegistrants: type: integer description: number of registrants + overview: + description: the overview of the challenge + type: object created: type: string format: date-time @@ -2896,6 +2943,9 @@ definitions: numOfRegistrants: type: integer description: number of registrants + overview: + description: the overview of the challenge + type: object created: type: string format: date-time diff --git a/docs/topcoder-challenge-api.postman_collection.json b/docs/topcoder-challenge-api.postman_collection.json index 80b035d0..ce845db2 100644 --- a/docs/topcoder-challenge-api.postman_collection.json +++ b/docs/topcoder-challenge-api.postman_collection.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "c2013fad-553b-4d62-8dc1-d4b8ab5d0eb9", + "_postman_id": "b7de2034-afaf-4cb4-8120-b038784bad15", "name": "topcoder-challenge-api", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, @@ -20,7 +20,7 @@ { "listen": "test", "script": { - "id": "7a08125a-01e7-44c3-aa62-405bc976f9b7", + "id": "40f8487b-5505-416f-ac2f-14bb5eacfeb1", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -72,7 +72,7 @@ { "listen": "test", "script": { - "id": "0d8ce8aa-f82a-46e6-abde-13fbb2f44d43", + "id": "59e00327-ac27-4cee-a6a0-4244f930c179", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -124,7 +124,7 @@ { "listen": "test", "script": { - "id": "7ffef649-ac8e-444c-aee2-f20a50f21255", + "id": "7fc2cf39-df59-46d5-929e-d3d2d51ff740", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -176,7 +176,7 @@ { "listen": "test", "script": { - "id": "e2ab732d-4ad1-4c65-bd84-5ea7779f97b0", + "id": "f691b153-bd51-403f-9b53-e51bdf54d791", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -228,7 +228,7 @@ { "listen": "test", "script": { - "id": "2d9f397f-49cb-478e-a7c3-a51b508f7de1", + "id": "18d4e863-d0fd-4777-bb8a-220378795517", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -284,7 +284,7 @@ { "listen": "test", "script": { - "id": "a0fb7435-3bba-437f-9c25-17adbb9fa755", + "id": "f8bc70aa-6463-4154-9f04-2fbcb0d18d3d", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -336,7 +336,7 @@ { "listen": "test", "script": { - "id": "080ab278-7673-406d-8d8d-9c64d5d59f11", + "id": "4e55a84a-eff5-4a9e-bc30-fe45eb13aace", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -388,7 +388,7 @@ { "listen": "test", "script": { - "id": "66441f1b-9fd8-4109-b59b-32e453f0e58d", + "id": "2f4f34bd-5c69-4904-afd5-c500f4e79ed4", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -440,7 +440,7 @@ { "listen": "test", "script": { - "id": "cf0947f5-c7a5-4969-91f1-bf4e2a853a2d", + "id": "7db29868-b58d-44d8-80fc-80aad2aa9383", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -491,7 +491,7 @@ { "listen": "test", "script": { - "id": "32f404d2-80f2-4b00-b082-c3701954e6d2", + "id": "240c6c10-5c7f-4bae-8c94-8fee04696f11", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -542,7 +542,7 @@ { "listen": "test", "script": { - "id": "b61b37f2-b56c-445e-8ca5-c2ca1b66f5a4", + "id": "d28cd728-0c7b-4cfe-95b0-cd6aa7144e11", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -593,7 +593,7 @@ { "listen": "test", "script": { - "id": "edc46484-331e-4336-9c3c-e00b7b2a1d87", + "id": "a6a4fa79-fdb3-430b-8c26-244d300caeeb", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -639,7 +639,7 @@ { "listen": "test", "script": { - "id": "012def73-b246-4867-bd1f-9765dd86bdfe", + "id": "d6d32f84-525d-4fbe-a178-035e4032aef4", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -690,7 +690,7 @@ { "listen": "test", "script": { - "id": "ace99aba-b286-4b5a-bbcf-bc194ba0374c", + "id": "982f3ebe-3e0e-4e08-a4dd-ea101e9cf156", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -741,7 +741,7 @@ { "listen": "test", "script": { - "id": "883562de-c49e-4cb3-814f-4f4ea0d023a4", + "id": "3cd662e7-de01-4068-ae6a-9c71431af698", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -792,7 +792,7 @@ { "listen": "test", "script": { - "id": "042e39e0-da17-43de-9470-baf12c7b5e8f", + "id": "88acd6bd-81de-4e43-b999-3da00b4497ce", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(409);", @@ -843,7 +843,7 @@ { "listen": "test", "script": { - "id": "4b6d1263-50ce-485d-9f61-19bc670deceb", + "id": "92a3f968-c919-4d31-a783-8b70748e98a6", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -895,7 +895,7 @@ { "listen": "test", "script": { - "id": "5db0e656-9b71-493c-9425-4d7ce87c4adf", + "id": "a45d975a-006e-4378-a229-4612f16f55f4", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(403);", @@ -953,7 +953,7 @@ { "listen": "test", "script": { - "id": "c85567c4-bbd0-4cd6-b0ea-869a12044896", + "id": "470c0d95-7678-4a8f-a6cc-c7f36c1b34f5", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -1017,7 +1017,7 @@ { "listen": "test", "script": { - "id": "513ac17c-0c8a-41d2-be24-697999321ffe", + "id": "b970a742-0a75-400e-aa47-5cfc4a6d40f1", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -1073,7 +1073,7 @@ { "listen": "test", "script": { - "id": "2c908c06-8699-4f1c-b416-500a587def69", + "id": "6c0dca60-2829-4e18-9bab-165a2c6c54e2", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -1121,7 +1121,7 @@ { "listen": "test", "script": { - "id": "e180c554-4917-44f8-82e1-703a81ab81ed", + "id": "1120e97a-1893-4940-84f4-03ca6fd0a308", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -1169,7 +1169,7 @@ { "listen": "test", "script": { - "id": "8619763a-aa70-44c1-976a-9ddebab82ca2", + "id": "c42f30f6-4ecd-4e6a-8672-bda27a9a41ed", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -1224,7 +1224,7 @@ { "listen": "test", "script": { - "id": "220bb255-5539-462c-bd40-66058d08e17b", + "id": "f2ae4226-630e-4d6f-9f5f-8573bca9c5d0", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -1267,7 +1267,7 @@ { "listen": "test", "script": { - "id": "54874777-2db8-43ed-97ee-067a13d8579a", + "id": "e3eef191-a85c-487f-84af-6de26a90473e", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -1310,7 +1310,7 @@ { "listen": "test", "script": { - "id": "473819e4-6d61-48d0-bd89-f56f1d6989be", + "id": "7eac1ef4-12e0-4c3a-a87c-4dcfa64ff72b", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -1353,7 +1353,7 @@ { "listen": "test", "script": { - "id": "a5c9adb7-e4c1-46d5-a5f9-b6b32e2819d9", + "id": "ef2613ad-9a1d-456e-85fc-c0dddef25b6a", "exec": [ "pm.test(\"Status code is 404\", function () {", " pm.response.to.have.status(404);", @@ -1403,7 +1403,7 @@ { "listen": "test", "script": { - "id": "3bdfac69-c150-4516-9fa9-51bca67ab8be", + "id": "a0a7c1f3-8806-43dc-86b9-96cc0f3b232f", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -1455,7 +1455,7 @@ { "listen": "test", "script": { - "id": "8b5bce00-8c06-4238-a78c-c1b4247fe812", + "id": "df2b6923-8ae0-4bf1-a43e-991b8d06af2b", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -1507,7 +1507,7 @@ { "listen": "test", "script": { - "id": "64b6faaa-d787-4a2c-bed4-92672549e8c3", + "id": "17ae5e44-4c7f-4872-8d4b-a66b0f4e3b00", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -1559,7 +1559,7 @@ { "listen": "test", "script": { - "id": "ffc16da7-b705-4274-8443-768b4a2ac6f3", + "id": "f2e1ffa2-e671-4c93-bff8-b95958cafa95", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -1611,7 +1611,7 @@ { "listen": "test", "script": { - "id": "214fe702-41bf-4811-8648-ec0161df1f43", + "id": "0992795a-fd79-47da-a4d7-5d4a4dd13832", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -1663,7 +1663,7 @@ { "listen": "test", "script": { - "id": "e58a0059-da79-4e04-a525-ad7c3f248bd2", + "id": "c33150a7-2838-40b9-aa21-ca5565c3d8d1", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -1715,7 +1715,7 @@ { "listen": "test", "script": { - "id": "29e4212f-7d35-4996-acef-9f6e7aa49503", + "id": "bf239900-229d-41a9-b2cd-e2b279070be3", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -1767,7 +1767,7 @@ { "listen": "test", "script": { - "id": "fde6742c-9dbe-4c4e-8022-a419d13a28c2", + "id": "183543f7-ce47-4ea3-ad34-c5dcc2dcbbf4", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -1819,7 +1819,7 @@ { "listen": "test", "script": { - "id": "d4c947b3-e14b-43cf-a87d-bc3f4f0db273", + "id": "aed1518a-cb64-4cdf-acd2-b1b025ee1709", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -1866,7 +1866,7 @@ { "listen": "test", "script": { - "id": "7bb060b0-2475-49bb-a3dc-4e16776e148b", + "id": "65b638b6-3130-4af1-8e72-66dc6453ab52", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -1918,7 +1918,7 @@ { "listen": "test", "script": { - "id": "0ddd26ca-a856-47fd-ada3-754076298290", + "id": "07e095dc-9eb7-4d35-a9cf-573925d77055", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -1970,7 +1970,7 @@ { "listen": "test", "script": { - "id": "e32413c8-313e-440b-8edc-31a08b9afdbb", + "id": "3e3f0d53-2161-43dc-a4ac-f3992fbb523f", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -2022,7 +2022,7 @@ { "listen": "test", "script": { - "id": "4bfd4da5-6e83-4e46-9509-4367221fc28b", + "id": "b769fa5f-4f0a-40e3-8e09-b1b382b0c6e2", "exec": [ "pm.test(\"Status code is 404\", function () {", " pm.response.to.have.status(404);", @@ -2074,7 +2074,7 @@ { "listen": "test", "script": { - "id": "d2e4a886-f33b-46d5-9756-0686f6b4ba77", + "id": "d4775a79-2e7a-432b-9078-fadc6db1379f", "exec": [ "pm.test(\"Status code is 409\", function () {", " pm.response.to.have.status(409);", @@ -2126,7 +2126,7 @@ { "listen": "test", "script": { - "id": "7e7c80b4-b2d6-46eb-abdc-2e814ffeb3ce", + "id": "17fc0f89-f936-4c24-b85e-922b7ea3b516", "exec": [ "pm.test(\"Status code is 409\", function () {", " pm.response.to.have.status(409);", @@ -2178,7 +2178,7 @@ { "listen": "test", "script": { - "id": "07967aa5-a50a-4ee4-a8c6-e6579983a104", + "id": "f154bcad-7ba0-4a5e-a8e5-0d1e43427439", "exec": [ "pm.test(\"Status code is 409\", function () {", " pm.response.to.have.status(409);", @@ -2230,7 +2230,7 @@ { "listen": "test", "script": { - "id": "832a81f8-9faa-41dd-acab-b8756bcb68ef", + "id": "b1df4e62-cfd5-42c3-886b-1471c4d5ac38", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -2282,7 +2282,7 @@ { "listen": "test", "script": { - "id": "08989332-af7d-45df-a5d2-8c1a01d443f0", + "id": "cc6bb5a3-576d-48c7-8099-b464f07b0e84", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -2341,7 +2341,7 @@ { "listen": "test", "script": { - "id": "0c6c4a55-24b8-410d-af31-46c2a205723d", + "id": "77880194-dd0d-4ad0-bf42-612bdcb7a8c9", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -2393,7 +2393,7 @@ { "listen": "test", "script": { - "id": "b8e2c578-0e60-4b42-b90c-5221e2d7f3dc", + "id": "1ad836ee-7a60-4998-bb30-321c46467a05", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -2445,7 +2445,7 @@ { "listen": "test", "script": { - "id": "a00d831c-3b6a-4bd3-b677-b615c02b79e5", + "id": "37184c91-d73e-4a17-b8f5-0b69635fae7d", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -2497,7 +2497,7 @@ { "listen": "test", "script": { - "id": "5c16d05c-f49a-429b-9de5-0e8efc5072a0", + "id": "21c62cfd-3f35-460d-bf3f-bf79a1eab3e7", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -2549,7 +2549,7 @@ { "listen": "test", "script": { - "id": "277953a4-c43d-4e1c-a6b8-e0a56db0a641", + "id": "265e18a1-4a64-4e79-a7c2-0d753adab5a8", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -2601,7 +2601,7 @@ { "listen": "test", "script": { - "id": "82982e9a-f134-448a-a84a-9ac116801f3e", + "id": "f658343a-47ab-4ac5-878e-dcece46b94d1", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -2653,7 +2653,7 @@ { "listen": "test", "script": { - "id": "3a85398c-4734-4658-92ff-f0e4f538d679", + "id": "9abbb2ec-623a-4f44-85c7-52629ba794ce", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -2705,7 +2705,7 @@ { "listen": "test", "script": { - "id": "88e498f0-1a3e-4be4-8791-ad27e3e2fb94", + "id": "570a2c74-3f69-414b-8498-5c738b9ae5c5", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -2757,7 +2757,7 @@ { "listen": "test", "script": { - "id": "396b35e0-83dc-4287-ada4-c4dd98e162e2", + "id": "f5a3da41-9533-4515-badb-8ece7a60bcf3", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -2809,7 +2809,7 @@ { "listen": "test", "script": { - "id": "f70f659d-8a44-43ba-a10e-437efc141783", + "id": "b3aafd86-9d7d-49e5-84da-d9025de54ea0", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -2861,7 +2861,7 @@ { "listen": "test", "script": { - "id": "adf1ecde-a43c-46dd-b50c-951bb31c71de", + "id": "bd2bbae5-0781-4673-9ec8-9ed0477712f2", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -2913,7 +2913,7 @@ { "listen": "test", "script": { - "id": "fc2f3410-8175-4256-848d-dc4eb66c7be2", + "id": "47b4a1e6-2e86-4d86-8973-73bf0ab97d90", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -2960,7 +2960,7 @@ { "listen": "test", "script": { - "id": "8c57ce71-0e72-4474-8863-996bcdc845ed", + "id": "e387ada0-9171-411a-82b1-42d707db31a1", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -3012,7 +3012,7 @@ { "listen": "test", "script": { - "id": "0eaedec4-8047-4720-85bb-4dc2b7a07190", + "id": "794dce04-bb07-4892-8a2d-d66be6a41861", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -3064,7 +3064,7 @@ { "listen": "test", "script": { - "id": "80faa98a-8186-4819-90a0-c7d7f898acc5", + "id": "a8e1abe1-ee33-4865-a8ab-7e2e9606909e", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -3116,7 +3116,7 @@ { "listen": "test", "script": { - "id": "cca01be3-a3f4-44f1-9728-ac4ba2fc52a1", + "id": "6dc0cd1f-8a36-4f79-84ab-05c3bc48d702", "exec": [ "pm.test(\"Status code is 404\", function () {", " pm.response.to.have.status(404);", @@ -3168,7 +3168,7 @@ { "listen": "test", "script": { - "id": "68cef737-5491-49c5-b112-7d3f3eaa4973", + "id": "eb6d4f5d-a523-4fba-ac50-5e8eed6985f2", "exec": [ "pm.test(\"Status code is 409\", function () {", " pm.response.to.have.status(409);", @@ -3220,7 +3220,7 @@ { "listen": "test", "script": { - "id": "41d5dc31-885b-45ce-aaf4-92d5b01de4d6", + "id": "4697774d-ede3-40bd-b0bc-84923a8f3ef7", "exec": [ "pm.test(\"Status code is 409\", function () {", " pm.response.to.have.status(409);", @@ -3272,7 +3272,7 @@ { "listen": "test", "script": { - "id": "071224f4-17e6-4886-8770-b97e652c7b30", + "id": "7b51e745-cc23-41b8-96e1-a287931aeba0", "exec": [ "pm.test(\"Status code is 409\", function () {", " pm.response.to.have.status(409);", @@ -3324,7 +3324,7 @@ { "listen": "test", "script": { - "id": "e8a047c3-4685-4555-9651-686db91b2405", + "id": "38d69a80-8f0c-4d45-8c7c-0556e39161a1", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -3376,7 +3376,7 @@ { "listen": "test", "script": { - "id": "7470e161-442f-443e-9eb2-5ead37c8bcc6", + "id": "58e2cedc-2551-44f8-93f3-2e9e1df16bf6", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -3441,7 +3441,7 @@ { "listen": "test", "script": { - "id": "76a78b5e-365a-4e97-8280-137bb672717c", + "id": "81e6dbb8-5f1c-4f7b-a289-8f39e90f54a6", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -3493,7 +3493,7 @@ { "listen": "test", "script": { - "id": "19bba8bd-588b-4859-ba96-1f5c39b45a1d", + "id": "42aa1e0c-8ae4-4637-a255-ce8a723b7999", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -3545,7 +3545,7 @@ { "listen": "test", "script": { - "id": "bbdf45b2-3967-4551-83f0-df4fb765c7c5", + "id": "f9cf1180-e89b-4d44-a859-b993f8ad30e2", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -3597,7 +3597,7 @@ { "listen": "test", "script": { - "id": "12882ead-8cc3-471b-8653-10e877733de4", + "id": "53ea9c99-1bf6-4399-9b8b-2ffcee2a8457", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -3649,7 +3649,7 @@ { "listen": "test", "script": { - "id": "3fdfa49b-7fd6-4e48-a4f4-8602fff41625", + "id": "af2a8e36-d747-45f9-9e72-cb0a5232e6cb", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -3701,7 +3701,7 @@ { "listen": "test", "script": { - "id": "d372492a-bda9-43ad-8625-ed11139a9eec", + "id": "94ed12c4-4b9f-4375-8c13-7fd2fd537648", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -3753,7 +3753,7 @@ { "listen": "test", "script": { - "id": "d4d1d466-ff46-40c6-8076-098d04057195", + "id": "0ffd4a81-d7f2-49c9-9a98-a4d9177116aa", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -3805,7 +3805,7 @@ { "listen": "test", "script": { - "id": "913aeb48-1877-475e-b442-3107cbe5b51c", + "id": "1803994f-8c19-4dc7-83d0-6c92120af86a", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -3857,7 +3857,7 @@ { "listen": "test", "script": { - "id": "257ab831-e7f2-41eb-ab1e-bf1f9b3bd8a6", + "id": "32abd94e-0926-45bb-982b-eeb9ae249a87", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -3908,7 +3908,7 @@ { "listen": "test", "script": { - "id": "2dfef2ee-97a4-48f1-acea-4c42404d0697", + "id": "5d66ad4f-c85d-44f3-b752-3e77c269fe4e", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -3959,7 +3959,7 @@ { "listen": "test", "script": { - "id": "456e268b-79e4-47ad-83ba-df4b0c428f0a", + "id": "add5d9de-4f59-4e3f-9dc4-7b4b2b646978", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -4010,7 +4010,7 @@ { "listen": "test", "script": { - "id": "6712d002-6d70-4942-8e33-a5098b1ae8f4", + "id": "749897ee-ce43-4c01-95a4-b1ff346ca963", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -4056,7 +4056,7 @@ { "listen": "test", "script": { - "id": "c75cd2e5-65dc-4250-9885-24d920ff5829", + "id": "35d5e772-ee0c-4e94-8b90-9b89d04a3fc3", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -4107,7 +4107,7 @@ { "listen": "test", "script": { - "id": "6d34bf5e-af53-420a-bb0a-666818f2d3eb", + "id": "e2ce78dd-7cbb-44af-8b85-f681556dbe5d", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -4158,7 +4158,7 @@ { "listen": "test", "script": { - "id": "610c8b0b-6dd6-42c5-903a-2b7c6c4ce6f5", + "id": "4a332e15-bd2b-4560-b3a2-1ec668d3a5ce", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -4209,7 +4209,7 @@ { "listen": "test", "script": { - "id": "725dbbb1-a364-44da-9c34-8089ff814037", + "id": "4297ca3c-580f-4131-ad2a-449371194a4a", "exec": [ "pm.test(\"Status code is 409\", function () {", " pm.response.to.have.status(409);", @@ -4260,7 +4260,7 @@ { "listen": "test", "script": { - "id": "2863893c-3222-46a7-8dd2-426bb55ee1dd", + "id": "64875bd8-ac24-47f4-bc79-799bc3094c07", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -4312,7 +4312,7 @@ { "listen": "test", "script": { - "id": "0e24f21d-c952-4a89-9028-3d320c0e545c", + "id": "df5b16dc-deba-45e4-a4b0-6f9fcd68d6bb", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -4370,7 +4370,7 @@ { "listen": "test", "script": { - "id": "35a7a910-1ce1-4cf3-b7b1-e02d165b5b8d", + "id": "aaed566b-f12a-4634-8c27-6c1eb088be8e", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -4423,7 +4423,7 @@ { "listen": "test", "script": { - "id": "303b8ed8-7df8-418d-8eb7-23a9351e27ed", + "id": "010e1d3a-25f9-46fd-a627-0cfe621620a3", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -4484,7 +4484,7 @@ { "listen": "test", "script": { - "id": "82abd971-e459-4c4f-834b-407af44edbcf", + "id": "ed9406c8-12b0-42f9-bd3c-5c2f4641bed5", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -4531,7 +4531,7 @@ { "listen": "test", "script": { - "id": "cbc302f5-f2da-48f7-9d86-0c14296cd4ee", + "id": "6d51c876-17bc-45cf-8876-2f04590d7016", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -4573,7 +4573,7 @@ { "listen": "test", "script": { - "id": "aea0bb1f-ab5e-4228-bc38-b9d83414452f", + "id": "ea74e0ff-0188-4d64-afe8-e64981436fe6", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -4626,7 +4626,7 @@ { "listen": "test", "script": { - "id": "c54dbbca-ad57-4522-95ae-912b87c812c5", + "id": "984f7cd8-f9e1-43bb-9981-163cb07be673", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -4686,7 +4686,7 @@ { "listen": "test", "script": { - "id": "800b83fe-1984-44e9-b7b1-7cc0a28f862b", + "id": "ddd9602e-0a44-4978-b9f3-08078bc57267", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -4734,7 +4734,7 @@ { "listen": "test", "script": { - "id": "5168d825-7521-4096-82ab-4a734c23d311", + "id": "9408fe0c-3ae5-49e0-870c-4d9d74776752", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -4782,7 +4782,7 @@ { "listen": "test", "script": { - "id": "c2d4bdd9-e809-48e8-917b-1dc8f2ac173a", + "id": "1a9b8fd7-465a-4d23-9d57-41dc3cfcfe07", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -4830,7 +4830,7 @@ { "listen": "test", "script": { - "id": "601565ea-7a2a-4f72-a64f-2275a75ffc61", + "id": "f6899c0c-a465-4502-bd0b-43d1b9919d40", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -4873,7 +4873,7 @@ { "listen": "test", "script": { - "id": "62753907-b75f-4bc3-abd8-881dbff38635", + "id": "15fee902-d2f0-4ed2-a5fb-1f1a8912008a", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -4921,7 +4921,7 @@ { "listen": "test", "script": { - "id": "83852399-c54a-412c-b9e4-90d9d5c44d5c", + "id": "c82ae073-c7b9-4791-80d7-e05a4438b24b", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -4969,7 +4969,7 @@ { "listen": "test", "script": { - "id": "857151a3-dd38-4b3f-9343-4297b249d118", + "id": "d1e60fa2-9b24-4985-bdac-9ced84fd4500", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -5017,7 +5017,7 @@ { "listen": "test", "script": { - "id": "55e251ed-2e2d-4434-b7c2-ed9c08c1097d", + "id": "37bfe92f-6ea6-4a2a-8c5a-8afe504458c8", "exec": [ "pm.test(\"Status code is 404\", function () {", " pm.response.to.have.status(404);", @@ -5065,7 +5065,7 @@ { "listen": "test", "script": { - "id": "81940032-5691-4c98-92b9-af08c984895d", + "id": "bacfbb71-9110-4298-8368-e3cee23ba19b", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -5113,7 +5113,7 @@ { "listen": "test", "script": { - "id": "45353bde-07f1-402d-acd0-1c59651e6ccb", + "id": "340c60d2-ad84-4709-a5dd-229e5f4e2381", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -5168,7 +5168,7 @@ { "listen": "test", "script": { - "id": "c258e242-20b7-4866-b671-baa3224e8e9e", + "id": "d6deb5de-ac05-46ac-8e45-7285c6396785", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -5220,7 +5220,7 @@ { "listen": "test", "script": { - "id": "a97031d8-48c9-499a-b859-c76a467a2df5", + "id": "d30fc393-2b9d-45ea-bdb7-d1a1c646f181", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -5272,7 +5272,7 @@ { "listen": "test", "script": { - "id": "2abba223-a259-43ad-a5c2-dfec9d3270fe", + "id": "0f0a35b2-e95c-4de3-af8f-36fcc3c8a736", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -5324,7 +5324,7 @@ { "listen": "test", "script": { - "id": "a66fa06c-0733-4bc4-9c79-7d7946a2bc7d", + "id": "442bfeb0-411b-4d01-b16d-2e9c882332b4", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -5376,7 +5376,7 @@ { "listen": "test", "script": { - "id": "039329cc-a1fd-4e10-9631-2a7b65b3706e", + "id": "50a9cb54-8538-457b-bd83-12faa84f8be8", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -5428,7 +5428,7 @@ { "listen": "test", "script": { - "id": "3640a4e7-028c-41ee-ae7a-959678a86a21", + "id": "00be4ec4-ad0e-4899-931f-286137f086f1", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -5480,7 +5480,7 @@ { "listen": "test", "script": { - "id": "52e65c25-b252-4f93-abbb-ea8558097224", + "id": "80fda34b-55fd-48dc-bfbb-3ded32cc9fca", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -5532,7 +5532,7 @@ { "listen": "test", "script": { - "id": "9c2978ae-9df1-4f67-bd8c-cff3936afd71", + "id": "d6ab0b22-c684-48a7-a2e4-f831308e2d69", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -5584,7 +5584,7 @@ { "listen": "test", "script": { - "id": "22fdc6b0-918f-4367-b757-0d960d9a31a3", + "id": "bbc239ef-995a-40af-a82d-0c7c25c246dc", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -5631,7 +5631,7 @@ { "listen": "test", "script": { - "id": "1cca76dd-a70d-4055-8289-495161dfc3c1", + "id": "ae258d23-c2f9-46b8-b341-190ca778306e", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -5683,7 +5683,7 @@ { "listen": "test", "script": { - "id": "949210a3-f13d-40bb-8074-c6f9ce9f37bd", + "id": "c5e00496-1f66-44d7-9d63-0e67e247948a", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -5735,7 +5735,7 @@ { "listen": "test", "script": { - "id": "c6b8a0c9-8598-441b-8b96-a1af912eb798", + "id": "99fa5f41-a82f-45c6-8065-14b2c6e57a53", "exec": [ "pm.test(\"Status code is 404\", function () {", " pm.response.to.have.status(404);", @@ -5787,7 +5787,7 @@ { "listen": "test", "script": { - "id": "d696f6f0-0461-4729-b0ea-ca400bd11724", + "id": "d8f9c7cd-d534-4364-ad5a-30ea89b487c2", "exec": [ "pm.test(\"Status code is 409\", function () {", " pm.response.to.have.status(409);", @@ -5839,7 +5839,7 @@ { "listen": "test", "script": { - "id": "f8a069c2-16cc-4bd3-84b1-e6ac8f31d8f8", + "id": "674380b5-91f4-459b-9cc8-3d0c49558738", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -5891,7 +5891,7 @@ { "listen": "test", "script": { - "id": "b416db9f-43e5-45ed-b8e8-a743fdf72cf9", + "id": "cab780ad-f7e7-4b99-ba0a-b5039101c358", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -5950,7 +5950,7 @@ { "listen": "test", "script": { - "id": "63184fc8-43fe-4f50-9c45-fa487064c373", + "id": "320b6cb9-8551-4725-8cd9-aa2ed9bfc831", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -6002,7 +6002,7 @@ { "listen": "test", "script": { - "id": "199cabe7-6f31-42b6-bad4-184447eb8157", + "id": "c0c81092-553f-4e28-a853-8311c39fd667", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -6054,7 +6054,7 @@ { "listen": "test", "script": { - "id": "58063812-975a-41e7-a322-07e335a8ce4e", + "id": "d2db7a32-4f3c-40cc-bc00-f31fed6728a3", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -6106,7 +6106,7 @@ { "listen": "test", "script": { - "id": "2474977f-70a7-457a-970f-6721acfb84e5", + "id": "d46c1a4b-f894-4fb7-af77-badd1e8e0cce", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -6158,7 +6158,7 @@ { "listen": "test", "script": { - "id": "dfd172da-d2fc-4730-bb5f-d2c3d8a0cb0f", + "id": "922aaf10-b364-4594-a474-93fcd1b3aba3", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -6210,7 +6210,7 @@ { "listen": "test", "script": { - "id": "4e15f708-fa0c-42b8-8d33-4dafcc0baaab", + "id": "c074078c-7415-4599-bb50-b4c563c52ebb", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -6257,7 +6257,7 @@ { "listen": "test", "script": { - "id": "99e8dfe1-c27a-435a-a543-b95f0a029042", + "id": "9d8e1815-c384-4a57-875b-e4146d90a628", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -6309,7 +6309,7 @@ { "listen": "test", "script": { - "id": "bd962821-4170-47b9-932e-1d8db6482479", + "id": "2b0bb33f-0052-483d-8336-f7f2a1b1e30b", "exec": [ "pm.test(\"Status code is 404\", function () {", " pm.response.to.have.status(404);", @@ -6361,7 +6361,7 @@ { "listen": "test", "script": { - "id": "43cc6f46-2667-46da-a4bd-cca79d3dd231", + "id": "8149d873-63be-458c-92c1-a8b89ec354ee", "exec": [ "pm.test(\"Status code is 409\", function () {", " pm.response.to.have.status(409);", @@ -6413,7 +6413,7 @@ { "listen": "test", "script": { - "id": "773249fd-c549-4dd1-a9d8-05fd93a97ab5", + "id": "5b45a65d-8c7d-4db1-99f8-c181b97dc680", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -6465,7 +6465,7 @@ { "listen": "test", "script": { - "id": "18908ee4-fae6-4b67-b300-399d491f3e49", + "id": "5162f2a0-60eb-4fb0-8dec-e30ee0aeb487", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -6524,7 +6524,7 @@ { "listen": "test", "script": { - "id": "5ad7cc08-515d-41fa-afeb-80607649f365", + "id": "ebac858b-4d13-49f5-ab1b-acb5f40b4285", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -6576,7 +6576,7 @@ { "listen": "test", "script": { - "id": "55a657a5-e998-499d-9d09-50e56c355a14", + "id": "c7525707-7306-4233-ab64-afeea5b6a140", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -6628,7 +6628,7 @@ { "listen": "test", "script": { - "id": "7984cbfd-f32f-4532-9c77-201b57243e68", + "id": "ae6fd391-86f3-417e-9de6-321045e66e6a", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -6675,7 +6675,7 @@ { "listen": "test", "script": { - "id": "241be255-22aa-407f-a285-6fb714f4a730", + "id": "481c7c36-9a2a-4bf7-9805-e3b8fecf3415", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -6727,7 +6727,7 @@ { "listen": "test", "script": { - "id": "478ce90c-5999-4749-a54a-f001b8c25694", + "id": "3c0750ff-8cad-4692-b69c-67b70a901d3e", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -6779,7 +6779,7 @@ { "listen": "test", "script": { - "id": "4eae7fa3-ecbd-4f19-bff3-3fd82aed19ba", + "id": "ceb69b8a-58ca-4c8a-9c19-ef185bf19848", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -6831,7 +6831,7 @@ { "listen": "test", "script": { - "id": "9cc63404-ab89-46d8-a290-f9a34b9287c4", + "id": "d78c75a3-bfb7-426f-ad56-3d5fcb5ec4ad", "exec": [ "pm.test(\"Status code is 404\", function () {", " pm.response.to.have.status(404);", @@ -6883,7 +6883,7 @@ { "listen": "test", "script": { - "id": "d697b7b7-9b8a-4140-b7d0-3d3447e33f16", + "id": "0814f2ce-95b8-401d-956a-c3bca88667f7", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -6935,7 +6935,7 @@ { "listen": "test", "script": { - "id": "33ffaf03-275d-4c87-bdd2-e448b9c313fc", + "id": "56ca37f6-f15a-4f53-897b-d072e25716c7", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -7000,7 +7000,7 @@ { "listen": "test", "script": { - "id": "356f9de3-226b-44f7-9dba-8e646ed88c35", + "id": "801976d5-ee80-4b11-ad5a-0615d6a3912d", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -7052,7 +7052,7 @@ { "listen": "test", "script": { - "id": "1b2fe183-5e7a-4c7e-baa4-1bf6c520af90", + "id": "bdae57f5-5cbd-4208-93c6-7c2310c52303", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -7104,7 +7104,7 @@ { "listen": "test", "script": { - "id": "9a49a86f-029d-4b2e-978f-79c5aea6ec53", + "id": "05ab51d0-39e0-4b79-ac43-cc6ab96501d6", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -7156,7 +7156,7 @@ { "listen": "test", "script": { - "id": "e6787c0b-6b17-4dc0-a513-878c72ba3dd0", + "id": "b4eefaf8-028c-41e8-a40e-40430e98720f", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -7207,7 +7207,7 @@ { "listen": "test", "script": { - "id": "68304e02-d7cd-445d-810c-b829ac917434", + "id": "a13da9c0-bbe2-4d4e-846b-a7c4810e3882", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -7258,7 +7258,7 @@ { "listen": "test", "script": { - "id": "92ea75aa-3dab-4785-a3f2-2da110d8add9", + "id": "d59b2cfc-d0fb-4196-82f3-071ad73da79d", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -7309,7 +7309,7 @@ { "listen": "test", "script": { - "id": "8f107b55-cbc5-4953-b529-3182d7326633", + "id": "aeb67bf2-072a-4615-8b6b-7342f4d5f856", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -7360,7 +7360,7 @@ { "listen": "test", "script": { - "id": "cc3a9dbf-3c97-4500-94d3-b9e614996783", + "id": "01e6a698-f256-422e-b347-f919f44fc6ca", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -7411,7 +7411,7 @@ { "listen": "test", "script": { - "id": "a63d2b91-34dd-437b-9672-e34a838f4220", + "id": "865dfc94-6dd2-4273-bacf-23cf49ef64c8", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -7462,7 +7462,7 @@ { "listen": "test", "script": { - "id": "63eace08-a075-4ce6-a532-bba560fa749f", + "id": "b16a22a8-14cb-4cc1-a347-44a4876bf63f", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -7513,7 +7513,7 @@ { "listen": "test", "script": { - "id": "93a4ad24-91a8-4224-8f75-f546353a4f48", + "id": "b31d6434-1d96-4981-a2ed-e9ae8b5bccbe", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -7559,7 +7559,7 @@ { "listen": "test", "script": { - "id": "022d148e-240e-46f6-b566-10065cac456b", + "id": "9ee301d1-efbe-4ec8-b023-eb196d58b999", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -7610,7 +7610,7 @@ { "listen": "test", "script": { - "id": "4c9862c2-489d-4d95-a44f-40dee06b79e5", + "id": "1c1e1316-27b9-4657-bc67-41e4786533c6", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -7661,7 +7661,7 @@ { "listen": "test", "script": { - "id": "7460af74-20d3-4bcb-9877-a2802f71ea48", + "id": "e8361a63-1c50-400d-a999-1e8a55682ac9", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -7712,7 +7712,7 @@ { "listen": "test", "script": { - "id": "997e7a7e-652e-41f8-a790-ca729fcd3947", + "id": "6a58b6d7-f78f-4957-bb38-bc52875c3385", "exec": [ "pm.test(\"Status code is 409\", function () {", " pm.response.to.have.status(409);", @@ -7763,7 +7763,7 @@ { "listen": "test", "script": { - "id": "fb25f0bc-70ad-45cb-b7cd-460baf9050a5", + "id": "27fe5973-c2b9-4f79-869b-752b730a5394", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -7815,7 +7815,7 @@ { "listen": "test", "script": { - "id": "cceff0f6-0fec-4b56-a111-9c8704a9fa80", + "id": "66974d20-7895-418c-8564-0f25d571f882", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -7873,7 +7873,7 @@ { "listen": "test", "script": { - "id": "0704ea77-53e2-4974-aed7-d9ad8e22878a", + "id": "5298af86-17f9-4605-8267-65dddfc6adfc", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -7926,7 +7926,7 @@ { "listen": "test", "script": { - "id": "ef637b83-e73c-46bf-a3c2-17cda7033082", + "id": "000d608f-2cbe-4c54-a86a-637736dcba31", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -7983,7 +7983,7 @@ { "listen": "test", "script": { - "id": "7c873833-172f-4322-8baa-5fcf979af997", + "id": "6d996506-0c15-40be-bd21-925f3e9e6da2", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -8036,7 +8036,7 @@ { "listen": "test", "script": { - "id": "57aff363-e4c6-42ae-a054-7a858d443725", + "id": "9ce752a9-7fa5-4c36-957c-e5bfaa50f321", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -8096,7 +8096,7 @@ { "listen": "test", "script": { - "id": "2125bd63-0401-44ed-8cc8-13a472614b6c", + "id": "7e66abff-73a6-4e9d-aaa7-af7e0769533c", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -8144,7 +8144,7 @@ { "listen": "test", "script": { - "id": "22cc05c4-d6ec-4274-aa46-b97b52277d9d", + "id": "a66344d8-01a6-4c1f-a643-e1aae1fef55c", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -8192,7 +8192,7 @@ { "listen": "test", "script": { - "id": "7da07fe3-de8f-4494-8dc0-2d73904191a1", + "id": "e67ee09e-5f5e-44d3-9e33-3cbcdc2f5ce1", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -8240,7 +8240,7 @@ { "listen": "test", "script": { - "id": "09f55d8e-8752-427a-871b-34859ad58478", + "id": "4626d360-b053-41d0-a076-4ff1d9679b7d", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -8288,7 +8288,7 @@ { "listen": "test", "script": { - "id": "5fbd7e16-3b88-480e-9521-59fd05c4b252", + "id": "1c655819-007c-43ea-a950-08f7a7119fe1", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -8336,7 +8336,7 @@ { "listen": "test", "script": { - "id": "310b0c9c-5c10-4599-a91e-a851264ceb68", + "id": "544f6732-28e5-41d1-bf85-bc9229df2d2c", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -8379,7 +8379,7 @@ { "listen": "test", "script": { - "id": "e787705e-072f-46e6-943c-18dfcea4211b", + "id": "a4246269-159a-4209-8719-531afa7a9b0c", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -8427,7 +8427,7 @@ { "listen": "test", "script": { - "id": "d7114e40-418e-40c6-b6c9-e5af54afab19", + "id": "cd45840a-0d4a-4fcd-bc6a-b425e692d43e", "exec": [ "pm.test(\"Status code is 404\", function () {", " pm.response.to.have.status(404);", @@ -8475,7 +8475,7 @@ { "listen": "test", "script": { - "id": "191a7937-5ddb-4d4c-8e53-0771b838b40b", + "id": "47a31357-966f-41e4-8384-402fff5a599a", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -8523,7 +8523,7 @@ { "listen": "test", "script": { - "id": "029e29ad-d67d-4534-a240-0fb61f76eddd", + "id": "10e5a882-d5d3-4b49-96f0-6df8f42ac873", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -8578,7 +8578,7 @@ { "listen": "test", "script": { - "id": "b981fbf8-7fc9-4dd3-a857-8ae42724940b", + "id": "5f3f8a6a-d4f7-4609-8de7-c34635182a7e", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -8630,7 +8630,7 @@ { "listen": "test", "script": { - "id": "0f653b74-1644-4c89-a3f2-359b677a0b41", + "id": "692a203c-3405-44c8-89a9-082dec3a46e9", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -8682,7 +8682,7 @@ { "listen": "test", "script": { - "id": "9d1ebc59-cfdc-467f-8aab-d12d44cc2087", + "id": "344d67ee-8072-4cd7-abcd-b084131b2acc", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -8734,7 +8734,7 @@ { "listen": "test", "script": { - "id": "b0b8891a-402e-4b67-8083-eac8b0cdd403", + "id": "9ce71182-dad2-4773-a095-32e1c5de8cfb", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -8786,7 +8786,7 @@ { "listen": "test", "script": { - "id": "a95c2bd4-0fd6-4a66-8fee-08eacdb070b8", + "id": "e8c099b5-4875-4a79-821b-927fee5e8282", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -8838,7 +8838,7 @@ { "listen": "test", "script": { - "id": "9a0b3b78-bf8f-4c77-a641-bac47ce11ba4", + "id": "6e729cfc-64c8-4b96-ad6d-bd8d16dbee6c", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -8890,7 +8890,7 @@ { "listen": "test", "script": { - "id": "ee943d15-195b-443c-ab38-735d549778e7", + "id": "825a0b4b-14c0-4269-bc6f-da874c008e77", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -8942,7 +8942,7 @@ { "listen": "test", "script": { - "id": "a4cc655d-93e4-4ca1-9159-2bd5656deab6", + "id": "34781614-1dc7-407e-b755-2fb8f5fb70e4", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -8989,7 +8989,7 @@ { "listen": "test", "script": { - "id": "03a4ab67-abbc-4512-8c8e-572946b2cf88", + "id": "c96dad09-c484-45b9-8561-e5c974cddccc", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -9041,7 +9041,7 @@ { "listen": "test", "script": { - "id": "9c94ff10-cee6-429e-a2e8-d9d6696ea074", + "id": "cc9a7a26-cffd-498a-8e98-44199cfad323", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -9093,7 +9093,7 @@ { "listen": "test", "script": { - "id": "f0feb631-8e8e-413e-acfe-70555052e3fc", + "id": "c91a908d-9117-44e3-82d0-561bd0a90697", "exec": [ "pm.test(\"Status code is 404\", function () {", " pm.response.to.have.status(404);", @@ -9145,7 +9145,7 @@ { "listen": "test", "script": { - "id": "615eeff4-3298-4abb-a1c6-d9200f529475", + "id": "27f12f7c-ef07-4105-82cc-4d83986643ec", "exec": [ "pm.test(\"Status code is 409\", function () {", " pm.response.to.have.status(409);", @@ -9197,7 +9197,7 @@ { "listen": "test", "script": { - "id": "5612ac90-c5ab-453e-bde7-27792a10f363", + "id": "216f00e2-d460-486e-87e2-5d5463285a53", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -9249,7 +9249,7 @@ { "listen": "test", "script": { - "id": "919a6c07-4946-4838-82e9-4f86bc97fb5a", + "id": "c266029d-8312-4309-a05a-d0234e11ab3c", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -9308,7 +9308,7 @@ { "listen": "test", "script": { - "id": "134f091c-60fb-4492-b32c-43f603f30142", + "id": "86f9fa22-1b50-4662-a2e1-0d7a6d8d197c", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -9360,7 +9360,7 @@ { "listen": "test", "script": { - "id": "6ae2f4b9-91c3-4568-9d3d-8464d76f7891", + "id": "85cbbdce-88d8-4199-ba3e-da5708435f70", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -9412,7 +9412,7 @@ { "listen": "test", "script": { - "id": "23120e86-72ad-438e-b984-c65154858213", + "id": "70435ddd-d860-4955-9e79-a4c276a70f3d", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -9464,7 +9464,7 @@ { "listen": "test", "script": { - "id": "35a076e7-3060-4421-805b-a0cc5d1e9b53", + "id": "d58c6159-7fb2-4f61-a1d3-c5bba1979dfa", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -9516,7 +9516,7 @@ { "listen": "test", "script": { - "id": "7d95252a-ee5c-4d27-a858-7650c54a947e", + "id": "7c23a962-6f48-4eeb-9c05-2264aa4fad91", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -9568,7 +9568,7 @@ { "listen": "test", "script": { - "id": "1a6d9763-308b-46cf-892f-398d8ec91432", + "id": "9a31bd4b-fc94-4107-90f9-17ada1e2df4b", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -9620,7 +9620,7 @@ { "listen": "test", "script": { - "id": "2ee727ad-79cd-4945-b8a7-4dddfee4faef", + "id": "5900bae5-73a0-487f-825e-14b83d44ef1a", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -9672,7 +9672,7 @@ { "listen": "test", "script": { - "id": "82299ba6-bb4e-4b40-b92f-645081288299", + "id": "5a85c893-c4e0-464a-8181-a48060d128ae", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -9724,7 +9724,7 @@ { "listen": "test", "script": { - "id": "ce9a17fd-c097-4b0c-a0c1-076f459e6dbb", + "id": "1338a4d1-7ed4-4468-b31c-47e75f115239", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -9776,7 +9776,7 @@ { "listen": "test", "script": { - "id": "a742664e-0780-4274-a408-209b8df3d872", + "id": "afad8189-b0d4-4126-9176-67c611dc7917", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -9828,7 +9828,7 @@ { "listen": "test", "script": { - "id": "4e0020a0-7f25-4eaa-a2fa-cc12caa49a14", + "id": "9c2275b8-a172-448f-8d06-b6427794c86f", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -9880,7 +9880,7 @@ { "listen": "test", "script": { - "id": "f67e21ea-5b37-49a3-811f-cd04ef23c0d1", + "id": "319da5fc-2124-467a-bc5e-67c16241dd82", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -9927,7 +9927,7 @@ { "listen": "test", "script": { - "id": "8fe9916d-e670-4e82-908a-70de3fc8a195", + "id": "03df0f42-abae-4891-a22c-708df94500f7", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -9979,7 +9979,7 @@ { "listen": "test", "script": { - "id": "0ea1eeaf-55f9-4392-8a4b-fa000573ac4d", + "id": "c4320c9f-f0ff-4499-8450-8e070a1ccf46", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -10031,7 +10031,7 @@ { "listen": "test", "script": { - "id": "44b45e51-abe6-4734-b653-2bd839361b1d", + "id": "aa6a66a1-41c3-4064-8526-6136ff4cf5e7", "exec": [ "pm.test(\"Status code is 404\", function () {", " pm.response.to.have.status(404);", @@ -10083,7 +10083,7 @@ { "listen": "test", "script": { - "id": "db72d7df-411e-4cf5-8793-519bf46a02f4", + "id": "a6b65934-3369-4601-ad1a-6d1ac414d652", "exec": [ "pm.test(\"Status code is 409\", function () {", " pm.response.to.have.status(409);", @@ -10135,7 +10135,7 @@ { "listen": "test", "script": { - "id": "68ef880d-e2a5-4e5e-8bd2-912322fdb998", + "id": "2b44aa6d-a894-4005-97d3-9360f452c442", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -10187,7 +10187,7 @@ { "listen": "test", "script": { - "id": "44254db7-e8a1-4daf-8dc0-597b7143af40", + "id": "b986a81e-a11d-44fe-9f05-aacf3fb16e3e", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -10246,7 +10246,7 @@ { "listen": "test", "script": { - "id": "418e2504-291f-4e1a-89c2-ae9ec157c1b5", + "id": "063dc090-5b5d-4bcc-8a85-753d3895d828", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -10298,7 +10298,7 @@ { "listen": "test", "script": { - "id": "46c447ce-ef99-4387-90cf-9ddaf487fb03", + "id": "ce624608-89f2-4140-80fe-d8e938d4b5cf", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -10350,7 +10350,7 @@ { "listen": "test", "script": { - "id": "3d5d6707-2cdf-46bb-8e17-23e92a1a2edc", + "id": "5b5dae26-5cf8-45cd-8491-8d354e00a5e0", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -10397,7 +10397,7 @@ { "listen": "test", "script": { - "id": "7775c690-277e-4cd6-a7a2-870d07f9a075", + "id": "0d875eec-f5d2-4f07-8b88-da6c01e56021", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -10449,7 +10449,7 @@ { "listen": "test", "script": { - "id": "ad758e15-21a5-4226-9bb7-2fa3eab4138a", + "id": "5566fc11-9074-41bf-b4be-895f39f82732", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -10501,7 +10501,7 @@ { "listen": "test", "script": { - "id": "1c14a472-ba44-4520-9697-6bca00df5dd3", + "id": "7fa3118d-fe8d-4698-a53a-0daa0d9d47cc", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -10553,7 +10553,7 @@ { "listen": "test", "script": { - "id": "9b8b8072-7a3c-4c95-a886-0fe8904a155e", + "id": "4b3be781-7b41-442b-8e89-d20008a300b8", "exec": [ "pm.test(\"Status code is 404\", function () {", " pm.response.to.have.status(404);", @@ -10605,7 +10605,7 @@ { "listen": "test", "script": { - "id": "01611123-2216-4e76-98ae-272dd0611fad", + "id": "089d3fc1-41bc-45ea-8d86-213196711793", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -10657,7 +10657,7 @@ { "listen": "test", "script": { - "id": "89e74c8d-bf01-46cc-9504-b827df39fa2e", + "id": "ee3a814b-b5ad-416c-a997-dabe7ff5d9b1", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -10722,7 +10722,7 @@ { "listen": "test", "script": { - "id": "c7379e76-4f49-4cfa-96d6-51627c185205", + "id": "f22b49a3-a28b-4e6f-901f-92bb23adf37e", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -10774,7 +10774,7 @@ { "listen": "test", "script": { - "id": "9c1d08e5-5fe5-4584-8435-e2e9ea389ade", + "id": "b1fe139f-da94-4016-8204-8c3f40e29ca6", "exec": [ "pm.test(\"Status code is 409\", function () {", " pm.response.to.have.status(409);", @@ -10825,7 +10825,7 @@ { "listen": "test", "script": { - "id": "2f9f31f6-7d25-453f-a0ec-b894516e8a8f", + "id": "e186a5ce-5062-4157-bd58-0e1d5c85746c", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -10876,7 +10876,7 @@ { "listen": "test", "script": { - "id": "30429989-82bd-4fb6-bf74-178e59e12f31", + "id": "25ddb709-9c71-4411-8fec-8aa9d2b2f931", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -10927,7 +10927,7 @@ { "listen": "test", "script": { - "id": "7835e224-7e63-44aa-9038-229971714f06", + "id": "95d3e29e-8540-48e2-bd9d-f00efedd5e58", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -10978,7 +10978,7 @@ { "listen": "test", "script": { - "id": "80ef1ef5-0ce7-4564-ab3f-656fea1e824b", + "id": "ee4be10d-e2bd-48bd-ad60-610e9c32fe2d", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -11029,7 +11029,7 @@ { "listen": "test", "script": { - "id": "cce21a35-bb71-4444-9dfb-cee8a440b3f2", + "id": "f1c1d3bc-e01d-4986-9f1c-bccac6269b37", "exec": [ "pm.test(\"Status code is 404\", function () {", " pm.response.to.have.status(404);", @@ -11080,7 +11080,7 @@ { "listen": "test", "script": { - "id": "8c9ca86f-1ab0-4a63-bc74-a4a693ecf364", + "id": "2ac76995-b499-4799-b539-057c3d07f00e", "exec": [ "pm.test(\"Status code is 404\", function () {", " pm.response.to.have.status(404);", @@ -11131,7 +11131,7 @@ { "listen": "test", "script": { - "id": "437739a9-b42e-4201-897f-7acb0a499527", + "id": "76732b61-1105-4bd2-91d3-a756d15ce44e", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -11182,7 +11182,7 @@ { "listen": "test", "script": { - "id": "cf2c960e-04a9-4e29-84dc-10e9c2948a35", + "id": "8d98bdb5-d2fb-4652-8138-8d7b05d67b1a", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -11228,7 +11228,7 @@ { "listen": "test", "script": { - "id": "24fdb396-e5c3-426a-817a-5a438777ad54", + "id": "0491df30-4446-412a-8446-935cc951d7ba", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -11279,7 +11279,7 @@ { "listen": "test", "script": { - "id": "0b7bcd9e-fea6-447a-8c06-b3db7da413ed", + "id": "7b894af9-7d1e-43cf-ad64-ce9711550f9b", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -11330,7 +11330,7 @@ { "listen": "test", "script": { - "id": "8017dd22-fe43-4c00-bf2c-8ca341d52f81", + "id": "ee669706-0adb-4fb1-8487-f1813aa857b4", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -11381,7 +11381,7 @@ { "listen": "test", "script": { - "id": "1d458139-7f83-4676-a650-0e900c035f82", + "id": "cd3900cc-1b85-404d-99ce-0255d145fdb6", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -11431,7 +11431,7 @@ { "listen": "prerequest", "script": { - "id": "b417844c-52e2-4549-8fbf-3be3f34f1695", + "id": "aee82d8a-4f87-4617-8072-53e340caed4c", "type": "text/javascript", "exec": [ "" @@ -11441,7 +11441,7 @@ { "listen": "test", "script": { - "id": "3a989eb9-dca5-4da2-b465-d2b621908965", + "id": "b090cbb6-53bc-4e35-abf9-d902e2c08483", "type": "text/javascript", "exec": [ "" @@ -11461,7 +11461,7 @@ { "listen": "test", "script": { - "id": "99655516-83e0-4e9e-8e63-36b2caaa41d3", + "id": "67492d30-5864-452c-b4ec-98ba532377b1", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -11518,7 +11518,7 @@ { "listen": "test", "script": { - "id": "e0954854-8c18-4076-8745-36e275b95ba0", + "id": "e92feb13-39b2-4a79-81e8-9e8b5ed4600d", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -11575,7 +11575,7 @@ { "listen": "test", "script": { - "id": "5c5b2ce2-199e-4337-8e6e-44788085ca78", + "id": "dafdfdea-c2a9-40fc-9d4a-cf08dfff3e92", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -11633,7 +11633,7 @@ { "listen": "test", "script": { - "id": "30051dbb-df1f-455a-b0aa-ee480c88ad25", + "id": "27470a43-d095-4471-bffa-e76a6f3aef83", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -11686,7 +11686,7 @@ { "listen": "test", "script": { - "id": "3ebe1be9-6888-4f6b-9d6b-fce29facf6f6", + "id": "b1a576a7-16ab-418a-9b4d-23c2c9e57533", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -11738,7 +11738,7 @@ { "listen": "prerequest", "script": { - "id": "631844eb-dcfa-4c8c-85bd-8d32a5e9f45e", + "id": "aa5594fe-6082-4f3e-b893-5d7a37480fc7", "type": "text/javascript", "exec": [ "" @@ -11748,7 +11748,7 @@ { "listen": "test", "script": { - "id": "3c580718-571d-401e-8fb4-7852def6ec3d", + "id": "03085f59-0147-4240-ba22-444c205de47a", "type": "text/javascript", "exec": [ "" @@ -11768,7 +11768,7 @@ { "listen": "test", "script": { - "id": "b618ed94-00c6-4328-b1e2-c560f4d15200", + "id": "521308c5-c38d-42d4-8f81-d4ac481ffc5e", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -11816,7 +11816,7 @@ { "listen": "test", "script": { - "id": "acfef251-a594-4dfc-b8b4-81397a966fda", + "id": "006a8a58-23ac-444d-9146-cc2cf7d02423", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -11864,7 +11864,7 @@ { "listen": "test", "script": { - "id": "3f7f2b97-eba8-40a9-af4d-2cf86faecd2d", + "id": "0bbf95e8-e406-406e-8460-e8ef6b0f6599", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -11912,7 +11912,7 @@ { "listen": "test", "script": { - "id": "b617cb1a-565b-4861-9ed0-3cc572895567", + "id": "5c995e98-8c08-453f-b2fc-090783b592a7", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -11960,7 +11960,7 @@ { "listen": "test", "script": { - "id": "115e3f2f-f566-4271-9546-5084490a1d87", + "id": "02e4dcb3-cf78-4020-af43-1e1d714f515c", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -12008,7 +12008,7 @@ { "listen": "test", "script": { - "id": "e6b58cbd-4720-4137-ab53-af1c7edc4f17", + "id": "4b56a75c-2bcb-4b09-9131-05accab18414", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -12056,7 +12056,7 @@ { "listen": "test", "script": { - "id": "3c459642-2794-4411-a9e7-a49e933dc6b9", + "id": "4cbd3c2b-5011-41cb-8432-3df4f2e7c43a", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -12099,7 +12099,7 @@ { "listen": "test", "script": { - "id": "ed098431-cfce-4ab3-848b-e7c906a7db71", + "id": "6c4bd24e-632d-4a01-b7e8-608e6e97c7a6", "exec": [ "pm.test(\"Status code is 404\", function () {", " pm.response.to.have.status(404);", @@ -12147,7 +12147,7 @@ { "listen": "test", "script": { - "id": "4ec21ec7-357f-4b52-96c0-e6e69aee241b", + "id": "79d567f6-2ec7-4575-a2a5-7fe18117438e", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -12194,7 +12194,7 @@ { "listen": "prerequest", "script": { - "id": "8aba738c-50ce-4356-81a2-2f810a004be4", + "id": "e4d30b2d-7f94-4e20-9640-deff6f953e3b", "type": "text/javascript", "exec": [ "" @@ -12204,7 +12204,7 @@ { "listen": "test", "script": { - "id": "1252d5fe-c759-4363-8f4e-864bcc645588", + "id": "38aec374-0b0d-4925-b107-f9a45084c9bc", "type": "text/javascript", "exec": [ "" @@ -12224,7 +12224,7 @@ { "listen": "test", "script": { - "id": "19b51818-bb0f-4b8b-b775-e7765cfe7ecb", + "id": "52ff7817-af2c-4963-a042-6bb00885ce3c", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -12276,7 +12276,7 @@ { "listen": "test", "script": { - "id": "0bee3a16-804e-4dad-979d-b0740f388175", + "id": "c4ae6b07-599e-4cb6-b08f-e5512cb9beab", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -12328,7 +12328,7 @@ { "listen": "test", "script": { - "id": "64479c71-fee4-44f3-be77-e35aa1d3e206", + "id": "3790a7cf-7c0f-4426-aaf5-abacb6dd6216", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -12375,7 +12375,7 @@ { "listen": "test", "script": { - "id": "d7c961ba-3e9d-4e49-a8be-032b66232384", + "id": "b63be1a0-8c74-4a0d-9a49-3b58efd52782", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -12427,7 +12427,7 @@ { "listen": "test", "script": { - "id": "72963ccc-4703-4ed3-a6d5-ada48c470168", + "id": "05957837-38a9-4d42-a9d8-65976a68795f", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -12479,7 +12479,7 @@ { "listen": "test", "script": { - "id": "dedd336a-b111-449f-8103-10e877946ca7", + "id": "89e2419b-19bf-4449-8daa-f2e2ca280f8d", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -12531,7 +12531,7 @@ { "listen": "test", "script": { - "id": "b2767eca-0cf7-4bce-9ccc-0f3d20d3f90f", + "id": "da180e96-8548-49c9-9bfa-6a3159af453f", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -12583,7 +12583,7 @@ { "listen": "test", "script": { - "id": "d2fb5949-2add-4d2a-9943-b07b84275b3d", + "id": "edc2e5b9-3806-4e8f-be8f-253bdfeb53ca", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -12635,7 +12635,7 @@ { "listen": "test", "script": { - "id": "22fee89d-2c23-450b-b0bb-35ce2bbabac5", + "id": "a809c8ba-4f79-443d-8699-725a63a966ce", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -12687,7 +12687,7 @@ { "listen": "test", "script": { - "id": "0c68cefc-51ca-440f-a9b5-c9d205778b7d", + "id": "6ee03a14-d458-4e26-8cbf-1653ddee61a3", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -12739,7 +12739,7 @@ { "listen": "test", "script": { - "id": "9782623e-81f4-41b4-b3a9-0a4ae4aa12af", + "id": "99f46bde-a8f6-4308-83f5-c18e4a1b7ace", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -12791,7 +12791,7 @@ { "listen": "test", "script": { - "id": "84a5ccc8-c718-481e-ae16-e428f0c214ca", + "id": "cebac88b-9ac3-4261-9c87-e2efbb6e9d6e", "exec": [ "pm.test(\"Status code is 404\", function () {", " pm.response.to.have.status(404);", @@ -12843,7 +12843,7 @@ { "listen": "test", "script": { - "id": "c934ace4-ae90-440a-8aa7-f8e11ab0c0b3", + "id": "2d0cccf6-55e9-43c2-b2ee-38f156203b9c", "exec": [ "pm.test(\"Status code is 404\", function () {", " pm.response.to.have.status(404);", @@ -12895,7 +12895,7 @@ { "listen": "test", "script": { - "id": "e4ad4a19-1909-49b1-ba8e-e63df263a9a4", + "id": "cb0323bf-60cf-4225-b291-2bf90c60c1df", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -12947,7 +12947,7 @@ { "listen": "test", "script": { - "id": "8f4ed876-33e9-4745-a9c8-fb890ba84f93", + "id": "933ed4ee-ff74-4d7b-9a3e-0768e4af97f2", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -12999,7 +12999,7 @@ { "listen": "test", "script": { - "id": "b1bf824d-613e-4df1-abb1-15bf2ce89113", + "id": "47c9d74e-a849-4544-a8f3-102b0111e117", "exec": [ "pm.test(\"Status code is 404\", function () {", " pm.response.to.have.status(404);", @@ -13051,7 +13051,7 @@ { "listen": "test", "script": { - "id": "f08ab617-01c3-4c98-ad34-b41fff72c021", + "id": "33c50e25-ed97-4c90-a42d-188b1c964bb1", "exec": [ "pm.test(\"Status code is 409\", function () {", " pm.response.to.have.status(409);", @@ -13102,7 +13102,7 @@ { "listen": "prerequest", "script": { - "id": "b19f8cb1-cd92-4338-9cab-8bf1cd22ca98", + "id": "f3e1b486-13ca-43d8-a899-215c62dc5f07", "type": "text/javascript", "exec": [ "" @@ -13112,7 +13112,7 @@ { "listen": "test", "script": { - "id": "71a8974a-adb7-4aff-aa1e-7b4338257685", + "id": "071768e1-d45c-4273-b975-11a8ee777d5c", "type": "text/javascript", "exec": [ "" @@ -13132,7 +13132,7 @@ { "listen": "test", "script": { - "id": "2af78f51-6770-4e73-b7d1-5c26e1d3adf1", + "id": "847fe282-3403-4c5e-b479-a26f9f4e1aa5", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -13184,7 +13184,7 @@ { "listen": "test", "script": { - "id": "1a691d23-18b4-420b-a975-9c9eda9b863e", + "id": "506b4f35-23fd-478f-89e1-ee1690b71d62", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -13231,7 +13231,7 @@ { "listen": "test", "script": { - "id": "fdce1957-4770-4568-9383-3ec56edf53d7", + "id": "d42fd7bf-1fea-46f1-9e84-415a3bd56f2e", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -13283,7 +13283,7 @@ { "listen": "test", "script": { - "id": "0678b1ed-9c06-49e5-ba4c-3d84adccdb3d", + "id": "a51f8e68-4fb4-4d39-9bb1-a2bd8278bdc1", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -13335,7 +13335,7 @@ { "listen": "test", "script": { - "id": "d9faa9a7-a50c-423f-9a0c-dc225d859db4", + "id": "474a42f9-844f-4a8d-81ae-0597f7aacb98", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -13387,7 +13387,7 @@ { "listen": "test", "script": { - "id": "6c98050a-eca3-4e5d-97e8-e5109f069ebe", + "id": "ce427de5-37f9-4eec-9ed6-9ed847295a01", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -13439,7 +13439,7 @@ { "listen": "test", "script": { - "id": "3e2facf8-caba-420f-8d8f-e136a04a35e8", + "id": "90704e62-ddbb-4319-aa87-9342a35bc927", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -13491,7 +13491,7 @@ { "listen": "test", "script": { - "id": "ab03fa42-1922-40fc-a0bc-1d5c6d2a355e", + "id": "afd736d3-7ab7-4948-9a22-f86985d42532", "exec": [ "pm.test(\"Status code is 404\", function () {", " pm.response.to.have.status(404);", @@ -13542,7 +13542,7 @@ { "listen": "prerequest", "script": { - "id": "4edae14a-2bf7-4cce-b972-0d7e721373e6", + "id": "4b162b15-e34c-4331-9b0f-ecc45e0ef7fb", "type": "text/javascript", "exec": [ "" @@ -13552,7 +13552,7 @@ { "listen": "test", "script": { - "id": "ddb9cfe2-fe4d-421b-a8e3-2bfcb9df2318", + "id": "8f5afb71-c79d-470b-ac77-748884b652c6", "type": "text/javascript", "exec": [ "" @@ -13568,7 +13568,7 @@ { "listen": "prerequest", "script": { - "id": "cff0745b-2efe-4765-8cec-9936c3b9aa66", + "id": "4ef0563a-5e4d-4258-a8e4-299567beb7c8", "type": "text/javascript", "exec": [ "" @@ -13578,7 +13578,7 @@ { "listen": "test", "script": { - "id": "04d917af-bb93-4606-a235-02a078ef8e1d", + "id": "7226fa42-e6c1-4693-8b3f-367d0325216f", "type": "text/javascript", "exec": [ "" @@ -13600,7 +13600,7 @@ { "listen": "test", "script": { - "id": "8a119f78-ede0-48c3-a60c-03583b41ca01", + "id": "90838f17-9d16-44e3-a542-a605a1d006b3", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -13652,7 +13652,7 @@ { "listen": "test", "script": { - "id": "1a0dae36-cb80-4095-b640-7d55235bdcc5", + "id": "d8479a57-7567-49ad-a7bb-a8ede826540a", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -13704,7 +13704,7 @@ { "listen": "test", "script": { - "id": "9f7202a4-c3f8-4ec7-aece-a2e86872cfcf", + "id": "b50a1067-ee66-4748-8096-1df2444f0c52", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -13755,7 +13755,7 @@ { "listen": "test", "script": { - "id": "2c6f2b78-0927-4d1b-b6ed-f74d8698db6a", + "id": "e37deb12-4d99-4dd1-a011-86ea0c8cc831", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -13806,7 +13806,7 @@ { "listen": "test", "script": { - "id": "b5552b33-c66b-41c7-873b-26773525556b", + "id": "6a58eee1-4f6b-4d45-84c4-a5859f345acb", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -13857,7 +13857,7 @@ { "listen": "test", "script": { - "id": "93ae5a47-2bf4-4e8a-9208-3a8ddbd2e83a", + "id": "4c1fde06-e2a6-4168-88f0-31f591574832", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -13908,7 +13908,7 @@ { "listen": "test", "script": { - "id": "fb8b24d1-fa5e-48c9-a637-fb4434491b25", + "id": "8a207a51-fed2-4dde-ba4b-0ba8210336a2", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -13959,7 +13959,7 @@ { "listen": "test", "script": { - "id": "af666947-cb80-4e69-bb9a-e1be6b515f7e", + "id": "d7285b28-3a5d-4172-b9a9-507763cb3795", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -14010,7 +14010,7 @@ { "listen": "test", "script": { - "id": "b1e7ab2b-e62c-47d8-bada-5adbb43d61c7", + "id": "5e0fcfd5-91e6-45ac-974f-c7dbfb8d8b65", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -14061,7 +14061,7 @@ { "listen": "test", "script": { - "id": "a24cefc5-094d-4961-a81c-eee39df47fd4", + "id": "c48d83c5-a06e-4926-a0b0-899c8456ea7d", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -14112,7 +14112,7 @@ { "listen": "test", "script": { - "id": "b9099af6-47c6-4dd1-b6c9-725ce7e27055", + "id": "cb73f449-f360-406c-85fc-8c11367843ec", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -14163,7 +14163,7 @@ { "listen": "test", "script": { - "id": "434fd854-7c6e-4ccf-b576-511ffa1e98c7", + "id": "c63a12b4-5310-48ac-ad90-5a19cc3ed5f3", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -14214,7 +14214,7 @@ { "listen": "test", "script": { - "id": "9c1202bd-92f3-4077-ad93-94b46113421c", + "id": "a34822df-bb7d-427f-abd4-d74cb64db9fa", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -14265,7 +14265,7 @@ { "listen": "test", "script": { - "id": "f8939010-6122-4533-bcfc-fb118ad32486", + "id": "0fc92d98-2a34-4d8e-a2fe-2fdb31383991", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -14316,7 +14316,7 @@ { "listen": "test", "script": { - "id": "ad12fed2-8b57-472c-8dde-81c1c6f78eb7", + "id": "2272aa43-1a06-4435-87e6-01f1a91f0643", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -14367,7 +14367,7 @@ { "listen": "test", "script": { - "id": "26b260e6-d160-4714-93ad-b278cd10e740", + "id": "5b4268dd-078d-4a44-8611-e1194b313ac5", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -14418,7 +14418,7 @@ { "listen": "test", "script": { - "id": "c4a7e4c9-f9f3-4b4c-a100-e20b76918a22", + "id": "12934090-d3fa-4b38-b171-6c3a73cb95a1", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -14469,7 +14469,7 @@ { "listen": "test", "script": { - "id": "41dc865b-3c78-41fc-a2e3-efb418165cbd", + "id": "6b9e14ec-28d5-470c-8fc0-e524f5b648b0", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -14520,7 +14520,7 @@ { "listen": "test", "script": { - "id": "6a087c46-b201-4ed2-b67a-7332a4fcf077", + "id": "8b521dce-3d4e-475c-9fc8-d85d265c156b", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -14571,7 +14571,7 @@ { "listen": "test", "script": { - "id": "f5bcdef5-8582-4903-8dc4-4870c1cd1555", + "id": "b62e7754-a92a-48ef-8c11-de81be156ae4", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -14622,7 +14622,7 @@ { "listen": "test", "script": { - "id": "bd80ce0f-ec43-43b8-a837-00312e60c29b", + "id": "8523dfef-2d01-4fc1-a3e9-b7c8abe2b5a4", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -14673,7 +14673,7 @@ { "listen": "test", "script": { - "id": "b120963b-c9f8-41f8-bd5b-d644cb618b84", + "id": "156c2fb7-c67d-4570-a4d6-8f110a4b5809", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -14719,7 +14719,7 @@ { "listen": "test", "script": { - "id": "53582454-8f60-4dcf-a3b4-2f80cf95462c", + "id": "973683f9-008e-42e8-ae91-96f08eaabe67", "exec": [ "pm.test(\"Status code is 201\", function () {", " pm.response.to.have.status(201);", @@ -14771,7 +14771,7 @@ { "listen": "test", "script": { - "id": "54ae5eb4-dc21-4bba-bf4b-0410f68bfc3b", + "id": "20614dda-c8db-4fc5-8223-149e3822a0d2", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -14822,7 +14822,7 @@ { "listen": "test", "script": { - "id": "ccbf5e6d-2bb1-4613-a780-8afaa5b28bed", + "id": "1f20e8f5-7cdd-45b5-a9ae-faadbd506035", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -14880,7 +14880,7 @@ { "listen": "test", "script": { - "id": "1e0432ca-ca81-4ce7-a3ad-83f9115cc72b", + "id": "bd2ce7ec-81bb-43ef-8764-e649f6d4cc81", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -14930,7 +14930,7 @@ { "listen": "test", "script": { - "id": "8d09a1fd-8497-4e23-a728-eeafd5fd5472", + "id": "65e0495a-20d5-440d-a882-10ee5b4f035f", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -14980,7 +14980,7 @@ { "listen": "test", "script": { - "id": "27118109-2b1f-4a76-851b-b33d527e350b", + "id": "c8ac5d48-b6bb-4927-9053-93e81c936104", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -15029,7 +15029,7 @@ { "listen": "test", "script": { - "id": "c10b5b84-a740-416c-a830-007bdab4ee91", + "id": "f6556e7d-a7a6-46bd-b01d-ae7043a1ca7d", "exec": [ "pm.test(\"Status code is 404\", function () {", " pm.response.to.have.status(404);", @@ -15078,7 +15078,7 @@ { "listen": "test", "script": { - "id": "8c276f21-6ba3-4c71-87ef-832f69950301", + "id": "b0ed7373-a7e4-4516-b015-5e0392f1a59b", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -15127,7 +15127,7 @@ { "listen": "test", "script": { - "id": "e846bd45-688f-4d3a-abdc-0cef4186e82f", + "id": "78300283-fc81-407c-9ed4-53b001acc5f0", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -15170,7 +15170,7 @@ { "listen": "test", "script": { - "id": "8c3721b2-879b-4298-a816-4306452d2e4c", + "id": "6bd7e45c-5ea3-4a52-b861-8f9cbf93335c", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -15219,7 +15219,7 @@ { "listen": "test", "script": { - "id": "013e955e-0654-46f4-a08d-92880d61b538", + "id": "4bf62acb-e4e6-45d9-8b47-6dfdce5db747", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -15268,7 +15268,7 @@ { "listen": "test", "script": { - "id": "fa89beb4-f96c-4511-86e5-22673e620f2a", + "id": "e7c55151-d67e-401a-901c-9cb23c247df4", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -15317,7 +15317,7 @@ { "listen": "test", "script": { - "id": "f78ce49c-43d6-44f2-b10c-2ea1c3976e7e", + "id": "ceb62ce9-2671-4df3-a586-9798e0e4813e", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -15367,7 +15367,7 @@ { "listen": "test", "script": { - "id": "e827d047-03e9-4274-b545-75bbbf0de605", + "id": "4f6e6d05-fdb0-4c31-a833-f4951d84d279", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -15423,7 +15423,7 @@ { "listen": "test", "script": { - "id": "307729ac-4204-454d-b137-459c50f59d7c", + "id": "ac0d28cb-30cb-40a5-9a40-eb1c7a5b873f", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -15463,7 +15463,7 @@ { "listen": "test", "script": { - "id": "2b8b5172-3b22-439c-903f-070dce7fa52b", + "id": "d546768d-ce53-48bf-9a91-e98c03dfdfcf", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -15503,7 +15503,7 @@ { "listen": "test", "script": { - "id": "ab680fc3-fe1a-40cf-8f42-9ac3a15e078c", + "id": "7232d0c6-4c48-4511-a7a9-6b8076992e08", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -15543,7 +15543,7 @@ { "listen": "test", "script": { - "id": "ebd44667-104a-4be4-9c5c-bb8bfa7623b4", + "id": "dff58a63-488d-4679-8df6-41bca65b1ee9", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -15583,7 +15583,7 @@ { "listen": "test", "script": { - "id": "62f7624b-ab7a-4ff4-883c-67f88b1e9396", + "id": "9a8de138-3330-4848-bb66-14e06eb235ca", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -15623,7 +15623,7 @@ { "listen": "test", "script": { - "id": "f6e0c5ad-6da9-4c5c-bed4-d455f9781590", + "id": "129cb973-9a2a-4d0a-bf70-56553437cced", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -15663,7 +15663,7 @@ { "listen": "test", "script": { - "id": "47f64ca4-4ed1-4262-a6b3-cb38e35e6a00", + "id": "a9b6e1f2-edca-43ac-95b6-338c7162e8ae", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -15703,7 +15703,7 @@ { "listen": "test", "script": { - "id": "875c84b1-9117-4207-9bca-89a2058c058e", + "id": "8788531c-8906-4708-8a65-eea637ea0e52", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -15743,7 +15743,7 @@ { "listen": "test", "script": { - "id": "a92bd65b-0727-44b1-8b18-d284d8a8df5a", + "id": "9689b652-1542-4118-bab7-4a48b60e76eb", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -15777,7 +15777,7 @@ { "listen": "test", "script": { - "id": "b279cbc4-6b7f-40ac-88a3-3f3d07b067cf", + "id": "8bfe80fb-d778-4d0d-8eab-7831c47c127c", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -15817,7 +15817,7 @@ { "listen": "test", "script": { - "id": "40f93abf-e40a-4088-ab52-70605cc3682c", + "id": "9546e59f-dcea-4b28-9fee-db462c4e2e60", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -15857,7 +15857,7 @@ { "listen": "test", "script": { - "id": "2734e3b9-c80b-452d-95b0-85477dcf5596", + "id": "081eccdf-d840-4249-93f0-e1c0c7141652", "exec": [ "pm.test(\"Status code is 404\", function () {", " pm.response.to.have.status(404);", @@ -15896,7 +15896,7 @@ { "listen": "prerequest", "script": { - "id": "6f3607ed-f703-4037-9474-7b5303c6ea34", + "id": "bda0f0f5-bb5d-4b0d-b1fb-34b003b00cf0", "type": "text/javascript", "exec": [ "" @@ -15906,7 +15906,7 @@ { "listen": "test", "script": { - "id": "cca06552-f580-4bb7-9904-85e2f5052e5a", + "id": "5570a99e-20fb-46fb-878f-1c5c6855d937", "type": "text/javascript", "exec": [ "" @@ -15926,7 +15926,7 @@ { "listen": "test", "script": { - "id": "fbe086e6-0fd3-4d36-b75b-1f96712ec8b7", + "id": "a8f2d9be-103b-4a91-8b78-46e546f2d999", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -15978,7 +15978,7 @@ { "listen": "test", "script": { - "id": "8e2be9d4-0edd-479e-a2ad-8790431cef89", + "id": "b370d8c5-6812-4f7c-9eb0-13a919a88b39", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -16030,7 +16030,7 @@ { "listen": "test", "script": { - "id": "e4e9a58e-8e77-435c-99c4-703c26222a7f", + "id": "480edaec-79bb-4c2f-930e-6c9b7847c06a", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -16082,7 +16082,7 @@ { "listen": "test", "script": { - "id": "8f4343a6-5477-48d6-9c6a-6445c752e61f", + "id": "7f3753e6-a889-488b-8c79-e9ee63c35b72", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -16134,7 +16134,7 @@ { "listen": "test", "script": { - "id": "d6ae49ed-71aa-4720-a528-e899d26bdb1e", + "id": "6e096a39-c12d-4dfe-b35e-b90664f85d11", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -16186,7 +16186,7 @@ { "listen": "test", "script": { - "id": "e5116cdc-97f4-4d51-98ac-197f32f8e871", + "id": "84170499-e0dd-4b3b-bf9c-4848265c523b", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -16238,7 +16238,7 @@ { "listen": "test", "script": { - "id": "e6d5f967-a32b-456f-88f0-5e00303a613b", + "id": "5d808cc7-282a-4a6a-b378-a5198768ae68", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -16290,7 +16290,7 @@ { "listen": "test", "script": { - "id": "2f80b41f-fe97-4c5b-be7d-534baccbc48c", + "id": "4f699508-c6fd-4e93-bf8b-7b96b090d3d1", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -16342,7 +16342,7 @@ { "listen": "test", "script": { - "id": "2a3d3531-cb7e-4307-a8e4-2fde0b406d7a", + "id": "19fd4a68-c391-4060-9c80-e1c5eac2c080", "exec": [ "pm.test(\"Status code is 404\", function () {", " pm.response.to.have.status(404);", @@ -16394,7 +16394,7 @@ { "listen": "test", "script": { - "id": "b7f533b0-de15-4f39-b24d-9ee5ffdacd6c", + "id": "38408114-3b1e-4f20-b4eb-57a8cb2008b0", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -16446,7 +16446,7 @@ { "listen": "test", "script": { - "id": "f7c036a8-d473-4dc7-8080-24a13708e9ae", + "id": "51a6a35f-cec8-4d65-a2ae-e2898a1c46a0", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -16498,7 +16498,7 @@ { "listen": "test", "script": { - "id": "9c304f17-7403-45f2-a347-4a2d2cdbf131", + "id": "04dc0f5c-4139-4bb9-a214-6fbc7245c9bb", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -16550,7 +16550,7 @@ { "listen": "test", "script": { - "id": "70078b7e-3c44-403d-82ff-7dbb2fd50c8c", + "id": "e9260f71-901b-45b3-aa10-d30c9b8e93c0", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -16597,7 +16597,7 @@ { "listen": "test", "script": { - "id": "774eaa84-cc6e-4b86-bec5-f94a95c09c7a", + "id": "0c5397fc-c8ef-49c9-ac97-f66cd466523c", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -16649,7 +16649,7 @@ { "listen": "test", "script": { - "id": "a28a2826-5716-4db1-8b66-3841676adc06", + "id": "cfd0353d-c045-4600-bda5-d27acd527cd8", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -16701,7 +16701,7 @@ { "listen": "test", "script": { - "id": "10c3bd08-7279-4d20-8cf3-30846ffcc477", + "id": "1eb3dc82-98df-4349-9cbb-87c8c230cf92", "exec": [ "pm.test(\"Status code is 404\", function () {", " pm.response.to.have.status(404);", @@ -16753,7 +16753,7 @@ { "listen": "test", "script": { - "id": "29d0bddf-c494-42a0-9498-1282910456a5", + "id": "3699985a-de92-418f-b5c4-f2720aa5acd0", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -16805,7 +16805,7 @@ { "listen": "test", "script": { - "id": "ecb9f861-9cf8-430b-81af-2a5102890a4c", + "id": "e35e3b88-3c86-4624-8582-27aa3deeefae", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -16857,7 +16857,7 @@ { "listen": "test", "script": { - "id": "bcf1a0d9-b8fc-43fc-8620-d0487aacfe14", + "id": "15277b1e-0a6c-46fd-aa2c-54da2c78a21f", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -16909,7 +16909,7 @@ { "listen": "test", "script": { - "id": "7e49e3d4-adea-4435-aa42-3b5f613cf85a", + "id": "78ed48ec-3700-42ae-bfa3-0f12275e31a3", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -16961,7 +16961,7 @@ { "listen": "test", "script": { - "id": "e39bb59b-1954-455b-a52a-62c3763b085f", + "id": "60255e7f-f92b-4a5a-a28a-db149f33014a", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -17013,7 +17013,7 @@ { "listen": "test", "script": { - "id": "31f3dcff-d801-4577-9e47-ddcdb12fb363", + "id": "90bc5b48-07f7-467c-83b2-e489d6c3a843", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -17065,7 +17065,7 @@ { "listen": "test", "script": { - "id": "3c93473b-7523-481a-9dfb-a2b17682cabb", + "id": "4330f0d9-dd38-4649-863d-51599cdbb402", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -17117,7 +17117,7 @@ { "listen": "test", "script": { - "id": "a99ce2b7-d5ca-40ae-82e1-6a2194422dac", + "id": "fdb1f0bf-ad03-4461-a669-a2961f4af274", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -17169,7 +17169,7 @@ { "listen": "test", "script": { - "id": "ca9c8cb6-0fc7-4cf4-b6d7-4372ef88f859", + "id": "5bb36052-70a3-4aa8-bb72-7561e3689390", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -17221,7 +17221,7 @@ { "listen": "test", "script": { - "id": "d8514aef-416c-4634-81c1-ada32435a9e1", + "id": "fe5c6014-85be-402b-8a8d-34fc6142ce84", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -17280,7 +17280,7 @@ { "listen": "test", "script": { - "id": "d6efdb47-887b-4566-aeda-31de880ace20", + "id": "66eccc7c-74c3-4e67-9744-eddbeeae4104", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -17332,7 +17332,7 @@ { "listen": "test", "script": { - "id": "006f9e48-2a88-4d9e-8d83-5053eb774bf5", + "id": "e8dd3e05-bd7e-4433-ad72-d227878a8f25", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -17384,7 +17384,7 @@ { "listen": "test", "script": { - "id": "49227569-5495-4893-b0d7-1f6e71f95f3b", + "id": "26345aeb-cec9-429f-9be3-455c45a4ec02", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -17436,7 +17436,7 @@ { "listen": "test", "script": { - "id": "9d8f156c-5bdf-4069-aa17-73420ffd8b85", + "id": "5d18d1e6-337c-4ecf-98df-ed6627a63b56", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -17488,7 +17488,7 @@ { "listen": "test", "script": { - "id": "fe54f3b3-60d8-4d12-bd6e-cdb3273a9677", + "id": "cdafb4c9-1188-439d-b1f1-a309874eaa4a", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -17540,7 +17540,7 @@ { "listen": "test", "script": { - "id": "2f1481c6-6747-4352-b2a2-0fff1eb764f9", + "id": "543f8f2e-ab79-4bf7-a11a-701b4c9cd7fd", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -17592,7 +17592,7 @@ { "listen": "test", "script": { - "id": "1ff9ff21-1ad1-48a2-b831-06462ea3f7a5", + "id": "17b04a84-445e-400c-a7df-160f19c5769a", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -17644,7 +17644,7 @@ { "listen": "test", "script": { - "id": "75b6091c-ec79-48ed-a3a4-b09368dc0fd8", + "id": "2ba26338-b1ae-4d23-baa7-9860cf0bf738", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -17696,7 +17696,7 @@ { "listen": "test", "script": { - "id": "77055163-b638-4183-99e4-c49d211a1c90", + "id": "55b353c2-37cc-42fb-a415-6ca6cf9661ef", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -17748,7 +17748,7 @@ { "listen": "test", "script": { - "id": "66fc8158-0e5f-41ff-90f8-39d1fb01714e", + "id": "a31d8b86-d402-45c8-9349-3509cfd81485", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -17800,7 +17800,7 @@ { "listen": "test", "script": { - "id": "be571a2a-db71-4ea8-9ed7-aaa6a36e058f", + "id": "40256115-985e-40cb-9ab5-21e6a85fef7c", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -17852,7 +17852,7 @@ { "listen": "test", "script": { - "id": "7cfd1c6c-7b8a-4a70-87c6-45bbcde7b0aa", + "id": "0fedfdc2-3ed7-40fb-9c9e-402f0377147e", "exec": [ "pm.test(\"Status code is 404\", function () {", " pm.response.to.have.status(404);", @@ -17904,7 +17904,7 @@ { "listen": "test", "script": { - "id": "8370d885-e0bc-4e60-a125-8f3835c6d071", + "id": "4d0de222-8fbb-45c8-89f2-4f52f3cc8058", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -17956,7 +17956,7 @@ { "listen": "test", "script": { - "id": "84970544-cca3-42bb-88ac-683e578e19c9", + "id": "c5658e34-ae3b-4111-adb5-321784e6f07f", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -18008,7 +18008,7 @@ { "listen": "test", "script": { - "id": "a852f396-1c00-45ff-92b4-68cacf9ea0b3", + "id": "33f27c0e-4ad8-479f-b81f-60a57acac8a0", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -18055,7 +18055,7 @@ { "listen": "test", "script": { - "id": "37928956-6b66-460c-ad3f-53823cc85728", + "id": "d1226558-d638-4aa3-a953-1213d56a5898", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -18107,7 +18107,7 @@ { "listen": "test", "script": { - "id": "a959b06e-b464-47d9-9e16-55e3283c9fa5", + "id": "ad031500-b3b9-454b-8067-4eb9403d238c", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -18159,7 +18159,7 @@ { "listen": "test", "script": { - "id": "db47b663-6385-423b-9dd8-0db01e1bc4a4", + "id": "5493d67d-eb38-493d-bae9-ef1e9805887b", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -18211,7 +18211,7 @@ { "listen": "test", "script": { - "id": "b75245c0-6456-4db6-b340-1f3065490857", + "id": "f656426c-b5ab-4928-b047-bcf521fc8044", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -18263,7 +18263,7 @@ { "listen": "test", "script": { - "id": "253a6b06-dfce-455a-bcb2-eb25828d57bd", + "id": "0217fd78-1bb1-454c-acbc-7b64ff24bb10", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -18315,7 +18315,7 @@ { "listen": "test", "script": { - "id": "fc64a2f0-e548-44bf-a045-5774217bb95f", + "id": "56030d39-9a28-4d67-bacb-435af25cc700", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -18367,7 +18367,7 @@ { "listen": "test", "script": { - "id": "7f95e3cc-fff5-4839-a9a3-26a6dc6675ad", + "id": "7172f697-1936-464c-bbcb-f90f032cf756", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -18419,7 +18419,7 @@ { "listen": "test", "script": { - "id": "5822f436-8a3f-46ce-86db-bfb4ec886e40", + "id": "c20cf69f-4937-4b73-85cd-d0b0d12a4626", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -18471,7 +18471,7 @@ { "listen": "test", "script": { - "id": "71c4a10f-a0cb-4e50-a772-b5c6de8ead7c", + "id": "907273c5-57bb-42c4-ae38-79e92b7ea064", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -18523,7 +18523,7 @@ { "listen": "test", "script": { - "id": "8c5590da-5cf2-47be-afd4-d06ca5c0e1ab", + "id": "1fcce2b9-64b6-4011-9325-d9472bbd6aa4", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -18582,7 +18582,7 @@ { "listen": "test", "script": { - "id": "41c42eac-8dce-4846-b4d1-3cd0aa390669", + "id": "db9e6cce-9223-4358-88fb-f15e9b3c1348", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -18625,7 +18625,7 @@ { "listen": "test", "script": { - "id": "573d71d5-7d0e-4ef0-9391-b455d27c1625", + "id": "eb9032d8-2fa1-4e7c-93b3-327615836d81", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -18673,7 +18673,7 @@ { "listen": "test", "script": { - "id": "61ba16df-7e58-4035-a312-c48df68fbd57", + "id": "1f5ba451-380c-4c2c-96dd-aa09e6265ff5", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -18721,7 +18721,7 @@ { "listen": "test", "script": { - "id": "ca96b5e2-eac2-49ef-8560-3c6a29b8609a", + "id": "a06f7d3b-7fd7-4b27-9fc3-8b4a9461fdad", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -18769,7 +18769,7 @@ { "listen": "test", "script": { - "id": "b4b2bdaf-2729-4df9-91ce-76ac17bfea48", + "id": "ba48a228-ddec-43da-9e1c-3856119bccbd", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -18812,7 +18812,7 @@ { "listen": "test", "script": { - "id": "db3ee1b6-9998-421d-8e5f-fa333619d35e", + "id": "62a1064b-3805-4ab2-846b-f5519fc6232e", "exec": [ "pm.test(\"Status code is 404\", function () {", " pm.response.to.have.status(404);", @@ -18855,7 +18855,7 @@ { "listen": "test", "script": { - "id": "6e22a921-7133-452e-acea-79d80ac3e013", + "id": "478571ad-9082-4c0d-8209-3daf5fbaace2", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -18903,7 +18903,7 @@ { "listen": "test", "script": { - "id": "84b02ace-9a5c-4c0c-b711-43fb46255c52", + "id": "9e2d57e9-1be6-4dd6-8c3a-724011c51ff1", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200)", @@ -18951,7 +18951,7 @@ { "listen": "test", "script": { - "id": "615539ee-b5f9-4717-a126-ce232099cb26", + "id": "81c6b48c-6c10-4412-a03f-39b2a5dd47b0", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -19007,7 +19007,7 @@ { "listen": "test", "script": { - "id": "8cd6dcc0-7e2a-4550-9d68-e2a6ee882e56", + "id": "f8a8d7b2-b598-4a70-b57d-157327f98aee", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -19124,7 +19124,7 @@ { "listen": "test", "script": { - "id": "045c41dc-b10b-4a5a-b399-1c8116857f11", + "id": "b5ea2020-53ca-4cf3-9285-ebf7df5d7145", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -19194,7 +19194,7 @@ { "listen": "test", "script": { - "id": "f536945f-4629-4321-b680-f5f6f07f9ff3", + "id": "fabdb141-2fa0-4001-8a12-988a6c2526bf", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -19264,7 +19264,7 @@ { "listen": "test", "script": { - "id": "55a96754-175f-4852-ab68-ff0b01d3f78a", + "id": "233807cd-84b1-4d3f-ae31-faf370b14f8b", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -19330,7 +19330,7 @@ { "listen": "test", "script": { - "id": "af0fbc21-ce73-46c0-ad7b-1ecd0b94b242", + "id": "f723df6b-e320-4d2d-9ebd-7762d2603849", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -19393,7 +19393,7 @@ { "listen": "test", "script": { - "id": "93454956-0f82-497a-9526-c9b1fa4e88e9", + "id": "b83f9c12-0340-46af-9f08-a5c7bf875dc3", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -19454,7 +19454,7 @@ { "listen": "test", "script": { - "id": "a73f1eec-ed99-49f2-9b6c-06854dae4fb2", + "id": "ca95b39f-b852-4325-a85f-4008c64bcb5c", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -19502,7 +19502,7 @@ { "listen": "test", "script": { - "id": "69c967ca-ff91-4740-b6d1-89b38f81d446", + "id": "e15170b9-760c-4924-b299-af06724cec07", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -19550,7 +19550,7 @@ { "listen": "test", "script": { - "id": "5bfe9101-af69-45b9-98e8-ae6e81e5feaf", + "id": "3145b82b-2c71-4aad-a3d9-c027885217ea", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -19598,7 +19598,7 @@ { "listen": "test", "script": { - "id": "96f1f797-17e4-4b6f-a17c-d10e23f98467", + "id": "20c27119-f729-4725-b68b-2f0d4b96eb04", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -19646,7 +19646,7 @@ { "listen": "test", "script": { - "id": "c692c643-ad97-4282-89c4-d253ec7863d1", + "id": "f92b85de-d465-495e-a38e-6db45746c640", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -19694,7 +19694,7 @@ { "listen": "test", "script": { - "id": "c7116a0e-608d-4234-bdc4-3781c1f9b7b4", + "id": "b185bb1c-221c-4577-8567-8e326d7dbac3", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -19742,7 +19742,7 @@ { "listen": "test", "script": { - "id": "065ed4d1-7236-4356-9ea8-250b69e0c16f", + "id": "f9284330-9b82-4a0e-8915-38b5f45699e1", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -19790,7 +19790,7 @@ { "listen": "test", "script": { - "id": "f7b81e92-a7ab-4a6d-bbca-13e5b41db474", + "id": "3c8588d5-ac4c-41a3-8074-d5008b6e2383", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -19838,7 +19838,7 @@ { "listen": "test", "script": { - "id": "ee5efc8f-9728-4f9d-9147-bcb5d699dad3", + "id": "441746a4-0038-4e60-bae6-ca3fa883e7a5", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -19886,7 +19886,7 @@ { "listen": "test", "script": { - "id": "54ffb3c7-2e62-4348-be03-fb2aad11364d", + "id": "e51753a1-9388-4553-b4ae-2d24557a67f8", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -19934,7 +19934,7 @@ { "listen": "test", "script": { - "id": "ca11087f-205d-4346-9440-3d90659ba037", + "id": "44ae9a9d-4d01-4ab3-9a75-806985a298eb", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -19982,7 +19982,7 @@ { "listen": "test", "script": { - "id": "a3d8ee13-1da5-4f1e-945f-46e67addca05", + "id": "afe6144b-0da5-4810-b9be-5ef1f79abf30", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -20048,7 +20048,7 @@ { "listen": "test", "script": { - "id": "5b13e4ce-4a4f-4a18-98eb-45243ac96b04", + "id": "b39f9c93-67c5-4803-9e2a-ede771a16a86", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -20114,7 +20114,7 @@ { "listen": "test", "script": { - "id": "a9a414ee-ab76-479c-a512-d2a661021bd3", + "id": "d1b44f3d-53a0-44ca-8656-74a00b0deaee", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -20184,6 +20184,516 @@ ], "protocolProfileBehavior": {}, "_postman_isSubFolder": true + }, + { + "name": "delete challenge", + "item": [ + { + "name": "[STUB] CHALLENGE_ID1 can be set by running \"create challenge by admin\"", + "request": { + "method": "VIEW", + "header": [], + "url": { + "raw": "" + } + }, + "response": [] + }, + { + "name": "[STUB] CHALLENGE_ID2 can be set by running \"create challenge by copilot\"", + "request": { + "method": "VIEW", + "header": [], + "url": { + "raw": "" + } + }, + "response": [] + }, + { + "name": "delete challenge 1 by admin", + "event": [ + { + "listen": "test", + "script": { + "id": "7748e11e-0536-4d66-821e-2acb8b9ee4e4", + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "DELETE", + "header": [ + { + "key": "Accept", + "type": "text", + "value": "application/json" + }, + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "Authorization", + "type": "text", + "value": "Bearer {{admin_token}}" + } + ], + "url": { + "raw": "{{URL}}/challenges/{{CHALLENGE_ID1}}", + "host": [ + "{{URL}}" + ], + "path": [ + "challenges", + "{{CHALLENGE_ID1}}" + ] + } + }, + "response": [] + }, + { + "name": "delete challenge 2 by copilot", + "event": [ + { + "listen": "test", + "script": { + "id": "21ce91c2-727e-4942-94ce-f7b9ad0e1922", + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "DELETE", + "header": [ + { + "key": "Accept", + "type": "text", + "value": "application/json" + }, + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "Authorization", + "type": "text", + "value": "Bearer {{copilot1_token}}" + } + ], + "url": { + "raw": "{{URL}}/challenges/{{CHALLENGE_ID2}}", + "host": [ + "{{URL}}" + ], + "path": [ + "challenges", + "{{CHALLENGE_ID2}}" + ] + } + }, + "response": [] + }, + { + "name": "failure delete challenge by different copilot 403", + "event": [ + { + "listen": "test", + "script": { + "id": "b27f9844-172a-45ab-8d78-d8e648162de7", + "exec": [ + "pm.test(\"Status code is 403\", function () {", + " pm.response.to.have.status(403);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "DELETE", + "header": [ + { + "key": "Accept", + "type": "text", + "value": "application/json" + }, + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "Authorization", + "type": "text", + "value": "Bearer {{copilot2_token}}" + } + ], + "url": { + "raw": "{{URL}}/challenges/{{CHALLENGE_ID2}}", + "host": [ + "{{URL}}" + ], + "path": [ + "challenges", + "{{CHALLENGE_ID2}}" + ] + } + }, + "response": [] + }, + { + "name": "failure delete challenge by user 403", + "event": [ + { + "listen": "test", + "script": { + "id": "1d6af907-bdc2-437f-9883-3040c1e12e79", + "exec": [ + "pm.test(\"Status code is 403\", function () {", + " pm.response.to.have.status(403);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "DELETE", + "header": [ + { + "key": "Accept", + "type": "text", + "value": "application/json" + }, + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "Authorization", + "type": "text", + "value": "Bearer {{user_token}}" + } + ], + "url": { + "raw": "{{URL}}/challenges/{{CHALLENGE_ID2}}", + "host": [ + "{{URL}}" + ], + "path": [ + "challenges", + "{{CHALLENGE_ID2}}" + ] + } + }, + "response": [] + }, + { + "name": "failure delete challenge without token 401", + "event": [ + { + "listen": "test", + "script": { + "id": "df9d716a-9a0f-4764-9154-2bd57532f0ea", + "exec": [ + "pm.test(\"Status code is 401\", function () {", + " pm.response.to.have.status(401);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "DELETE", + "header": [ + { + "key": "Accept", + "type": "text", + "value": "application/json" + }, + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "url": { + "raw": "{{URL}}/challenges/{{CHALLENGE_ID2}}", + "host": [ + "{{URL}}" + ], + "path": [ + "challenges", + "{{CHALLENGE_ID2}}" + ] + } + }, + "response": [] + }, + { + "name": "failure delete challenge with invalid token 401", + "event": [ + { + "listen": "test", + "script": { + "id": "db2448ac-deda-4c6c-a47b-6c7af95ddf8b", + "exec": [ + "pm.test(\"Status code is 401\", function () {", + " pm.response.to.have.status(401);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "DELETE", + "header": [ + { + "key": "Accept", + "type": "text", + "value": "application/json" + }, + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "Authorization", + "type": "text", + "value": "Bearer invalid" + } + ], + "url": { + "raw": "{{URL}}/challenges/{{CHALLENGE_ID2}}", + "host": [ + "{{URL}}" + ], + "path": [ + "challenges", + "{{CHALLENGE_ID2}}" + ] + } + }, + "response": [] + }, + { + "name": "failure delete challenge with expire token 401", + "event": [ + { + "listen": "test", + "script": { + "id": "2edcc5f2-8a0f-4791-93b2-da3a897daf76", + "exec": [ + "pm.test(\"Status code is 401\", function () {", + " pm.response.to.have.status(401);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "DELETE", + "header": [ + { + "key": "Accept", + "type": "text", + "value": "application/json" + }, + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "Authorization", + "type": "text", + "value": "Bearer {{expire_token}}" + } + ], + "url": { + "raw": "{{URL}}/challenges/{{CHALLENGE_ID2}}", + "host": [ + "{{URL}}" + ], + "path": [ + "challenges", + "{{CHALLENGE_ID2}}" + ] + } + }, + "response": [] + }, + { + "name": "failure delete challenge not found 404", + "event": [ + { + "listen": "test", + "script": { + "id": "9e8ed6d8-7a40-4ced-8176-fed5a8d8b095", + "exec": [ + "pm.test(\"Status code is 404\", function () {", + " pm.response.to.have.status(404);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "DELETE", + "header": [ + { + "key": "Accept", + "type": "text", + "value": "application/json" + }, + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "Authorization", + "type": "text", + "value": "Bearer {{admin_token}}" + } + ], + "url": { + "raw": "{{URL}}/challenges/:challengeId", + "host": [ + "{{URL}}" + ], + "path": [ + "challenges", + ":challengeId" + ], + "variable": [ + { + "key": "challengeId", + "value": "19d20d64-e84e-452f-abd5-018e6abc68ab" + } + ] + } + }, + "response": [] + }, + { + "name": "delete challenge using m2m token", + "event": [ + { + "listen": "test", + "script": { + "id": "c46553ad-8bb4-46b2-84ec-ba7a029b74ee", + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "DELETE", + "header": [ + { + "key": "Accept", + "type": "text", + "value": "application/json" + }, + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "Authorization", + "type": "text", + "value": "Bearer {{m2m_challenges_delete}}" + } + ], + "url": { + "raw": "{{URL}}/challenges/{{CHALLENGE_ID2}}", + "host": [ + "{{URL}}" + ], + "path": [ + "challenges", + "{{CHALLENGE_ID2}}" + ] + } + }, + "response": [] + }, + { + "name": "failure delete challenge using forbidden m2m token 403", + "event": [ + { + "listen": "test", + "script": { + "id": "3eeabff3-ceee-47f5-a23c-b2ff1322a2e8", + "exec": [ + "pm.test(\"Status code is 403\", function () {", + " pm.response.to.have.status(403);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "DELETE", + "header": [ + { + "key": "Accept", + "type": "text", + "value": "application/json" + }, + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "Authorization", + "type": "text", + "value": "Bearer {{m2m_challenge_attachments_read}}" + } + ], + "url": { + "raw": "{{URL}}/challenges/{{CHALLENGE_ID2}}", + "host": [ + "{{URL}}" + ], + "path": [ + "challenges", + "{{CHALLENGE_ID2}}" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {}, + "_postman_isSubFolder": true } ], "protocolProfileBehavior": {} @@ -20197,7 +20707,7 @@ { "listen": "test", "script": { - "id": "46684084-38e1-46d6-929d-2e561974f75f", + "id": "6d062e03-80e3-4e9a-a2d6-1e157a87a4f0", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -20278,7 +20788,7 @@ { "listen": "test", "script": { - "id": "10105601-1f84-4c4d-9eb9-d583016ad69d", + "id": "59d2691e-df73-41c8-bb8b-4ab905ebc647", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -20348,7 +20858,7 @@ { "listen": "test", "script": { - "id": "942bf170-4e56-4f88-8ccf-f5afbd5a726e", + "id": "9a73a50a-1175-43ba-8eb6-048bef9199a2", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -20417,7 +20927,7 @@ { "listen": "test", "script": { - "id": "3d092185-d179-4832-8be4-3b180a878f23", + "id": "536e13b2-2edd-43f9-8c51-2cc6b19d187c", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -20486,7 +20996,7 @@ { "listen": "test", "script": { - "id": "4ebbf777-b0b2-4c62-b62d-a97dc6876b5e", + "id": "8ad4744e-1be4-44d4-ae6a-d0456faa76be", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -20550,7 +21060,7 @@ { "listen": "test", "script": { - "id": "7550e69a-94a4-4d2e-a031-59ffd9823a1d", + "id": "09bbd9c9-6204-4cdc-bc0a-a3a56e170af2", "exec": [ "pm.test(\"Status code is 401\", function () {", " pm.response.to.have.status(401);", @@ -20619,7 +21129,7 @@ { "listen": "test", "script": { - "id": "a41f4e6c-321c-4bea-b255-b8b18549ca12", + "id": "299bb2f2-e2a9-462c-8b53-f18bb17dfa56", "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", @@ -20688,7 +21198,7 @@ { "listen": "test", "script": { - "id": "266f8fc0-4675-4ca4-b55f-65c00fbfa072", + "id": "6eed56ee-961a-40b9-b5fd-7ff6d2e11ebd", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -20769,7 +21279,7 @@ { "listen": "test", "script": { - "id": "9a2d7e48-b797-4d05-a347-b7b4d252527f", + "id": "41623fb1-d295-44bf-ae32-f004d6ec2f5b", "exec": [ "pm.test(\"Status code is 403\", function () {", " pm.response.to.have.status(403);", @@ -20856,7 +21366,7 @@ { "listen": "test", "script": { - "id": "ea90d833-a9b4-49db-a390-757601145f71", + "id": "dfcfb1f9-de62-478f-9a13-64357e6cfbae", "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", @@ -20898,7 +21408,7 @@ { "listen": "prerequest", "script": { - "id": "857b7aca-1823-4007-b1fb-3a38511e2b38", + "id": "5a9a60c6-02b0-48ee-bdb4-5eeb21cada90", "type": "text/javascript", "exec": [ "" @@ -20908,7 +21418,7 @@ { "listen": "test", "script": { - "id": "5b13b788-6093-4fbe-b1fe-c68f8c08c0ac", + "id": "debaa0ea-5dad-4e2e-a092-fa5b01716d40", "type": "text/javascript", "exec": [ "" diff --git a/docs/topcoder-challenge-api.postman_environment.json b/docs/topcoder-challenge-api.postman_environment.json index 2c8dd2c1..880e8c8a 100644 --- a/docs/topcoder-challenge-api.postman_environment.json +++ b/docs/topcoder-challenge-api.postman_environment.json @@ -152,6 +152,11 @@ "value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3RvcGNvZGVyLWRldi5hdXRoMC5jb20vIiwic3ViIjoiZW5qdzE4MTBlRHozWFR3U08yUm4yWTljUVRyc3BuM0JAY2xpZW50cyIsImF1ZCI6Imh0dHBzOi8vbTJtLnRvcGNvZGVyLWRldi5jb20vIiwiaWF0IjoxNTUwOTA2Mzg4LCJleHAiOjE2NDA5OTI3ODgsImF6cCI6ImVuancxODEwZUR6M1hUd1NPMlJuMlk5Y1FUcnNwbjNCIiwic2NvcGUiOiJ1cGRhdGU6Y2hhbGxlbmdlcyBhbGw6Y2hhbGxlbmdlcyIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyJ9.dN4uHhmPN33ljY2YSZmndxAnSXaowQaYENiPL5wjDvc", "enabled": true }, + { + "key": "m2m_challenges_delete", + "value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3RvcGNvZGVyLWRldi5hdXRoMC5jb20vIiwic3ViIjoiZW5qdzE4MTBlRHozWFR3U08yUm4yWTljUVRyc3BuM0JAY2xpZW50cyIsImF1ZCI6Imh0dHBzOi8vbTJtLnRvcGNvZGVyLWRldi5jb20vIiwiaWF0IjoxNTUwOTA2Mzg4LCJleHAiOjE2NDA5OTI3ODgsImF6cCI6ImVuancxODEwZUR6M1hUd1NPMlJuMlk5Y1FUcnNwbjNCIiwic2NvcGUiOiJkZWxldGU6Y2hhbGxlbmdlcyBhbGw6Y2hhbGxlbmdlcyIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyJ9.NCZdRy3TErhxG5A2ic4ahC70xfihq2UA5y0Z7OyR7Go", + "enabled": true + }, { "key": "m2m_challenge_types_create", "value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3RvcGNvZGVyLWRldi5hdXRoMC5jb20vIiwic3ViIjoiZW5qdzE4MTBlRHozWFR3U08yUm4yWTljUVRyc3BuM0JAY2xpZW50cyIsImF1ZCI6Imh0dHBzOi8vbTJtLnRvcGNvZGVyLWRldi5jb20vIiwiaWF0IjoxNTUwOTA2Mzg4LCJleHAiOjE2NDA5OTI3ODgsImF6cCI6ImVuancxODEwZUR6M1hUd1NPMlJuMlk5Y1FUcnNwbjNCIiwic2NvcGUiOiJjcmVhdGU6Y2hhbGxlbmdlX3R5cGVzIGFsbDpjaGFsbGVuZ2VfdHlwZXMiLCJndHkiOiJjbGllbnQtY3JlZGVudGlhbHMifQ.Njg1n3o0I8J9aa6y8xdiwfZFIGH2rJmW-7vKv3kXg5I", diff --git a/local/docker-compose.yml b/local/docker-compose.yml index e58c8a80..88b4db1c 100644 --- a/local/docker-compose.yml +++ b/local/docker-compose.yml @@ -3,8 +3,8 @@ services: dynamodb: image: tray/dynamodb-local ports: - - "7777:7777" - command: "-inMemory -port 7777" + - "8000:8000" + command: "-inMemory -port 8000" esearch: image: "docker.elastic.co/elasticsearch/elasticsearch:6.8.0" ports: @@ -24,6 +24,8 @@ services: build: context: ../ dockerfile: mock-api/Dockerfile + volumes: + - ../mock-api:/challenge-api/mock-api environment: DYNAMODB_URL: http://dynamodb:7777 IS_LOCAL_DB: "true" diff --git a/mock-api/app.js b/mock-api/app.js index 90fea518..ac97e1f4 100755 --- a/mock-api/app.js +++ b/mock-api/app.js @@ -14,8 +14,32 @@ app.set('port', config.PORT) app.use(cors()) +const groups = { + '33ba038e-48da-487b-96e8-8d3b99b6d181': { + id: '33ba038e-48da-487b-96e8-8d3b99b6d181', + name: 'group1', + description: 'desc1', + privateGroup: false, + selfRegister: true, + domain: 'domain1' + }, + '33ba038e-48da-487b-96e8-8d3b99b6d182': { + id: '33ba038e-48da-487b-96e8-8d3b99b6d182', + name: 'group2', + description: 'desc2', + privateGroup: true, + selfRegister: false, + domain: 'domain2' + } +} + // get challenge resources app.get('/v5/resources', (req, res) => { + winston.debug(`query: ${JSON.stringify(req.query, null, 2)}`) + if (Number(req.query.page) > 1) { + res.json([]) + return + } const challengeId = req.query.challengeId winston.info(`Get resources of challenge id ${challengeId}`) @@ -118,6 +142,17 @@ app.get('/v5/groups', (req, res) => { res.json(result) }) +// get group by id +app.get('/v5/groups/:groupId', (req, res) => { + winston.info(`Find group, groupId: ${req.params.groupId}`) + if (!groups[req.params.groupId]) { + res.status(404).send({ message: `group ${req.params.groupId} not found` }) + } + const result = groups[req.params.groupId] + winston.info(`Result: ${JSON.stringify(result, null, 4)}`) + res.json(result) +}) + // terms API app.get('/v5/terms/:termId', (req, res) => { const termId = req.params.termId diff --git a/src/common/helper.js b/src/common/helper.js index 35987274..adcbc11a 100644 --- a/src/common/helper.js +++ b/src/common/helper.js @@ -744,6 +744,43 @@ async function validateChallengeTerms (terms = []) { return listOfTerms } +/** + * Calculate the sum of prizes. + * + * @param {Array} prizes the list of prize + * @returns {Number} the result prize + */ +function sumOfPrizes (prizes) { + let sum = 0 + if (!prizes.length) { + return sum + } + for (const prize of prizes) { + sum += prize.value + } + return sum +} + +/** + * Get group by id + * @param {String} groupId the group id + * @returns {Promise} the group + */ +async function getGroupById (groupId) { + const token = await getM2MToken() + try { + const result = await axios.get(`${config.GROUPS_API_URL}/${groupId}`, { + headers: { Authorization: `Bearer ${token}` } + }) + return result.data + } catch (err) { + if (err.response.status === HttpStatus.NOT_FOUND) { + return + } + throw err + } +} + module.exports = { wrapExpress, autoWrapExpress, @@ -778,5 +815,7 @@ module.exports = { getCompleteUserGroupTreeIds, expandWithParentGroups, getResourceRoles, - userHasFullAccess + userHasFullAccess, + sumOfPrizes, + getGroupById } diff --git a/src/controllers/ChallengeController.js b/src/controllers/ChallengeController.js index 7f611d8a..61586671 100644 --- a/src/controllers/ChallengeController.js +++ b/src/controllers/ChallengeController.js @@ -60,10 +60,22 @@ async function partiallyUpdateChallenge (req, res) { res.send(result) } +/** + * Delete challenge + * @param {Object} req the request + * @param {Object} res the response + */ +async function deleteChallenge (req, res) { + logger.debug(`deleteChallenge User: ${JSON.stringify(req.authUser)} - ChallengeID: ${req.params.challengeId}`) + const result = await service.deleteChallenge(req.authUser, req.params.challengeId) + res.send(result) +} + module.exports = { searchChallenges, createChallenge, getChallenge, fullyUpdateChallenge, - partiallyUpdateChallenge + partiallyUpdateChallenge, + deleteChallenge } diff --git a/src/init-db.js b/src/init-db.js index 5bdc4e14..cca380b4 100644 --- a/src/init-db.js +++ b/src/init-db.js @@ -16,7 +16,7 @@ const initDB = async () => { for (const challenge of challenges) { await challenge.delete() } - const typeTimelineTemplates = await helper.scan('ChallengeTypeTimelineTemplate') + const typeTimelineTemplates = await helper.scan('ChallengeTimelineTemplate') for (const typeTT of typeTimelineTemplates) { await typeTT.delete() } diff --git a/src/models/Challenge.js b/src/models/Challenge.js index 72be37ed..8ddbf407 100644 --- a/src/models/Challenge.js +++ b/src/models/Challenge.js @@ -112,6 +112,9 @@ const schema = new Schema({ type: [Object], required: false }, + overview: { + type: Object + }, created: { type: Date, required: true diff --git a/src/routes.js b/src/routes.js index f7ed7d27..70ff73da 100644 --- a/src/routes.js +++ b/src/routes.js @@ -52,6 +52,13 @@ module.exports = { auth: 'jwt', access: [constants.UserRoles.Admin, constants.UserRoles.Copilot, constants.UserRoles.Manager], scopes: [UPDATE, ALL] + }, + delete: { + controller: 'ChallengeController', + method: 'deleteChallenge', + auth: 'jwt', + access: [constants.UserRoles.Admin, constants.UserRoles.Copilot, constants.UserRoles.Manager], + scopes: [DELETE, ALL] } }, '/challenge-types': { diff --git a/src/services/ChallengeService.js b/src/services/ChallengeService.js index b6d3846e..fe72348e 100644 --- a/src/services/ChallengeService.js +++ b/src/services/ChallengeService.js @@ -21,6 +21,20 @@ const ChallengeTimelineTemplateService = require('./ChallengeTimelineTemplateSer const esClient = helper.getESClient() +/** + * Check if user can perform modification/deletion to a challenge + * + * @param {Object} user the JwT user object + * @param {Object} challenge the challenge object + * @returns {undefined} + */ +async function ensureAccessibleForChallenge (user, challenge) { + const userHasFullAccess = await helper.userHasFullAccess(challenge.id, user.userId) + if (!user.isMachine && !helper.hasAdminRole(user) && challenge.createdBy.toLowerCase() !== user.handle.toLowerCase() && !userHasFullAccess) { + throw new errors.ForbiddenError(`Only M2M, admin, challenge's copilot or users with full access can perform modification.`) + } +} + /** * Filter challenges by groups access * @param {Object} currentUser the user who perform operation @@ -315,9 +329,27 @@ async function searchChallenges (currentUser, criteria) { if (!_.isUndefined(criteria.group) || !_.isUndefined(criteria.groups)) { // check group access if (_.isUndefined(currentUser)) { - throw new errors.BadRequestError('Authentication is required to filter challenges based on groups') - } - if (!currentUser.isMachine && !helper.hasAdminRole(currentUser)) { + if (criteria.group) { + const group = await helper.getGroupById(criteria.group) + if (group && !group.privateGroup) { + groupsToFilter.push(criteria.group) + } + } + if (criteria.groups && criteria.groups.length > 0) { + const promises = [] + _.each(criteria.groups, (g) => { + promises.push( + (async () => { + const group = await helper.getGroupById(g) + if (group && !group.privateGroup) { + groupsToFilter.push(g) + } + })() + ) + }) + await Promise.all(promises) + } + } else if (!currentUser.isMachine && !helper.hasAdminRole(currentUser)) { if (accessibleGroups.includes(criteria.group)) { groupsToFilter.push(criteria.group) } @@ -820,6 +852,16 @@ async function createChallenge (currentUser, challenge, userToken) { if (challenge.phases && challenge.phases.length > 0) { challenge.endDate = helper.calculateChallengeEndDate(challenge) } + + // auto-populate totalPrizes + if (challenge.prizeSets) { + const prizeSetsGroup = _.groupBy(challenge.prizeSets, 'type') + if (prizeSetsGroup[constants.prizeSetTypes.ChallengePrizes]) { + const totalPrizes = helper.sumOfPrizes(prizeSetsGroup[constants.prizeSetTypes.ChallengePrizes][0].prizes) + _.assign(challenge, { overview: { totalPrizes } }) + } + } + const ret = await helper.create('Challenge', _.assign({ id: uuid(), created: moment().utc(), @@ -1156,10 +1198,7 @@ async function update (currentUser, challengeId, data, userToken, isFull) { newAttachments = await helper.getByIds('Attachment', data.attachmentIds || []) } - const userHasFullAccess = await helper.userHasFullAccess(challengeId, currentUser.userId) - if (!currentUser.isMachine && !helper.hasAdminRole(currentUser) && challenge.createdBy.toLowerCase() !== currentUser.handle.toLowerCase() && !userHasFullAccess) { - throw new errors.ForbiddenError(`Only M2M, admin, challenge's copilot or users with full access can perform modification.`) - } + await ensureAccessibleForChallenge(currentUser, challenge) // Only M2M can update url and options of discussions if (data.discussions && data.discussions.length > 0) { @@ -1229,6 +1268,18 @@ async function update (currentUser, challengeId, data, userToken, isFull) { throw new errors.BadRequestError(`Cannot change the timelineTemplateId for challenges with status: ${finalStatus}`) } + if (data.prizeSets) { + const prizeSetsGroup = _.groupBy(data.prizeSets, 'type') + if (!prizeSetsGroup[constants.prizeSetTypes.ChallengePrizes] && _.get(challenge, 'overview.totalPrizes')) { + // remove the totalPrizes if challenge prizes are empty + challenge.overview = _.omit(challenge.overview, ['totalPrizes']) + } else { + const totalPrizes = helper.sumOfPrizes(prizeSetsGroup[constants.prizeSetTypes.ChallengePrizes][0].prizes) + logger.debug(`re-calculate total prizes, current value is ${totalPrizes.value}`) + _.assign(challenge, { overview: { totalPrizes } }) + } + } + if (data.phases || data.startDate) { if (data.phases && data.phases.length > 0) { for (let i = 0; i < challenge.phases.length; i += 1) { @@ -1518,6 +1569,17 @@ async function update (currentUser, challengeId, data, userToken, isFull) { if (challenge.phases && challenge.phases.length > 0) { challenge.currentPhase = challenge.phases.slice().reverse().find(phase => phase.isOpen) challenge.endDate = helper.calculateChallengeEndDate(challenge) + const registrationPhase = _.find(challenge.phases, p => p.name === 'Registration') + const submissionPhase = _.find(challenge.phases, p => p.name === 'Submission') + challenge.currentPhaseNames = _.map(_.filter(challenge.phases, p => p.isOpen === true), 'name') + if (registrationPhase) { + challenge.registrationStartDate = registrationPhase.actualStartDate || registrationPhase.scheduledStartDate + challenge.registrationEndDate = registrationPhase.actualEndDate || registrationPhase.scheduledEndDate + } + if (submissionPhase) { + challenge.submissionStartDate = submissionPhase.actualStartDate || submissionPhase.scheduledStartDate + challenge.submissionEndDate = submissionPhase.actualEndDate || submissionPhase.scheduledEndDate + } } // Update ES await esClient.update({ @@ -1685,7 +1747,8 @@ fullyUpdateChallenge.schema = { terms: Joi.array().items(Joi.object().keys({ id: Joi.id(), roleId: Joi.id() - }).unknown(true)).optional().allow([]) + }).unknown(true)).optional().allow([]), + overview: Joi.any().forbidden() }).unknown(true).required(), userToken: Joi.any() } @@ -1770,17 +1833,52 @@ partiallyUpdateChallenge.schema = { handle: Joi.string().required(), placement: Joi.number().integer().positive().required() }).unknown(true)).min(1), - terms: Joi.array().items(Joi.id().optional()).optional().allow([]) + terms: Joi.array().items(Joi.id().optional()).optional().allow([]), + overview: Joi.any().forbidden() }).unknown(true).required(), userToken: Joi.any() } +/** + * Delete challenge. + * @param {Object} currentUser the user who perform operation + * @param {String} challengeId the challenge id + * @returns {Object} the deleted challenge + */ +async function deleteChallenge (currentUser, challengeId) { + const challenge = await helper.getById('Challenge', challengeId) + if (challenge.status !== constants.challengeStatuses.New) { + throw new errors.BadRequestError(`Challenge with status other than "${constants.challengeStatuses.New}" cannot be removed`) + } + // check groups authorization + await ensureAccessibleByGroupsAccess(currentUser, challenge) + // check if user are allowed to delete the challenge + await ensureAccessibleForChallenge(currentUser, challenge) + // delete DB record + await models.Challenge.delete(challenge) + // delete ES document + await esClient.delete({ + index: config.get('ES.ES_INDEX'), + type: config.get('ES.ES_TYPE'), + refresh: config.get('ES.ES_REFRESH'), + id: challengeId + }) + await helper.postBusEvent(constants.Topics.ChallengeDeleted, { id: challengeId }) + return challenge +} + +deleteChallenge.schema = { + currentUser: Joi.any(), + challengeId: Joi.id() +} + module.exports = { searchChallenges, createChallenge, getChallenge, fullyUpdateChallenge, - partiallyUpdateChallenge + partiallyUpdateChallenge, + deleteChallenge } -// logger.buildService(module.exports) +logger.buildService(module.exports)