diff --git a/packages/ui/src/helpers.ts b/packages/ui/src/helpers.ts index e0edeb06..e2b5736f 100644 --- a/packages/ui/src/helpers.ts +++ b/packages/ui/src/helpers.ts @@ -1732,9 +1732,10 @@ export function covertPostmanAuthToRestfoxAuth(request: any) { if ('auth' in request) { if(request.auth.type === 'bearer' && request.auth.bearer) { + const token = Array.isArray(request.auth.bearer) ? request.auth.bearer.find((item: any) => item.key === 'token')?.value || '' : request.auth.bearer.token authentication = { type: 'bearer', - token: request.auth.bearer.token + token } } else if(request.auth.type === 'basic' && request.auth.basic) { const username = request.auth.basic.find((item: any) => item.key === 'username')?.value || '' diff --git a/packages/ui/src/parsers/postman.spec.ts b/packages/ui/src/parsers/postman.spec.ts index edf00cd8..5e76c18b 100644 --- a/packages/ui/src/parsers/postman.spec.ts +++ b/packages/ui/src/parsers/postman.spec.ts @@ -4,12 +4,12 @@ import path from 'node:path' import { convertPostmanExportToRestfoxCollection } from './postman' import { addSortOrderToTree, flattenTree } from '@/helpers' -test('importPostmanV2', async() => { +test('importPostmanV2.0', 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 inputFile = await readFile(path.join(testDataFolder, 'Argos.API.postman_collection.v2.0.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) @@ -45,3 +45,45 @@ test('importPostmanV2', async() => { expect(collection).toEqual(expectedCollection) }) + +test('importPostmanV2.1', 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.v2.1.json'), 'utf-8') + const input = JSON.parse(inputFile) + const outputFile = await readFile(path.join(testDataFolder, 'Restfox_2024-09-06.v2.1.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.v2.1.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.v2.0.json similarity index 100% rename from packages/ui/test-data/postman-import-v2/Argos.API.postman_collection.json rename to packages/ui/test-data/postman-import-v2/Argos.API.postman_collection.v2.0.json diff --git a/packages/ui/test-data/postman-import-v2/Argos.API.postman_collection.v2.1.json b/packages/ui/test-data/postman-import-v2/Argos.API.postman_collection.v2.1.json new file mode 100644 index 00000000..6f2e394a --- /dev/null +++ b/packages/ui/test-data/postman-import-v2/Argos.API.postman_collection.v2.1.json @@ -0,0 +1,2068 @@ +{ + "info": { + "_postman_id": "0827038f-dddc-44db-9302-d8a3368ba674", + "name": "Argos API", + "schema": "https://schema.getpostman.com/json/collection/v2.1.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": { + "raw": "{{baseUrl}}/builds/finalize", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "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": { + "raw": "{{baseUrl}}/builds/finalize", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "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": { + "raw": "{{baseUrl}}/builds/finalize", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "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": { + "raw": "{{baseUrl}}/builds/finalize", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "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": { + "raw": "{{baseUrl}}/builds/finalize", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "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": { + "raw": "{{baseUrl}}/builds/finalize", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "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": { + "raw": "{{baseUrl}}/builds/finalize", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "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": { + "raw": "{{baseUrl}}/builds/finalize", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "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\": \"258d73b250fdb1dfd21e586994ba4806ee0bf186a53cf2b8bab1cd744064c73a\",\n \"name\": \"./output/screenshots/home-page.png\"\n }\n ],\n \"metadata\": {\n \"testReport\": {\n \"status\": \"passed\"\n }\n }\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/builds/562890", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "builds", + "562890" + ] + } + }, + "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": "update Build Copy", + "protocolProfileBehavior": { + "disableBodyPruning": true + }, + "request": { + "method": "GET", + "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", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "builds" + ] + } + }, + "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": { + "raw": "{{baseUrl}}/builds", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "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": { + "raw": "{{baseUrl}}/builds", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "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": { + "raw": "{{baseUrl}}/builds", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "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": { + "raw": "{{baseUrl}}/builds", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "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": { + "raw": "{{baseUrl}}/builds", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "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": { + "raw": "{{baseUrl}}/builds", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "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/562859", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "project", + "builds", + "562859" + ], + "query": [ + { + "key": "perPage", + "value": "10", + "description": "Number of items per page (max 100)", + "disabled": true + }, + { + "key": "page", + "value": "1", + "description": "Page number", + "disabled": true + }, + { + "key": "commit", + "value": "04b3b4d583f7a3ec6953dcfebf3aa665c7e3e434", + "disabled": true + }, + { + "key": "distinctName", + "value": "", + "description": "Only return the latest builds created, unique by name and commit.", + "disabled": true + }, + { + "key": "", + "value": "", + "disabled": true + } + ] + } + }, + "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": { + "raw": "{{baseUrl}}/project", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "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": { + "raw": "{{baseUrl}}/project", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "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": { + "raw": "{{baseUrl}}/project", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "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": { + "raw": "{{baseUrl}}/project", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "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": [ + { + "key": "token", + "value": "REDACTED", + "type": "string" + } + ] + }, + "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.v2.1.json b/packages/ui/test-data/postman-import-v2/Restfox_2024-09-06.v2.1.json new file mode 100644 index 00000000..bdadc4d9 --- /dev/null +++ b/packages/ui/test-data/postman-import-v2/Restfox_2024-09-06.v2.1.json @@ -0,0 +1,249 @@ +{ + "exportedFrom": "Restfox-1.0.0", + "collection": [{ + "_id": "3sHg3sQzwSx3WleCmXEpo", + "_type": "request_group", + "name": "builds", + "parentId": "NSZRgzvXmq5mdbPjpIh3-", + "workspaceId": "ocsi_UOfUyIzTU0U6DjmR", + "sortOrder": 0, + "plugins": [] + }, { + "_id": "IfTro7jYDG8dkm9rmLid3", + "_type": "request_group", + "name": "builds", + "parentId": "ZVA8_fdNzj_ABho6_cRzr", + "workspaceId": "ocsi_UOfUyIzTU0U6DjmR", + "sortOrder": 0, + "plugins": [] + }, { + "_id": "M2dtopISFVlJaqOe6IGPQ", + "_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": "uTXABvBxZHtuKmd4Ey1Ll", + "workspaceId": "ocsi_UOfUyIzTU0U6DjmR", + "sortOrder": 0, + "plugins": [] + }, { + "_id": "NSZRgzvXmq5mdbPjpIh3-", + "_type": "request_group", + "name": "project", + "parentId": "ZVA8_fdNzj_ABho6_cRzr", + "workspaceId": "ocsi_UOfUyIzTU0U6DjmR", + "sortOrder": 1, + "plugins": [] + }, { + "_id": "ZVA8_fdNzj_ABho6_cRzr", + "_type": "request_group", + "name": "Argos API", + "environment": { + "baseUrl": "https://api.argos-ci.com/v2" + }, + "parentId": null, + "authentication": { + "type": "bearer", + "token": "REDACTED" + }, + "workspaceId": "ocsi_UOfUyIzTU0U6DjmR", + "sortOrder": 0, + "plugins": [] + }, { + "_id": "auocuI_UItOfYqOKeXLmx", + "_type": "request", + "method": "PUT", + "url": "{{baseUrl}}/builds/562890", + "name": "update Build", + "body": { + "mimeType": "application/json", + "text": "{\n \"screenshots\": [\n {\n \"key\": \"258d73b250fdb1dfd21e586994ba4806ee0bf186a53cf2b8bab1cd744064c73a\",\n \"name\": \"./output/screenshots/home-page.png\"\n }\n ],\n \"metadata\": {\n \"testReport\": {\n \"status\": \"passed\"\n }\n }\n}" + }, + "headers": [{ + "name": "Content-Type", + "value": "application/json" + }, { + "name": "Accept", + "value": "application/json" + }], + "parameters": [], + "authentication": { + "type": "No Auth" + }, + "parentId": "kv_Uu-_HCHJ75AK260UGy", + "workspaceId": "ocsi_UOfUyIzTU0U6DjmR", + "sortOrder": 0, + "plugins": [] + }, { + "_id": "axWYXX_lpRucPQAW5t1Pz", + "_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": "NSZRgzvXmq5mdbPjpIh3-", + "workspaceId": "ocsi_UOfUyIzTU0U6DjmR", + "sortOrder": 1, + "plugins": [] + }, { + "_id": "doFQHi51CUO6P16Hq2j72", + "_type": "request", + "method": "GET", + "url": "{{baseUrl}}/builds", + "name": "update Build Copy", + "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": "kv_Uu-_HCHJ75AK260UGy", + "workspaceId": "ocsi_UOfUyIzTU0U6DjmR", + "sortOrder": 1, + "plugins": [] + }, { + "_id": "iZaakd6fm3whIyG5QpslM", + "_type": "request", + "method": "GET", + "url": "{{baseUrl}}/project/builds/562859", + "name": "get Auth Project Builds", + "body": { + "mimeType": "No Body" + }, + "headers": [{ + "name": "Accept", + "value": "application/json" + }], + "parameters": [{ + "name": "perPage", + "value": "10", + "description": "Number of items per page (max 100)", + "disabled": true + }, { + "name": "page", + "value": "1", + "description": "Page number", + "disabled": true + }, { + "name": "commit", + "value": "04b3b4d583f7a3ec6953dcfebf3aa665c7e3e434", + "disabled": true + }, { + "name": "distinctName", + "value": "", + "description": "Only return the latest builds created, unique by name and commit.", + "disabled": true + }, { + "name": "", + "value": "", + "disabled": true + }], + "authentication": { + "type": "No Auth" + }, + "parentId": "3sHg3sQzwSx3WleCmXEpo", + "workspaceId": "ocsi_UOfUyIzTU0U6DjmR", + "sortOrder": 0, + "plugins": [] + }, { + "_id": "kv_Uu-_HCHJ75AK260UGy", + "_type": "request_group", + "name": "{buildId}", + "parentId": "IfTro7jYDG8dkm9rmLid3", + "workspaceId": "ocsi_UOfUyIzTU0U6DjmR", + "sortOrder": 1, + "plugins": [] + }, { + "_id": "t3_ZDru36eSTIkOJoAtq4", + "_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": "IfTro7jYDG8dkm9rmLid3", + "workspaceId": "ocsi_UOfUyIzTU0U6DjmR", + "sortOrder": 2, + "plugins": [] + }, { + "_id": "uTXABvBxZHtuKmd4Ey1Ll", + "_type": "request_group", + "name": "finalize", + "parentId": "IfTro7jYDG8dkm9rmLid3", + "workspaceId": "ocsi_UOfUyIzTU0U6DjmR", + "sortOrder": 0, + "plugins": [] + }], + "environments": [{ + "name": "Default", + "environment": { + "headers": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate, br, zstd", + "Accept-Language": "en-US,en;q=0.9,vi;q=0.8,de;q=0.7", + "Cache-Control": "no-cache", + "Host": "httpbin.org", + "Origin": "http://localhost:5173", + "Pragma": "no-cache", + "Priority": "u=1, i", + "Referer": "http://localhost:5173/", + "Sec-Ch-Ua": "\"Google Chrome\";v=\"125\", \"Chromium\";v=\"125\", \"Not.A/Brand\";v=\"24\"", + "Sec-Ch-Ua-Mobile": "?0", + "Sec-Ch-Ua-Platform": "\"macOS\"", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "cross-site", + "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36", + "X-Amzn-Trace-Id": "Root=1-66bd971b-51f589454403aa83006a90df" + } + }, + "color": "var(--text-color)" + }] +} diff --git a/packages/ui/test-data/postman-import-v2/test-snapshot.json b/packages/ui/test-data/postman-import-v2/test-snapshot.json index cd09beed..edea3030 100644 --- a/packages/ui/test-data/postman-import-v2/test-snapshot.json +++ b/packages/ui/test-data/postman-import-v2/test-snapshot.json @@ -12,6 +12,10 @@ "environment": { "baseUrl": "https://api.argos-ci.com/v2" }, + "authentication": { + "type": "bearer", + "token": "REDACTED" + }, "workspaceId": "CaLTeYHHtUzY6uNnNYpYN", "sortOrder": 0, "plugins": [] @@ -183,8 +187,7 @@ ], "parameters": [], "authentication": { - "type": "bearer", - "token": "REDACTED" + "type": "No Auth" }, "workspaceId": "CaLTeYHHtUzY6uNnNYpYN", "sortOrder": 0, diff --git a/packages/ui/test-data/postman-import-v2/test-snapshot.v2.1.json b/packages/ui/test-data/postman-import-v2/test-snapshot.v2.1.json new file mode 100644 index 00000000..d2581bea --- /dev/null +++ b/packages/ui/test-data/postman-import-v2/test-snapshot.v2.1.json @@ -0,0 +1,232 @@ +[ + { + "_type": "request_group", + "name": "{buildId}", + "workspaceId": "ocsi_UOfUyIzTU0U6DjmR", + "sortOrder": 1, + "plugins": [] + }, + { + "_type": "request_group", + "name": "Argos API", + "environment": { + "baseUrl": "https://api.argos-ci.com/v2" + }, + "authentication": { + "type": "bearer", + "token": "REDACTED" + }, + "workspaceId": "ocsi_UOfUyIzTU0U6DjmR", + "sortOrder": 0, + "plugins": [] + }, + { + "_type": "request_group", + "name": "builds", + "workspaceId": "ocsi_UOfUyIzTU0U6DjmR", + "sortOrder": 0, + "plugins": [] + }, + { + "_type": "request_group", + "name": "builds", + "workspaceId": "ocsi_UOfUyIzTU0U6DjmR", + "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": "ocsi_UOfUyIzTU0U6DjmR", + "sortOrder": 2, + "plugins": [] + }, + { + "_type": "request_group", + "name": "finalize", + "workspaceId": "ocsi_UOfUyIzTU0U6DjmR", + "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": "ocsi_UOfUyIzTU0U6DjmR", + "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": "ocsi_UOfUyIzTU0U6DjmR", + "sortOrder": 1, + "plugins": [] + }, + { + "_type": "request", + "method": "GET", + "url": "{{baseUrl}}/project/builds/562859", + "name": "get Auth Project Builds", + "body": { + "mimeType": "No Body" + }, + "headers": [ + { + "name": "Accept", + "value": "application/json" + } + ], + "parameters": [ + { + "name": "perPage", + "value": "10", + "description": "Number of items per page (max 100)", + "disabled": true + }, + { + "name": "page", + "value": "1", + "description": "Page number", + "disabled": true + }, + { + "name": "commit", + "value": "04b3b4d583f7a3ec6953dcfebf3aa665c7e3e434", + "disabled": true + }, + { + "name": "distinctName", + "value": "", + "description": "Only return the latest builds created, unique by name and commit.", + "disabled": true + }, + { + "name": "", + "value": "", + "disabled": true + } + ], + "authentication": { + "type": "No Auth" + }, + "workspaceId": "ocsi_UOfUyIzTU0U6DjmR", + "sortOrder": 0, + "plugins": [] + }, + { + "_type": "request_group", + "name": "project", + "workspaceId": "ocsi_UOfUyIzTU0U6DjmR", + "sortOrder": 1, + "plugins": [] + }, + { + "_type": "request", + "method": "PUT", + "url": "{{baseUrl}}/builds/562890", + "name": "update Build", + "body": { + "mimeType": "application/json", + "text": "{\n \"screenshots\": [\n {\n \"key\": \"258d73b250fdb1dfd21e586994ba4806ee0bf186a53cf2b8bab1cd744064c73a\",\n \"name\": \"./output/screenshots/home-page.png\"\n }\n ],\n \"metadata\": {\n \"testReport\": {\n \"status\": \"passed\"\n }\n }\n}" + }, + "headers": [ + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "Accept", + "value": "application/json" + } + ], + "parameters": [], + "authentication": { + "type": "No Auth" + }, + "workspaceId": "ocsi_UOfUyIzTU0U6DjmR", + "sortOrder": 0, + "plugins": [] + }, + { + "_type": "request", + "method": "GET", + "url": "{{baseUrl}}/builds", + "name": "update Build Copy", + "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": "ocsi_UOfUyIzTU0U6DjmR", + "sortOrder": 1, + "plugins": [] + } +] \ No newline at end of file