diff --git a/packages/ui/src/parsers/postman.spec.ts b/packages/ui/src/parsers/postman.spec.ts new file mode 100644 index 00000000..edf00cd8 --- /dev/null +++ b/packages/ui/src/parsers/postman.spec.ts @@ -0,0 +1,47 @@ +import { test, expect } from 'vitest' +import { readFile, writeFile } from 'node:fs/promises' +import path from 'node:path' +import { convertPostmanExportToRestfoxCollection } from './postman' +import { addSortOrderToTree, flattenTree } from '@/helpers' + +test('importPostmanV2', async() => { + const currentFolder = path.dirname(new URL(import.meta.url).pathname) + + const testDataFolder = path.join(currentFolder, '..', '..', 'test-data', 'postman-import-v2') + + const inputFile = await readFile(path.join(testDataFolder, 'Argos.API.postman_collection.json'), 'utf-8') + const input = JSON.parse(inputFile) + const outputFile = await readFile(path.join(testDataFolder, 'Restfox_2024-09-06.json'), 'utf-8') + const expected = JSON.parse(outputFile) + + const converted: any = await convertPostmanExportToRestfoxCollection(input, false, expected.collection[0].workspaceId) + + const collectionTree = converted.collection + addSortOrderToTree(collectionTree) + const collection: any[] = JSON.parse(JSON.stringify(flattenTree(collectionTree))) + + collection.sort((a, b) => { + return a.name.localeCompare(b.name) + }) + + collection.forEach((item) => { + item.plugins = [] + delete item._id + delete item.parentId + }) + + const expectedCollection: any[] = expected.collection + + expectedCollection.sort((a, b) => { + return a.name.localeCompare(b.name) + }) + + expectedCollection.forEach((item) => { + delete item._id + delete item.parentId + }) + + writeFile(path.join(testDataFolder, 'test-snapshot.json'), JSON.stringify(collection, null, 2), 'utf-8') + + expect(collection).toEqual(expectedCollection) +}) diff --git a/packages/ui/test-data/postman-import-v2/Argos.API.postman_collection.json b/packages/ui/test-data/postman-import-v2/Argos.API.postman_collection.json new file mode 100644 index 00000000..d8f53825 --- /dev/null +++ b/packages/ui/test-data/postman-import-v2/Argos.API.postman_collection.json @@ -0,0 +1,1470 @@ +{ + "info": { + "_postman_id": "0827038f-dddc-44db-9302-d8a3368ba674", + "name": "Argos API", + "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json", + "_exporter_id": "35318869" + }, + "item": [ + { + "name": "builds", + "item": [ + { + "name": "finalize", + "item": [ + { + "name": "finalize Builds", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"parallelNonce\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": "{{baseUrl}}/builds/finalize" + }, + "response": [ + { + "name": "Result of build finalization", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"parallelNonce\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": "{{baseUrl}}/builds/finalize" + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"builds\": [\n {\n \"id\": \"\",\n \"number\": \"\",\n \"status\": \"rejected\",\n \"url\": \"\",\n \"notification\": {\n \"description\": \"\",\n \"context\": \"\",\n \"github\": {\n \"state\": \"pending\"\n },\n \"gitlab\": {\n \"state\": \"success\"\n }\n }\n },\n {\n \"id\": \"\",\n \"number\": \"\",\n \"status\": \"accepted\",\n \"url\": \"\",\n \"notification\": {\n \"description\": \"\",\n \"context\": \"\",\n \"github\": {\n \"state\": \"pending\"\n },\n \"gitlab\": {\n \"state\": \"canceled\"\n }\n }\n }\n ]\n}" + }, + { + "name": "Invalid parameters", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"parallelNonce\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": "{{baseUrl}}/builds/finalize" + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"error\": \"\",\n \"details\": [\n {\n \"message\": \"\"\n },\n {\n \"message\": \"\"\n }\n ]\n}" + }, + { + "name": "Unauthorized", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"parallelNonce\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": "{{baseUrl}}/builds/finalize" + }, + "status": "Unauthorized", + "code": 401, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"error\": \"\",\n \"details\": [\n {\n \"message\": \"\"\n },\n {\n \"message\": \"\"\n }\n ]\n}" + }, + { + "name": "Forbidden", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"parallelNonce\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": "{{baseUrl}}/builds/finalize" + }, + "status": "Forbidden", + "code": 403, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"error\": \"\",\n \"details\": [\n {\n \"message\": \"\"\n },\n {\n \"message\": \"\"\n }\n ]\n}" + }, + { + "name": "Not found", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"parallelNonce\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": "{{baseUrl}}/builds/finalize" + }, + "status": "Not Found", + "code": 404, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"error\": \"\",\n \"details\": [\n {\n \"message\": \"\"\n },\n {\n \"message\": \"\"\n }\n ]\n}" + }, + { + "name": "Conflict", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"parallelNonce\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": "{{baseUrl}}/builds/finalize" + }, + "status": "Conflict", + "code": 409, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"error\": \"\",\n \"details\": [\n {\n \"message\": \"\"\n },\n {\n \"message\": \"\"\n }\n ]\n}" + }, + { + "name": "Server error", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"parallelNonce\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": "{{baseUrl}}/builds/finalize" + }, + "status": "Internal Server Error", + "code": 500, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"error\": \"\",\n \"details\": [\n {\n \"message\": \"\"\n },\n {\n \"message\": \"\"\n }\n ]\n}" + } + ] + } + ] + }, + { + "name": "{buildId}", + "item": [ + { + "name": "update Build", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"screenshots\": [\n {\n \"key\": \"dddb9b1CfBcfFbE683bAEBDffDb6aA76F36b83a4eCbd0bE721E8cb9FaC10b158\",\n \"name\": \"\",\n \"baseName\": \"\",\n \"metadata\": {\n \"automationLibrary\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"sdk\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"url\": \"\",\n \"viewport\": {\n \"width\": \"\",\n \"height\": \"\"\n },\n \"colorScheme\": \"light\",\n \"mediaType\": \"screen\",\n \"test\": {\n \"title\": \"\",\n \"titlePath\": [\n \"\",\n \"\"\n ],\n \"id\": \"\",\n \"retries\": \"\",\n \"retry\": \"\",\n \"repeat\": \"\",\n \"location\": {\n \"file\": \"\",\n \"line\": \"\",\n \"column\": \"\"\n }\n },\n \"browser\": {\n \"name\": \"\",\n \"version\": \"\"\n }\n },\n \"pwTraceKey\": \"CF6e3FD38c47Fe92dc50C16D5AA9A1AD975fACeE234a13cF1ef1556dEB35A62D\",\n \"threshold\": \"\"\n },\n {\n \"key\": \"2C6166A95a2a3F1A6Fc7C43c2B216f683b83fA3F9fF4FBD1aeDE7De6c6cbE5ed\",\n \"name\": \"\",\n \"baseName\": \"\",\n \"metadata\": {\n \"automationLibrary\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"sdk\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"url\": \"\",\n \"viewport\": {\n \"width\": \"\",\n \"height\": \"\"\n },\n \"colorScheme\": \"light\",\n \"mediaType\": \"print\",\n \"test\": {\n \"title\": \"\",\n \"titlePath\": [\n \"\",\n \"\"\n ],\n \"id\": \"\",\n \"retries\": \"\",\n \"retry\": \"\",\n \"repeat\": \"\",\n \"location\": {\n \"file\": \"\",\n \"line\": \"\",\n \"column\": \"\"\n }\n },\n \"browser\": {\n \"name\": \"\",\n \"version\": \"\"\n }\n },\n \"pwTraceKey\": \"9fBA3DfaB0CDB658C6578B2aEcA414ba3ABE80D4E6a67ECD47f6BAbEF230eb4f\",\n \"threshold\": \"\"\n }\n ],\n \"parallel\": \"\",\n \"parallelTotal\": \"\",\n \"parallelIndex\": \"\",\n \"metadata\": {\n \"testReport\": {\n \"status\": \"interrupted\",\n \"stats\": {\n \"startTime\": \"\",\n \"duration\": \"\"\n }\n }\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/builds/:buildId", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "builds", + ":buildId" + ], + "variable": [ + { + "key": "buildId", + "value": "", + "description": "(Required) A unique identifier for the build" + } + ] + } + }, + "response": [ + { + "name": "Result of build update", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"screenshots\": [\n {\n \"key\": \"dddb9b1CfBcfFbE683bAEBDffDb6aA76F36b83a4eCbd0bE721E8cb9FaC10b158\",\n \"name\": \"\",\n \"baseName\": \"\",\n \"metadata\": {\n \"automationLibrary\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"sdk\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"url\": \"\",\n \"viewport\": {\n \"width\": \"\",\n \"height\": \"\"\n },\n \"colorScheme\": \"light\",\n \"mediaType\": \"screen\",\n \"test\": {\n \"title\": \"\",\n \"titlePath\": [\n \"\",\n \"\"\n ],\n \"id\": \"\",\n \"retries\": \"\",\n \"retry\": \"\",\n \"repeat\": \"\",\n \"location\": {\n \"file\": \"\",\n \"line\": \"\",\n \"column\": \"\"\n }\n },\n \"browser\": {\n \"name\": \"\",\n \"version\": \"\"\n }\n },\n \"pwTraceKey\": \"CF6e3FD38c47Fe92dc50C16D5AA9A1AD975fACeE234a13cF1ef1556dEB35A62D\",\n \"threshold\": \"\"\n },\n {\n \"key\": \"2C6166A95a2a3F1A6Fc7C43c2B216f683b83fA3F9fF4FBD1aeDE7De6c6cbE5ed\",\n \"name\": \"\",\n \"baseName\": \"\",\n \"metadata\": {\n \"automationLibrary\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"sdk\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"url\": \"\",\n \"viewport\": {\n \"width\": \"\",\n \"height\": \"\"\n },\n \"colorScheme\": \"light\",\n \"mediaType\": \"print\",\n \"test\": {\n \"title\": \"\",\n \"titlePath\": [\n \"\",\n \"\"\n ],\n \"id\": \"\",\n \"retries\": \"\",\n \"retry\": \"\",\n \"repeat\": \"\",\n \"location\": {\n \"file\": \"\",\n \"line\": \"\",\n \"column\": \"\"\n }\n },\n \"browser\": {\n \"name\": \"\",\n \"version\": \"\"\n }\n },\n \"pwTraceKey\": \"9fBA3DfaB0CDB658C6578B2aEcA414ba3ABE80D4E6a67ECD47f6BAbEF230eb4f\",\n \"threshold\": \"\"\n }\n ],\n \"parallel\": \"\",\n \"parallelTotal\": \"\",\n \"parallelIndex\": \"\",\n \"metadata\": {\n \"testReport\": {\n \"status\": \"interrupted\",\n \"stats\": {\n \"startTime\": \"\",\n \"duration\": \"\"\n }\n }\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/builds/:buildId", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "builds", + ":buildId" + ], + "variable": [ + { + "key": "buildId" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"build\": {\n \"id\": \"\",\n \"number\": \"\",\n \"status\": \"rejected\",\n \"url\": \"\",\n \"notification\": {\n \"description\": \"\",\n \"context\": \"\",\n \"github\": {\n \"state\": \"success\"\n },\n \"gitlab\": {\n \"state\": \"pending\"\n }\n }\n }\n}" + }, + { + "name": "Invalid parameters", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"screenshots\": [\n {\n \"key\": \"dddb9b1CfBcfFbE683bAEBDffDb6aA76F36b83a4eCbd0bE721E8cb9FaC10b158\",\n \"name\": \"\",\n \"baseName\": \"\",\n \"metadata\": {\n \"automationLibrary\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"sdk\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"url\": \"\",\n \"viewport\": {\n \"width\": \"\",\n \"height\": \"\"\n },\n \"colorScheme\": \"light\",\n \"mediaType\": \"screen\",\n \"test\": {\n \"title\": \"\",\n \"titlePath\": [\n \"\",\n \"\"\n ],\n \"id\": \"\",\n \"retries\": \"\",\n \"retry\": \"\",\n \"repeat\": \"\",\n \"location\": {\n \"file\": \"\",\n \"line\": \"\",\n \"column\": \"\"\n }\n },\n \"browser\": {\n \"name\": \"\",\n \"version\": \"\"\n }\n },\n \"pwTraceKey\": \"CF6e3FD38c47Fe92dc50C16D5AA9A1AD975fACeE234a13cF1ef1556dEB35A62D\",\n \"threshold\": \"\"\n },\n {\n \"key\": \"2C6166A95a2a3F1A6Fc7C43c2B216f683b83fA3F9fF4FBD1aeDE7De6c6cbE5ed\",\n \"name\": \"\",\n \"baseName\": \"\",\n \"metadata\": {\n \"automationLibrary\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"sdk\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"url\": \"\",\n \"viewport\": {\n \"width\": \"\",\n \"height\": \"\"\n },\n \"colorScheme\": \"light\",\n \"mediaType\": \"print\",\n \"test\": {\n \"title\": \"\",\n \"titlePath\": [\n \"\",\n \"\"\n ],\n \"id\": \"\",\n \"retries\": \"\",\n \"retry\": \"\",\n \"repeat\": \"\",\n \"location\": {\n \"file\": \"\",\n \"line\": \"\",\n \"column\": \"\"\n }\n },\n \"browser\": {\n \"name\": \"\",\n \"version\": \"\"\n }\n },\n \"pwTraceKey\": \"9fBA3DfaB0CDB658C6578B2aEcA414ba3ABE80D4E6a67ECD47f6BAbEF230eb4f\",\n \"threshold\": \"\"\n }\n ],\n \"parallel\": \"\",\n \"parallelTotal\": \"\",\n \"parallelIndex\": \"\",\n \"metadata\": {\n \"testReport\": {\n \"status\": \"interrupted\",\n \"stats\": {\n \"startTime\": \"\",\n \"duration\": \"\"\n }\n }\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/builds/:buildId", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "builds", + ":buildId" + ], + "variable": [ + { + "key": "buildId" + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"error\": \"\",\n \"details\": [\n {\n \"message\": \"\"\n },\n {\n \"message\": \"\"\n }\n ]\n}" + }, + { + "name": "Unauthorized", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"screenshots\": [\n {\n \"key\": \"dddb9b1CfBcfFbE683bAEBDffDb6aA76F36b83a4eCbd0bE721E8cb9FaC10b158\",\n \"name\": \"\",\n \"baseName\": \"\",\n \"metadata\": {\n \"automationLibrary\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"sdk\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"url\": \"\",\n \"viewport\": {\n \"width\": \"\",\n \"height\": \"\"\n },\n \"colorScheme\": \"light\",\n \"mediaType\": \"screen\",\n \"test\": {\n \"title\": \"\",\n \"titlePath\": [\n \"\",\n \"\"\n ],\n \"id\": \"\",\n \"retries\": \"\",\n \"retry\": \"\",\n \"repeat\": \"\",\n \"location\": {\n \"file\": \"\",\n \"line\": \"\",\n \"column\": \"\"\n }\n },\n \"browser\": {\n \"name\": \"\",\n \"version\": \"\"\n }\n },\n \"pwTraceKey\": \"CF6e3FD38c47Fe92dc50C16D5AA9A1AD975fACeE234a13cF1ef1556dEB35A62D\",\n \"threshold\": \"\"\n },\n {\n \"key\": \"2C6166A95a2a3F1A6Fc7C43c2B216f683b83fA3F9fF4FBD1aeDE7De6c6cbE5ed\",\n \"name\": \"\",\n \"baseName\": \"\",\n \"metadata\": {\n \"automationLibrary\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"sdk\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"url\": \"\",\n \"viewport\": {\n \"width\": \"\",\n \"height\": \"\"\n },\n \"colorScheme\": \"light\",\n \"mediaType\": \"print\",\n \"test\": {\n \"title\": \"\",\n \"titlePath\": [\n \"\",\n \"\"\n ],\n \"id\": \"\",\n \"retries\": \"\",\n \"retry\": \"\",\n \"repeat\": \"\",\n \"location\": {\n \"file\": \"\",\n \"line\": \"\",\n \"column\": \"\"\n }\n },\n \"browser\": {\n \"name\": \"\",\n \"version\": \"\"\n }\n },\n \"pwTraceKey\": \"9fBA3DfaB0CDB658C6578B2aEcA414ba3ABE80D4E6a67ECD47f6BAbEF230eb4f\",\n \"threshold\": \"\"\n }\n ],\n \"parallel\": \"\",\n \"parallelTotal\": \"\",\n \"parallelIndex\": \"\",\n \"metadata\": {\n \"testReport\": {\n \"status\": \"interrupted\",\n \"stats\": {\n \"startTime\": \"\",\n \"duration\": \"\"\n }\n }\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/builds/:buildId", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "builds", + ":buildId" + ], + "variable": [ + { + "key": "buildId" + } + ] + } + }, + "status": "Unauthorized", + "code": 401, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"error\": \"\",\n \"details\": [\n {\n \"message\": \"\"\n },\n {\n \"message\": \"\"\n }\n ]\n}" + }, + { + "name": "Forbidden", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"screenshots\": [\n {\n \"key\": \"dddb9b1CfBcfFbE683bAEBDffDb6aA76F36b83a4eCbd0bE721E8cb9FaC10b158\",\n \"name\": \"\",\n \"baseName\": \"\",\n \"metadata\": {\n \"automationLibrary\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"sdk\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"url\": \"\",\n \"viewport\": {\n \"width\": \"\",\n \"height\": \"\"\n },\n \"colorScheme\": \"light\",\n \"mediaType\": \"screen\",\n \"test\": {\n \"title\": \"\",\n \"titlePath\": [\n \"\",\n \"\"\n ],\n \"id\": \"\",\n \"retries\": \"\",\n \"retry\": \"\",\n \"repeat\": \"\",\n \"location\": {\n \"file\": \"\",\n \"line\": \"\",\n \"column\": \"\"\n }\n },\n \"browser\": {\n \"name\": \"\",\n \"version\": \"\"\n }\n },\n \"pwTraceKey\": \"CF6e3FD38c47Fe92dc50C16D5AA9A1AD975fACeE234a13cF1ef1556dEB35A62D\",\n \"threshold\": \"\"\n },\n {\n \"key\": \"2C6166A95a2a3F1A6Fc7C43c2B216f683b83fA3F9fF4FBD1aeDE7De6c6cbE5ed\",\n \"name\": \"\",\n \"baseName\": \"\",\n \"metadata\": {\n \"automationLibrary\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"sdk\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"url\": \"\",\n \"viewport\": {\n \"width\": \"\",\n \"height\": \"\"\n },\n \"colorScheme\": \"light\",\n \"mediaType\": \"print\",\n \"test\": {\n \"title\": \"\",\n \"titlePath\": [\n \"\",\n \"\"\n ],\n \"id\": \"\",\n \"retries\": \"\",\n \"retry\": \"\",\n \"repeat\": \"\",\n \"location\": {\n \"file\": \"\",\n \"line\": \"\",\n \"column\": \"\"\n }\n },\n \"browser\": {\n \"name\": \"\",\n \"version\": \"\"\n }\n },\n \"pwTraceKey\": \"9fBA3DfaB0CDB658C6578B2aEcA414ba3ABE80D4E6a67ECD47f6BAbEF230eb4f\",\n \"threshold\": \"\"\n }\n ],\n \"parallel\": \"\",\n \"parallelTotal\": \"\",\n \"parallelIndex\": \"\",\n \"metadata\": {\n \"testReport\": {\n \"status\": \"interrupted\",\n \"stats\": {\n \"startTime\": \"\",\n \"duration\": \"\"\n }\n }\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/builds/:buildId", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "builds", + ":buildId" + ], + "variable": [ + { + "key": "buildId" + } + ] + } + }, + "status": "Forbidden", + "code": 403, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"error\": \"\",\n \"details\": [\n {\n \"message\": \"\"\n },\n {\n \"message\": \"\"\n }\n ]\n}" + }, + { + "name": "Not found", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"screenshots\": [\n {\n \"key\": \"dddb9b1CfBcfFbE683bAEBDffDb6aA76F36b83a4eCbd0bE721E8cb9FaC10b158\",\n \"name\": \"\",\n \"baseName\": \"\",\n \"metadata\": {\n \"automationLibrary\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"sdk\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"url\": \"\",\n \"viewport\": {\n \"width\": \"\",\n \"height\": \"\"\n },\n \"colorScheme\": \"light\",\n \"mediaType\": \"screen\",\n \"test\": {\n \"title\": \"\",\n \"titlePath\": [\n \"\",\n \"\"\n ],\n \"id\": \"\",\n \"retries\": \"\",\n \"retry\": \"\",\n \"repeat\": \"\",\n \"location\": {\n \"file\": \"\",\n \"line\": \"\",\n \"column\": \"\"\n }\n },\n \"browser\": {\n \"name\": \"\",\n \"version\": \"\"\n }\n },\n \"pwTraceKey\": \"CF6e3FD38c47Fe92dc50C16D5AA9A1AD975fACeE234a13cF1ef1556dEB35A62D\",\n \"threshold\": \"\"\n },\n {\n \"key\": \"2C6166A95a2a3F1A6Fc7C43c2B216f683b83fA3F9fF4FBD1aeDE7De6c6cbE5ed\",\n \"name\": \"\",\n \"baseName\": \"\",\n \"metadata\": {\n \"automationLibrary\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"sdk\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"url\": \"\",\n \"viewport\": {\n \"width\": \"\",\n \"height\": \"\"\n },\n \"colorScheme\": \"light\",\n \"mediaType\": \"print\",\n \"test\": {\n \"title\": \"\",\n \"titlePath\": [\n \"\",\n \"\"\n ],\n \"id\": \"\",\n \"retries\": \"\",\n \"retry\": \"\",\n \"repeat\": \"\",\n \"location\": {\n \"file\": \"\",\n \"line\": \"\",\n \"column\": \"\"\n }\n },\n \"browser\": {\n \"name\": \"\",\n \"version\": \"\"\n }\n },\n \"pwTraceKey\": \"9fBA3DfaB0CDB658C6578B2aEcA414ba3ABE80D4E6a67ECD47f6BAbEF230eb4f\",\n \"threshold\": \"\"\n }\n ],\n \"parallel\": \"\",\n \"parallelTotal\": \"\",\n \"parallelIndex\": \"\",\n \"metadata\": {\n \"testReport\": {\n \"status\": \"interrupted\",\n \"stats\": {\n \"startTime\": \"\",\n \"duration\": \"\"\n }\n }\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/builds/:buildId", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "builds", + ":buildId" + ], + "variable": [ + { + "key": "buildId" + } + ] + } + }, + "status": "Not Found", + "code": 404, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"error\": \"\",\n \"details\": [\n {\n \"message\": \"\"\n },\n {\n \"message\": \"\"\n }\n ]\n}" + }, + { + "name": "Conflict", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"screenshots\": [\n {\n \"key\": \"dddb9b1CfBcfFbE683bAEBDffDb6aA76F36b83a4eCbd0bE721E8cb9FaC10b158\",\n \"name\": \"\",\n \"baseName\": \"\",\n \"metadata\": {\n \"automationLibrary\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"sdk\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"url\": \"\",\n \"viewport\": {\n \"width\": \"\",\n \"height\": \"\"\n },\n \"colorScheme\": \"light\",\n \"mediaType\": \"screen\",\n \"test\": {\n \"title\": \"\",\n \"titlePath\": [\n \"\",\n \"\"\n ],\n \"id\": \"\",\n \"retries\": \"\",\n \"retry\": \"\",\n \"repeat\": \"\",\n \"location\": {\n \"file\": \"\",\n \"line\": \"\",\n \"column\": \"\"\n }\n },\n \"browser\": {\n \"name\": \"\",\n \"version\": \"\"\n }\n },\n \"pwTraceKey\": \"CF6e3FD38c47Fe92dc50C16D5AA9A1AD975fACeE234a13cF1ef1556dEB35A62D\",\n \"threshold\": \"\"\n },\n {\n \"key\": \"2C6166A95a2a3F1A6Fc7C43c2B216f683b83fA3F9fF4FBD1aeDE7De6c6cbE5ed\",\n \"name\": \"\",\n \"baseName\": \"\",\n \"metadata\": {\n \"automationLibrary\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"sdk\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"url\": \"\",\n \"viewport\": {\n \"width\": \"\",\n \"height\": \"\"\n },\n \"colorScheme\": \"light\",\n \"mediaType\": \"print\",\n \"test\": {\n \"title\": \"\",\n \"titlePath\": [\n \"\",\n \"\"\n ],\n \"id\": \"\",\n \"retries\": \"\",\n \"retry\": \"\",\n \"repeat\": \"\",\n \"location\": {\n \"file\": \"\",\n \"line\": \"\",\n \"column\": \"\"\n }\n },\n \"browser\": {\n \"name\": \"\",\n \"version\": \"\"\n }\n },\n \"pwTraceKey\": \"9fBA3DfaB0CDB658C6578B2aEcA414ba3ABE80D4E6a67ECD47f6BAbEF230eb4f\",\n \"threshold\": \"\"\n }\n ],\n \"parallel\": \"\",\n \"parallelTotal\": \"\",\n \"parallelIndex\": \"\",\n \"metadata\": {\n \"testReport\": {\n \"status\": \"interrupted\",\n \"stats\": {\n \"startTime\": \"\",\n \"duration\": \"\"\n }\n }\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/builds/:buildId", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "builds", + ":buildId" + ], + "variable": [ + { + "key": "buildId" + } + ] + } + }, + "status": "Conflict", + "code": 409, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"error\": \"\",\n \"details\": [\n {\n \"message\": \"\"\n },\n {\n \"message\": \"\"\n }\n ]\n}" + }, + { + "name": "Server error", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"screenshots\": [\n {\n \"key\": \"dddb9b1CfBcfFbE683bAEBDffDb6aA76F36b83a4eCbd0bE721E8cb9FaC10b158\",\n \"name\": \"\",\n \"baseName\": \"\",\n \"metadata\": {\n \"automationLibrary\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"sdk\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"url\": \"\",\n \"viewport\": {\n \"width\": \"\",\n \"height\": \"\"\n },\n \"colorScheme\": \"light\",\n \"mediaType\": \"screen\",\n \"test\": {\n \"title\": \"\",\n \"titlePath\": [\n \"\",\n \"\"\n ],\n \"id\": \"\",\n \"retries\": \"\",\n \"retry\": \"\",\n \"repeat\": \"\",\n \"location\": {\n \"file\": \"\",\n \"line\": \"\",\n \"column\": \"\"\n }\n },\n \"browser\": {\n \"name\": \"\",\n \"version\": \"\"\n }\n },\n \"pwTraceKey\": \"CF6e3FD38c47Fe92dc50C16D5AA9A1AD975fACeE234a13cF1ef1556dEB35A62D\",\n \"threshold\": \"\"\n },\n {\n \"key\": \"2C6166A95a2a3F1A6Fc7C43c2B216f683b83fA3F9fF4FBD1aeDE7De6c6cbE5ed\",\n \"name\": \"\",\n \"baseName\": \"\",\n \"metadata\": {\n \"automationLibrary\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"sdk\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"url\": \"\",\n \"viewport\": {\n \"width\": \"\",\n \"height\": \"\"\n },\n \"colorScheme\": \"light\",\n \"mediaType\": \"print\",\n \"test\": {\n \"title\": \"\",\n \"titlePath\": [\n \"\",\n \"\"\n ],\n \"id\": \"\",\n \"retries\": \"\",\n \"retry\": \"\",\n \"repeat\": \"\",\n \"location\": {\n \"file\": \"\",\n \"line\": \"\",\n \"column\": \"\"\n }\n },\n \"browser\": {\n \"name\": \"\",\n \"version\": \"\"\n }\n },\n \"pwTraceKey\": \"9fBA3DfaB0CDB658C6578B2aEcA414ba3ABE80D4E6a67ECD47f6BAbEF230eb4f\",\n \"threshold\": \"\"\n }\n ],\n \"parallel\": \"\",\n \"parallelTotal\": \"\",\n \"parallelIndex\": \"\",\n \"metadata\": {\n \"testReport\": {\n \"status\": \"interrupted\",\n \"stats\": {\n \"startTime\": \"\",\n \"duration\": \"\"\n }\n }\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/builds/:buildId", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "builds", + ":buildId" + ], + "variable": [ + { + "key": "buildId" + } + ] + } + }, + "status": "Internal Server Error", + "code": 500, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"error\": \"\",\n \"details\": [\n {\n \"message\": \"\"\n },\n {\n \"message\": \"\"\n }\n ]\n}" + } + ] + } + ] + }, + { + "name": "create Build", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"commit\": \"32cf3db005dd7a943832c4d0098670c8a7b54ad4\",\n \"branch\": \"\",\n \"screenshotKeys\": [\n \"Fb500DBdFcb20FB3D79CDCdeDF8e6ED6ebaAA895Ab24cAc01aBefbBDA5Cdd4AE\",\n \"BDE542fC68bf8857Bf14Cd886a18B9cccCAdC57B34D5EcB52D746ba274CacFea\"\n ],\n \"pwTraceKeys\": [\n \"2f39aDcD30933EFdd2ce563AC8DF78602Bfcddd3edbb9FE5f3bA1A1EB2b9a8e5\",\n \"C9FF2Acc0F277dAF5b77fb4FCbd08c23FedEbd792a04c3BFeE4cB7d75533Cbf2\"\n ],\n \"name\": \"\",\n \"parallel\": \"\",\n \"parallelNonce\": \"\",\n \"prNumber\": \"\",\n \"prHeadCommit\": \"\",\n \"referenceCommit\": \"\",\n \"referenceBranch\": \"\",\n \"mode\": \"ci\",\n \"ciProvider\": \"\",\n \"argosSdk\": \"\",\n \"runId\": \"\",\n \"runAttempt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": "{{baseUrl}}/builds" + }, + "response": [ + { + "name": "Result of build creation", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"commit\": \"32cf3db005dd7a943832c4d0098670c8a7b54ad4\",\n \"branch\": \"\",\n \"screenshotKeys\": [\n \"Fb500DBdFcb20FB3D79CDCdeDF8e6ED6ebaAA895Ab24cAc01aBefbBDA5Cdd4AE\",\n \"BDE542fC68bf8857Bf14Cd886a18B9cccCAdC57B34D5EcB52D746ba274CacFea\"\n ],\n \"pwTraceKeys\": [\n \"2f39aDcD30933EFdd2ce563AC8DF78602Bfcddd3edbb9FE5f3bA1A1EB2b9a8e5\",\n \"C9FF2Acc0F277dAF5b77fb4FCbd08c23FedEbd792a04c3BFeE4cB7d75533Cbf2\"\n ],\n \"name\": \"\",\n \"parallel\": \"\",\n \"parallelNonce\": \"\",\n \"prNumber\": \"\",\n \"prHeadCommit\": \"\",\n \"referenceCommit\": \"\",\n \"referenceBranch\": \"\",\n \"mode\": \"ci\",\n \"ciProvider\": \"\",\n \"argosSdk\": \"\",\n \"runId\": \"\",\n \"runAttempt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": "{{baseUrl}}/builds" + }, + "status": "Created", + "code": 201, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"build\": {\n \"id\": \"\",\n \"number\": \"\",\n \"status\": \"rejected\",\n \"url\": \"\",\n \"notification\": {\n \"description\": \"\",\n \"context\": \"\",\n \"github\": {\n \"state\": \"success\"\n },\n \"gitlab\": {\n \"state\": \"failed\"\n }\n }\n },\n \"screenshots\": [\n {\n \"key\": \"\",\n \"putUrl\": \"\"\n },\n {\n \"key\": \"\",\n \"putUrl\": \"\"\n }\n ],\n \"pwTraces\": [\n {\n \"key\": \"\",\n \"putUrl\": \"\"\n },\n {\n \"key\": \"\",\n \"putUrl\": \"\"\n }\n ]\n}" + }, + { + "name": "Invalid parameters", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"commit\": \"32cf3db005dd7a943832c4d0098670c8a7b54ad4\",\n \"branch\": \"\",\n \"screenshotKeys\": [\n \"Fb500DBdFcb20FB3D79CDCdeDF8e6ED6ebaAA895Ab24cAc01aBefbBDA5Cdd4AE\",\n \"BDE542fC68bf8857Bf14Cd886a18B9cccCAdC57B34D5EcB52D746ba274CacFea\"\n ],\n \"pwTraceKeys\": [\n \"2f39aDcD30933EFdd2ce563AC8DF78602Bfcddd3edbb9FE5f3bA1A1EB2b9a8e5\",\n \"C9FF2Acc0F277dAF5b77fb4FCbd08c23FedEbd792a04c3BFeE4cB7d75533Cbf2\"\n ],\n \"name\": \"\",\n \"parallel\": \"\",\n \"parallelNonce\": \"\",\n \"prNumber\": \"\",\n \"prHeadCommit\": \"\",\n \"referenceCommit\": \"\",\n \"referenceBranch\": \"\",\n \"mode\": \"ci\",\n \"ciProvider\": \"\",\n \"argosSdk\": \"\",\n \"runId\": \"\",\n \"runAttempt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": "{{baseUrl}}/builds" + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"error\": \"\",\n \"details\": [\n {\n \"message\": \"\"\n },\n {\n \"message\": \"\"\n }\n ]\n}" + }, + { + "name": "Unauthorized", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"commit\": \"32cf3db005dd7a943832c4d0098670c8a7b54ad4\",\n \"branch\": \"\",\n \"screenshotKeys\": [\n \"Fb500DBdFcb20FB3D79CDCdeDF8e6ED6ebaAA895Ab24cAc01aBefbBDA5Cdd4AE\",\n \"BDE542fC68bf8857Bf14Cd886a18B9cccCAdC57B34D5EcB52D746ba274CacFea\"\n ],\n \"pwTraceKeys\": [\n \"2f39aDcD30933EFdd2ce563AC8DF78602Bfcddd3edbb9FE5f3bA1A1EB2b9a8e5\",\n \"C9FF2Acc0F277dAF5b77fb4FCbd08c23FedEbd792a04c3BFeE4cB7d75533Cbf2\"\n ],\n \"name\": \"\",\n \"parallel\": \"\",\n \"parallelNonce\": \"\",\n \"prNumber\": \"\",\n \"prHeadCommit\": \"\",\n \"referenceCommit\": \"\",\n \"referenceBranch\": \"\",\n \"mode\": \"ci\",\n \"ciProvider\": \"\",\n \"argosSdk\": \"\",\n \"runId\": \"\",\n \"runAttempt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": "{{baseUrl}}/builds" + }, + "status": "Unauthorized", + "code": 401, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"error\": \"\",\n \"details\": [\n {\n \"message\": \"\"\n },\n {\n \"message\": \"\"\n }\n ]\n}" + }, + { + "name": "Conflict", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"commit\": \"32cf3db005dd7a943832c4d0098670c8a7b54ad4\",\n \"branch\": \"\",\n \"screenshotKeys\": [\n \"Fb500DBdFcb20FB3D79CDCdeDF8e6ED6ebaAA895Ab24cAc01aBefbBDA5Cdd4AE\",\n \"BDE542fC68bf8857Bf14Cd886a18B9cccCAdC57B34D5EcB52D746ba274CacFea\"\n ],\n \"pwTraceKeys\": [\n \"2f39aDcD30933EFdd2ce563AC8DF78602Bfcddd3edbb9FE5f3bA1A1EB2b9a8e5\",\n \"C9FF2Acc0F277dAF5b77fb4FCbd08c23FedEbd792a04c3BFeE4cB7d75533Cbf2\"\n ],\n \"name\": \"\",\n \"parallel\": \"\",\n \"parallelNonce\": \"\",\n \"prNumber\": \"\",\n \"prHeadCommit\": \"\",\n \"referenceCommit\": \"\",\n \"referenceBranch\": \"\",\n \"mode\": \"ci\",\n \"ciProvider\": \"\",\n \"argosSdk\": \"\",\n \"runId\": \"\",\n \"runAttempt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": "{{baseUrl}}/builds" + }, + "status": "Conflict", + "code": 409, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"error\": \"\",\n \"details\": [\n {\n \"message\": \"\"\n },\n {\n \"message\": \"\"\n }\n ]\n}" + }, + { + "name": "Server error", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"commit\": \"32cf3db005dd7a943832c4d0098670c8a7b54ad4\",\n \"branch\": \"\",\n \"screenshotKeys\": [\n \"Fb500DBdFcb20FB3D79CDCdeDF8e6ED6ebaAA895Ab24cAc01aBefbBDA5Cdd4AE\",\n \"BDE542fC68bf8857Bf14Cd886a18B9cccCAdC57B34D5EcB52D746ba274CacFea\"\n ],\n \"pwTraceKeys\": [\n \"2f39aDcD30933EFdd2ce563AC8DF78602Bfcddd3edbb9FE5f3bA1A1EB2b9a8e5\",\n \"C9FF2Acc0F277dAF5b77fb4FCbd08c23FedEbd792a04c3BFeE4cB7d75533Cbf2\"\n ],\n \"name\": \"\",\n \"parallel\": \"\",\n \"parallelNonce\": \"\",\n \"prNumber\": \"\",\n \"prHeadCommit\": \"\",\n \"referenceCommit\": \"\",\n \"referenceBranch\": \"\",\n \"mode\": \"ci\",\n \"ciProvider\": \"\",\n \"argosSdk\": \"\",\n \"runId\": \"\",\n \"runAttempt\": \"\"\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": "{{baseUrl}}/builds" + }, + "status": "Internal Server Error", + "code": 500, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"error\": \"\",\n \"details\": [\n {\n \"message\": \"\"\n },\n {\n \"message\": \"\"\n }\n ]\n}" + } + ] + } + ] + }, + { + "name": "project", + "item": [ + { + "name": "builds", + "item": [ + { + "name": "get Auth Project Builds", + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/project/builds?perPage=&page=&commit=8419e150939eb8e50b0dd2a817574890cfa90270&distinctName=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "project", + "builds" + ], + "query": [ + { + "key": "perPage", + "value": "", + "description": "Number of items per page (max 100)" + }, + { + "key": "page", + "value": "", + "description": "Page number" + }, + { + "key": "commit", + "value": "8419e150939eb8e50b0dd2a817574890cfa90270" + }, + { + "key": "distinctName", + "value": "", + "description": "Only return the latest builds created, unique by name and commit." + } + ] + } + }, + "response": [ + { + "name": "List of builds", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "url": { + "raw": "{{baseUrl}}/project/builds?perPage=&page=&commit=8419e150939eb8e50b0dd2a817574890cfa90270&distinctName=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "project", + "builds" + ], + "query": [ + { + "key": "perPage", + "value": "", + "description": "Number of items per page (max 100)" + }, + { + "key": "page", + "value": "", + "description": "Page number" + }, + { + "key": "commit", + "value": "8419e150939eb8e50b0dd2a817574890cfa90270" + }, + { + "key": "distinctName", + "value": "", + "description": "Only return the latest builds created, unique by name and commit." + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"pageInfo\": {\n \"total\": \"\",\n \"page\": \"\",\n \"perPage\": \"\"\n },\n \"results\": [\n {\n \"id\": \"\",\n \"number\": \"\",\n \"status\": \"accepted\",\n \"url\": \"\",\n \"notification\": {\n \"description\": \"\",\n \"context\": \"\",\n \"github\": {\n \"state\": \"error\"\n },\n \"gitlab\": {\n \"state\": \"canceled\"\n }\n }\n },\n {\n \"id\": \"\",\n \"number\": \"\",\n \"status\": \"accepted\",\n \"url\": \"\",\n \"notification\": {\n \"description\": \"\",\n \"context\": \"\",\n \"github\": {\n \"state\": \"pending\"\n },\n \"gitlab\": {\n \"state\": \"canceled\"\n }\n }\n }\n ]\n}" + }, + { + "name": "Invalid parameters", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "url": { + "raw": "{{baseUrl}}/project/builds?perPage=&page=&commit=8419e150939eb8e50b0dd2a817574890cfa90270&distinctName=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "project", + "builds" + ], + "query": [ + { + "key": "perPage", + "value": "", + "description": "Number of items per page (max 100)" + }, + { + "key": "page", + "value": "", + "description": "Page number" + }, + { + "key": "commit", + "value": "8419e150939eb8e50b0dd2a817574890cfa90270" + }, + { + "key": "distinctName", + "value": "", + "description": "Only return the latest builds created, unique by name and commit." + } + ] + } + }, + "status": "Bad Request", + "code": 400, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"error\": \"\",\n \"details\": [\n {\n \"message\": \"\"\n },\n {\n \"message\": \"\"\n }\n ]\n}" + }, + { + "name": "Unauthorized", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "url": { + "raw": "{{baseUrl}}/project/builds?perPage=&page=&commit=8419e150939eb8e50b0dd2a817574890cfa90270&distinctName=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "project", + "builds" + ], + "query": [ + { + "key": "perPage", + "value": "", + "description": "Number of items per page (max 100)" + }, + { + "key": "page", + "value": "", + "description": "Page number" + }, + { + "key": "commit", + "value": "8419e150939eb8e50b0dd2a817574890cfa90270" + }, + { + "key": "distinctName", + "value": "", + "description": "Only return the latest builds created, unique by name and commit." + } + ] + } + }, + "status": "Unauthorized", + "code": 401, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"error\": \"\",\n \"details\": [\n {\n \"message\": \"\"\n },\n {\n \"message\": \"\"\n }\n ]\n}" + }, + { + "name": "Server error", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "url": { + "raw": "{{baseUrl}}/project/builds?perPage=&page=&commit=8419e150939eb8e50b0dd2a817574890cfa90270&distinctName=", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "project", + "builds" + ], + "query": [ + { + "key": "perPage", + "value": "", + "description": "Number of items per page (max 100)" + }, + { + "key": "page", + "value": "", + "description": "Page number" + }, + { + "key": "commit", + "value": "8419e150939eb8e50b0dd2a817574890cfa90270" + }, + { + "key": "distinctName", + "value": "", + "description": "Only return the latest builds created, unique by name and commit." + } + ] + } + }, + "status": "Internal Server Error", + "code": 500, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"error\": \"\",\n \"details\": [\n {\n \"message\": \"\"\n },\n {\n \"message\": \"\"\n }\n ]\n}" + } + ] + } + ] + }, + { + "name": "get Auth Project", + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": "{{baseUrl}}/project" + }, + "response": [ + { + "name": "Project", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "url": "{{baseUrl}}/project" + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"id\": \"\",\n \"defaultBaseBranch\": \"\",\n \"hasRemoteContentAccess\": \"\"\n}" + }, + { + "name": "Unauthorized", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "url": "{{baseUrl}}/project" + }, + "status": "Unauthorized", + "code": 401, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"error\": \"\",\n \"details\": [\n {\n \"message\": \"\"\n },\n {\n \"message\": \"\"\n }\n ]\n}" + }, + { + "name": "Server error", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Bearer ", + "description": "Added as a part of security scheme: bearer" + } + ], + "url": "{{baseUrl}}/project" + }, + "status": "Internal Server Error", + "code": 500, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"error\": \"\",\n \"details\": [\n {\n \"message\": \"\"\n },\n {\n \"message\": \"\"\n }\n ]\n}" + } + ] + } + ] + } + ], + "auth": { + "type": "bearer", + "bearer": { + "token": "REDACTED" + } + }, + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "packages": {}, + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "packages": {}, + "exec": [ + "" + ] + } + } + ], + "variable": [ + { + "key": "baseUrl", + "value": "https://api.argos-ci.com/v2" + } + ] +} \ No newline at end of file diff --git a/packages/ui/test-data/postman-import-v2/Restfox_2024-09-06.json b/packages/ui/test-data/postman-import-v2/Restfox_2024-09-06.json new file mode 100644 index 00000000..b428f47f --- /dev/null +++ b/packages/ui/test-data/postman-import-v2/Restfox_2024-09-06.json @@ -0,0 +1,217 @@ +{ + "exportedFrom": "Restfox-1.0.0", + "collection": [ + { + "_id": "7mOGL17c2r8p2Hdnl56wI", + "_type": "request_group", + "name": "Argos API", + "environment": { + "baseUrl": "https://api.argos-ci.com/v2" + }, + "parentId": null, + "workspaceId": "CaLTeYHHtUzY6uNnNYpYN", + "sortOrder": 0, + "plugins": [] + }, + { + "_id": "9JtTrqEcieNgC8vVx8gIE", + "_type": "request", + "method": "PUT", + "url": "{{baseUrl}}/builds/:buildId", + "name": "update Build", + "body": { + "mimeType": "application/json", + "text": "{\n \"screenshots\": [\n {\n \"key\": \"dddb9b1CfBcfFbE683bAEBDffDb6aA76F36b83a4eCbd0bE721E8cb9FaC10b158\",\n \"name\": \"\",\n \"baseName\": \"\",\n \"metadata\": {\n \"automationLibrary\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"sdk\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"url\": \"\",\n \"viewport\": {\n \"width\": \"\",\n \"height\": \"\"\n },\n \"colorScheme\": \"light\",\n \"mediaType\": \"screen\",\n \"test\": {\n \"title\": \"\",\n \"titlePath\": [\n \"\",\n \"\"\n ],\n \"id\": \"\",\n \"retries\": \"\",\n \"retry\": \"\",\n \"repeat\": \"\",\n \"location\": {\n \"file\": \"\",\n \"line\": \"\",\n \"column\": \"\"\n }\n },\n \"browser\": {\n \"name\": \"\",\n \"version\": \"\"\n }\n },\n \"pwTraceKey\": \"CF6e3FD38c47Fe92dc50C16D5AA9A1AD975fACeE234a13cF1ef1556dEB35A62D\",\n \"threshold\": \"\"\n },\n {\n \"key\": \"2C6166A95a2a3F1A6Fc7C43c2B216f683b83fA3F9fF4FBD1aeDE7De6c6cbE5ed\",\n \"name\": \"\",\n \"baseName\": \"\",\n \"metadata\": {\n \"automationLibrary\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"sdk\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"url\": \"\",\n \"viewport\": {\n \"width\": \"\",\n \"height\": \"\"\n },\n \"colorScheme\": \"light\",\n \"mediaType\": \"print\",\n \"test\": {\n \"title\": \"\",\n \"titlePath\": [\n \"\",\n \"\"\n ],\n \"id\": \"\",\n \"retries\": \"\",\n \"retry\": \"\",\n \"repeat\": \"\",\n \"location\": {\n \"file\": \"\",\n \"line\": \"\",\n \"column\": \"\"\n }\n },\n \"browser\": {\n \"name\": \"\",\n \"version\": \"\"\n }\n },\n \"pwTraceKey\": \"9fBA3DfaB0CDB658C6578B2aEcA414ba3ABE80D4E6a67ECD47f6BAbEF230eb4f\",\n \"threshold\": \"\"\n }\n ],\n \"parallel\": \"\",\n \"parallelTotal\": \"\",\n \"parallelIndex\": \"\",\n \"metadata\": {\n \"testReport\": {\n \"status\": \"interrupted\",\n \"stats\": {\n \"startTime\": \"\",\n \"duration\": \"\"\n }\n }\n }\n}" + }, + "headers": [ + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Accept", + "value": "application/json" + } + ], + "parameters": [], + "authentication": { + "type": "No Auth" + }, + "parentId": "r7tERQAMqB-NIBwSo9O6d", + "workspaceId": "CaLTeYHHtUzY6uNnNYpYN", + "sortOrder": 0, + "plugins": [] + }, + { + "_id": "CFD9rbeEGUG11xhLMKq6A", + "_type": "request_group", + "name": "builds", + "parentId": "7mOGL17c2r8p2Hdnl56wI", + "workspaceId": "CaLTeYHHtUzY6uNnNYpYN", + "sortOrder": 0, + "plugins": [] + }, + { + "_id": "EwtWwNdCWi1GQsDYkX5K2", + "_type": "request_group", + "name": "builds", + "parentId": "Ja16ikLo71fhzen5zfOBw", + "workspaceId": "CaLTeYHHtUzY6uNnNYpYN", + "sortOrder": 0, + "plugins": [] + }, + { + "_id": "Ja16ikLo71fhzen5zfOBw", + "_type": "request_group", + "name": "project", + "parentId": "7mOGL17c2r8p2Hdnl56wI", + "workspaceId": "CaLTeYHHtUzY6uNnNYpYN", + "sortOrder": 1, + "plugins": [] + }, + { + "_id": "RhcLNtrapCiYu1whl0T2B", + "_type": "request", + "method": "POST", + "url": "{{baseUrl}}/builds/finalize", + "name": "finalize Builds", + "body": { + "mimeType": "application/json", + "text": "{\n \"parallelNonce\": \"\"\n}" + }, + "headers": [ + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Accept", + "value": "application/json" + } + ], + "parameters": [], + "authentication": { + "type": "No Auth" + }, + "parentId": "YUusKG9WGhT_O8kUAQETN", + "workspaceId": "CaLTeYHHtUzY6uNnNYpYN", + "sortOrder": 0, + "plugins": [] + }, + { + "_id": "YUusKG9WGhT_O8kUAQETN", + "_type": "request_group", + "name": "finalize", + "parentId": "CFD9rbeEGUG11xhLMKq6A", + "workspaceId": "CaLTeYHHtUzY6uNnNYpYN", + "sortOrder": 0, + "plugins": [] + }, + { + "_id": "_KVXsHKj2T0GBE4ZApuMQ", + "_type": "request", + "method": "GET", + "url": "{{baseUrl}}/project/builds?perPage=&page=&commit=8419e150939eb8e50b0dd2a817574890cfa90270&distinctName=", + "name": "get Auth Project Builds", + "body": { + "mimeType": "No Body" + }, + "headers": [ + { + "name": "Accept", + "value": "application/json" + } + ], + "parameters": [ + { + "name": "perPage", + "value": "", + "description": "Number of items per page (max 100)" + }, + { + "name": "page", + "value": "", + "description": "Page number" + }, + { + "name": "commit", + "value": "8419e150939eb8e50b0dd2a817574890cfa90270" + }, + { + "name": "distinctName", + "value": "", + "description": "Only return the latest builds created, unique by name and commit." + } + ], + "authentication": { + "type": "No Auth" + }, + "parentId": "EwtWwNdCWi1GQsDYkX5K2", + "workspaceId": "CaLTeYHHtUzY6uNnNYpYN", + "sortOrder": 0, + "plugins": [] + }, + { + "_id": "q7ocK_KEjhenjg8zAHgOK", + "_type": "request", + "method": "GET", + "url": "{{baseUrl}}/project", + "name": "get Auth Project", + "body": { + "mimeType": "No Body" + }, + "headers": [ + { + "name": "Accept", + "value": "application/json" + } + ], + "parameters": [], + "authentication": { + "type": "No Auth" + }, + "parentId": "Ja16ikLo71fhzen5zfOBw", + "workspaceId": "CaLTeYHHtUzY6uNnNYpYN", + "sortOrder": 1, + "plugins": [] + }, + { + "_id": "r7tERQAMqB-NIBwSo9O6d", + "_type": "request_group", + "name": "{buildId}", + "parentId": "CFD9rbeEGUG11xhLMKq6A", + "workspaceId": "CaLTeYHHtUzY6uNnNYpYN", + "sortOrder": 1, + "plugins": [] + }, + { + "_id": "s4Y9pJY4wsnIqUWViYan3", + "_type": "request", + "method": "POST", + "url": "{{baseUrl}}/builds", + "name": "create Build", + "body": { + "mimeType": "application/json", + "text": "{\n \"commit\": \"32cf3db005dd7a943832c4d0098670c8a7b54ad4\",\n \"branch\": \"\",\n \"screenshotKeys\": [\n \"Fb500DBdFcb20FB3D79CDCdeDF8e6ED6ebaAA895Ab24cAc01aBefbBDA5Cdd4AE\",\n \"BDE542fC68bf8857Bf14Cd886a18B9cccCAdC57B34D5EcB52D746ba274CacFea\"\n ],\n \"pwTraceKeys\": [\n \"2f39aDcD30933EFdd2ce563AC8DF78602Bfcddd3edbb9FE5f3bA1A1EB2b9a8e5\",\n \"C9FF2Acc0F277dAF5b77fb4FCbd08c23FedEbd792a04c3BFeE4cB7d75533Cbf2\"\n ],\n \"name\": \"\",\n \"parallel\": \"\",\n \"parallelNonce\": \"\",\n \"prNumber\": \"\",\n \"prHeadCommit\": \"\",\n \"referenceCommit\": \"\",\n \"referenceBranch\": \"\",\n \"mode\": \"ci\",\n \"ciProvider\": \"\",\n \"argosSdk\": \"\",\n \"runId\": \"\",\n \"runAttempt\": \"\"\n}" + }, + "headers": [ + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Accept", + "value": "application/json" + } + ], + "parameters": [], + "authentication": { + "type": "No Auth" + }, + "parentId": "CFD9rbeEGUG11xhLMKq6A", + "workspaceId": "CaLTeYHHtUzY6uNnNYpYN", + "sortOrder": 2, + "plugins": [] + } + ] +} diff --git a/packages/ui/test-data/postman-import-v2/test-snapshot.json b/packages/ui/test-data/postman-import-v2/test-snapshot.json new file mode 100644 index 00000000..2ea9f550 --- /dev/null +++ b/packages/ui/test-data/postman-import-v2/test-snapshot.json @@ -0,0 +1,192 @@ +[ + { + "_type": "request_group", + "name": "{buildId}", + "workspaceId": "CaLTeYHHtUzY6uNnNYpYN", + "sortOrder": 1, + "plugins": [] + }, + { + "_type": "request_group", + "name": "Argos API", + "environment": { + "baseUrl": "https://api.argos-ci.com/v2" + }, + "workspaceId": "CaLTeYHHtUzY6uNnNYpYN", + "sortOrder": 0, + "plugins": [] + }, + { + "_type": "request_group", + "name": "builds", + "workspaceId": "CaLTeYHHtUzY6uNnNYpYN", + "sortOrder": 0, + "plugins": [] + }, + { + "_type": "request_group", + "name": "builds", + "workspaceId": "CaLTeYHHtUzY6uNnNYpYN", + "sortOrder": 0, + "plugins": [] + }, + { + "_type": "request", + "method": "POST", + "url": "{{baseUrl}}/builds", + "name": "create Build", + "body": { + "mimeType": "application/json", + "text": "{\n \"commit\": \"32cf3db005dd7a943832c4d0098670c8a7b54ad4\",\n \"branch\": \"\",\n \"screenshotKeys\": [\n \"Fb500DBdFcb20FB3D79CDCdeDF8e6ED6ebaAA895Ab24cAc01aBefbBDA5Cdd4AE\",\n \"BDE542fC68bf8857Bf14Cd886a18B9cccCAdC57B34D5EcB52D746ba274CacFea\"\n ],\n \"pwTraceKeys\": [\n \"2f39aDcD30933EFdd2ce563AC8DF78602Bfcddd3edbb9FE5f3bA1A1EB2b9a8e5\",\n \"C9FF2Acc0F277dAF5b77fb4FCbd08c23FedEbd792a04c3BFeE4cB7d75533Cbf2\"\n ],\n \"name\": \"\",\n \"parallel\": \"\",\n \"parallelNonce\": \"\",\n \"prNumber\": \"\",\n \"prHeadCommit\": \"\",\n \"referenceCommit\": \"\",\n \"referenceBranch\": \"\",\n \"mode\": \"ci\",\n \"ciProvider\": \"\",\n \"argosSdk\": \"\",\n \"runId\": \"\",\n \"runAttempt\": \"\"\n}" + }, + "headers": [ + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Accept", + "value": "application/json" + } + ], + "parameters": [], + "authentication": { + "type": "No Auth" + }, + "workspaceId": "CaLTeYHHtUzY6uNnNYpYN", + "sortOrder": 2, + "plugins": [] + }, + { + "_type": "request_group", + "name": "finalize", + "workspaceId": "CaLTeYHHtUzY6uNnNYpYN", + "sortOrder": 0, + "plugins": [] + }, + { + "_type": "request", + "method": "POST", + "url": "{{baseUrl}}/builds/finalize", + "name": "finalize Builds", + "body": { + "mimeType": "application/json", + "text": "{\n \"parallelNonce\": \"\"\n}" + }, + "headers": [ + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Accept", + "value": "application/json" + } + ], + "parameters": [], + "authentication": { + "type": "No Auth" + }, + "workspaceId": "CaLTeYHHtUzY6uNnNYpYN", + "sortOrder": 0, + "plugins": [] + }, + { + "_type": "request", + "method": "GET", + "url": "{{baseUrl}}/project", + "name": "get Auth Project", + "body": { + "mimeType": "No Body" + }, + "headers": [ + { + "name": "Accept", + "value": "application/json" + } + ], + "parameters": [], + "authentication": { + "type": "No Auth" + }, + "workspaceId": "CaLTeYHHtUzY6uNnNYpYN", + "sortOrder": 1, + "plugins": [] + }, + { + "_type": "request", + "method": "GET", + "url": "{{baseUrl}}/project/builds?perPage=&page=&commit=8419e150939eb8e50b0dd2a817574890cfa90270&distinctName=", + "name": "get Auth Project Builds", + "body": { + "mimeType": "No Body" + }, + "headers": [ + { + "name": "Accept", + "value": "application/json" + } + ], + "parameters": [ + { + "name": "perPage", + "value": "", + "description": "Number of items per page (max 100)" + }, + { + "name": "page", + "value": "", + "description": "Page number" + }, + { + "name": "commit", + "value": "8419e150939eb8e50b0dd2a817574890cfa90270" + }, + { + "name": "distinctName", + "value": "", + "description": "Only return the latest builds created, unique by name and commit." + } + ], + "authentication": { + "type": "No Auth" + }, + "workspaceId": "CaLTeYHHtUzY6uNnNYpYN", + "sortOrder": 0, + "plugins": [] + }, + { + "_type": "request_group", + "name": "project", + "workspaceId": "CaLTeYHHtUzY6uNnNYpYN", + "sortOrder": 1, + "plugins": [] + }, + { + "_type": "request", + "method": "PUT", + "url": "{{baseUrl}}/builds/:buildId", + "name": "update Build", + "body": { + "mimeType": "application/json", + "text": "{\n \"screenshots\": [\n {\n \"key\": \"dddb9b1CfBcfFbE683bAEBDffDb6aA76F36b83a4eCbd0bE721E8cb9FaC10b158\",\n \"name\": \"\",\n \"baseName\": \"\",\n \"metadata\": {\n \"automationLibrary\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"sdk\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"url\": \"\",\n \"viewport\": {\n \"width\": \"\",\n \"height\": \"\"\n },\n \"colorScheme\": \"light\",\n \"mediaType\": \"screen\",\n \"test\": {\n \"title\": \"\",\n \"titlePath\": [\n \"\",\n \"\"\n ],\n \"id\": \"\",\n \"retries\": \"\",\n \"retry\": \"\",\n \"repeat\": \"\",\n \"location\": {\n \"file\": \"\",\n \"line\": \"\",\n \"column\": \"\"\n }\n },\n \"browser\": {\n \"name\": \"\",\n \"version\": \"\"\n }\n },\n \"pwTraceKey\": \"CF6e3FD38c47Fe92dc50C16D5AA9A1AD975fACeE234a13cF1ef1556dEB35A62D\",\n \"threshold\": \"\"\n },\n {\n \"key\": \"2C6166A95a2a3F1A6Fc7C43c2B216f683b83fA3F9fF4FBD1aeDE7De6c6cbE5ed\",\n \"name\": \"\",\n \"baseName\": \"\",\n \"metadata\": {\n \"automationLibrary\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"sdk\": {\n \"name\": \"\",\n \"version\": \"\"\n },\n \"url\": \"\",\n \"viewport\": {\n \"width\": \"\",\n \"height\": \"\"\n },\n \"colorScheme\": \"light\",\n \"mediaType\": \"print\",\n \"test\": {\n \"title\": \"\",\n \"titlePath\": [\n \"\",\n \"\"\n ],\n \"id\": \"\",\n \"retries\": \"\",\n \"retry\": \"\",\n \"repeat\": \"\",\n \"location\": {\n \"file\": \"\",\n \"line\": \"\",\n \"column\": \"\"\n }\n },\n \"browser\": {\n \"name\": \"\",\n \"version\": \"\"\n }\n },\n \"pwTraceKey\": \"9fBA3DfaB0CDB658C6578B2aEcA414ba3ABE80D4E6a67ECD47f6BAbEF230eb4f\",\n \"threshold\": \"\"\n }\n ],\n \"parallel\": \"\",\n \"parallelTotal\": \"\",\n \"parallelIndex\": \"\",\n \"metadata\": {\n \"testReport\": {\n \"status\": \"interrupted\",\n \"stats\": {\n \"startTime\": \"\",\n \"duration\": \"\"\n }\n }\n }\n}" + }, + "headers": [ + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Accept", + "value": "application/json" + } + ], + "parameters": [], + "authentication": { + "type": "No Auth" + }, + "workspaceId": "CaLTeYHHtUzY6uNnNYpYN", + "sortOrder": 0, + "plugins": [] + } +] \ No newline at end of file