{
"info": {
"_postman_id": "2cefb994-87c2-4293-8ad9-5c437ebea5d4",
"name": "ESB settings",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "rt",
"item": [
{
"name": "settings",
"item": [
{
"name": "Add Account system1",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n \n \n {{system1_name}}\n {{system1_password}}\n \n {{system1_uuid}}\n \n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/basic-auth-management",
"host": [
"{{base_url}}"
],
"path": [
"basic-auth-management"
]
}
},
"response": []
},
{
"name": "Add Account system2",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n \n \n\t\t\t{{system2_name}}\n {{system2_password}}\n \n {{system2_uuid}}\n \n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/basic-auth-management",
"host": [
"{{base_url}}"
],
"path": [
"basic-auth-management"
]
}
},
"response": []
},
{
"name": "Create profile system1",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n {{system1_name}}\n {{system1_uuid}}\n \n description1\n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
}
},
"response": []
},
{
"name": "Create profile system2",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n {{system2_name}}\n {{system2_uuid}}\n \n description2\n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
}
},
"response": []
},
{
"name": "Create uniform-service-in-connector",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n uniform-service-in-connector\n {{system1_uuid}}\n \n \n \n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
}
},
"response": []
},
{
"name": "Create uniform-service-out-connector",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/xml"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n uniform-service-out-connector\n {{system1_uuid}}\n \n \n \n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
}
},
"response": []
},
{
"name": "Create uniform-service-out-connector",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/xml"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n uniform-service-out-connector\n {{system2_uuid}}\n \n \n \n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
}
},
"response": []
},
{
"name": "Create uniform-service-in-connector",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/xml"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n uniform-service-in-connector\n {{system2_uuid}}\n \n \n \n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
}
},
"response": []
},
{
"name": "Create permission",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n {{system1_uuid}}\n {{system2_uuid}}\n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
}
},
"response": []
}
]
},
{
"name": "1c-exchange",
"item": [
{
"name": "1c-exchange SEND",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"function getSoapBody() {",
" var soapBody = responseBody.match(//g);",
" var jsonObject = xml2Json(soapBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is OK\", function () {",
" var response = getSoapBody();",
" pm.expect(response['response']['status']).to.eql('200');",
"});",
""
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{system1_password}}",
"type": "string"
},
{
"key": "username",
"value": "{{system1_name}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml; charset=UTF-8",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n \n \t\n \t\t\n \t{{system2_name}}\n \t\n \t\n \n b7e6aab7-8f02-443c-8f67-e2d638dd4da0\n \n {{system1_name}}\n \n \n\t \t\t\n\t \t\t\n\t \t\n\t \n \n \n \n \n\n"
},
"url": {
"raw": "{{base_url}}/exchange",
"host": [
"{{base_url}}"
],
"path": [
"exchange"
]
}
},
"response": []
},
{
"name": "1c-exchange GET",
"event": [
{
"listen": "test",
"script": {
"exec": [
"function getSoapBody() {",
" var soapBody = responseBody.match(//g);",
" var jsonObject = xml2Json(soapBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"var response = getSoapBody();",
"",
"pm.test(\"Has service response\", function () {",
" pm.expect(response).to.have.property('response');",
"});",
"",
"if (response.hasOwnProperty('response')) {",
" var packet = response['response']['packets']['packet'];",
"",
" var header = packet['header'];",
" ",
" var message_id = header['transportUUID'];",
" ",
" console.log(packet['message']['content']);",
" console.log(message_id);",
" ",
" pm.globals.set('message_uuid', message_id);",
" ",
" pm.test(\"Content is OK\", function () {",
" pm.expect(packet['message']['content']).to.be.an('object');",
" });",
" ",
" pm.test(\"message_id is OK\", function () {",
" pm.expect(message_id).to.have.lengthOf(36);",
" });",
"}"
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{system2_password}}",
"type": "string"
},
{
"key": "username",
"value": "{{system2_name}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml; charset=UTF-8",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\r\n \r\n \r\n \r\n \r\n {{system2_name}}\r\n system.name\r\n \r\n 1\r\n 0\r\n \r\n \r\n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/exchange",
"host": [
"{{base_url}}"
],
"path": [
"exchange"
]
}
},
"response": []
},
{
"name": "1c-exchange ACK",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"function getSoapBody() {",
" var soapBody = responseBody.match(//g);",
" var jsonObject = xml2Json(soapBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is 200\", function () {",
" var response = getSoapBody();",
" pm.expect(response['response']['status']).to.eql('200');",
"});",
""
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{system2_password}}",
"type": "string"
},
{
"key": "username",
"value": "{{system2_name}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml; charset=UTF-8",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\r\n \r\n \r\n \r\n {{message_uuid}}\r\n \r\n \r\n\r\n"
},
"url": {
"raw": "{{base_url}}/exchange",
"host": [
"{{base_url}}"
],
"path": [
"exchange"
]
}
},
"response": []
}
]
},
{
"name": "clean settings",
"item": [
{
"name": "Remove profile system1",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n {{system1_uuid}}\n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
}
},
"response": []
},
{
"name": "Remove profile system2",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n {{system2_uuid}}\n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
}
},
"response": []
},
{
"name": "Remove Account system1",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n \n {{system1_name}}\n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/basic-auth-management",
"host": [
"{{base_url}}"
],
"path": [
"basic-auth-management"
]
}
},
"response": []
},
{
"name": "Remove Account system2",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n \n {{system2_name}}\n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/basic-auth-management",
"host": [
"{{base_url}}"
],
"path": [
"basic-auth-management"
]
}
},
"response": []
}
]
}
]
},
{
"name": "rt-vr",
"item": [
{
"name": "settings",
"item": [
{
"name": "Add Account system1",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n \n \n {{system1_name}}\n {{system1_password}}\n \n {{system1_uuid}}\n \n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/basic-auth-management",
"host": [
"{{base_url}}"
],
"path": [
"basic-auth-management"
]
}
},
"response": []
},
{
"name": "Add Account system3",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/xml"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n \n \n\t\t\t{{system3_name}}\n {{system3_password}}\n \n {{system3_uuid}}\n \n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url_new_rt}}/basic-auth-management",
"host": [
"{{base_url_new_rt}}"
],
"path": [
"basic-auth-management"
]
}
},
"response": []
},
{
"name": "Create profile system1",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n {{system1_name}}\n {{system1_uuid}}\n \n description1\n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
}
},
"response": []
},
{
"name": "Create profile system3",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n {{system3_name}}\n {{system3_uuid}}\n \n description3\n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url_new_rt}}/system-management",
"host": [
"{{base_url_new_rt}}"
],
"path": [
"system-management"
]
}
},
"response": []
},
{
"name": "Create bridge-profile",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n {{system1_uuid}}\n {{system1_name}}\n {{esb_name}}\n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
}
},
"response": []
},
{
"name": "Create uniform-service-out-connector",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/xml"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n uniform-service-out-connector\n {{system1_uuid}}\n \n \n \n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
}
},
"response": []
},
{
"name": "Create uniform-service-in-connector",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n uniform-service-in-connector\n {{system1_uuid}}\n \n \n \n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
}
},
"response": []
},
{
"name": "Create uniform-service-out-connector",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/xml"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n uniform-service-out-connector\n {{system3_uuid}}\n \n \n \n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url_new_rt}}/system-management",
"host": [
"{{base_url_new_rt}}"
],
"path": [
"system-management"
]
}
},
"response": []
},
{
"name": "Create uniform-service-in-connector",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n uniform-service-in-connector\n {{system2_uuid}}\n \n \n \n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url_new_rt}}/system-management",
"host": [
"{{base_url_new_rt}}"
],
"path": [
"system-management"
]
}
},
"response": []
},
{
"name": "Create permission",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n {{system3_uuid}}\n {{system1_uuid}}\n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url_new_rt}}/system-management",
"host": [
"{{base_url_new_rt}}"
],
"path": [
"system-management"
]
}
},
"response": []
}
]
},
{
"name": "1c-exchange",
"item": [
{
"name": "1c-exchange SEND",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"function getSoapBody() {",
" var soapBody = responseBody.match(//g);",
" var jsonObject = xml2Json(soapBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is OK\", function () {",
" var response = getSoapBody();",
" pm.expect(response['response']['status']).to.eql('200');",
"});",
""
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{system3_password}}",
"type": "string"
},
{
"key": "username",
"value": "{{system3_name}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml; charset=UTF-8",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n \n \t\n \t\t\n \t{{system1_name}}\n \t\n \t\n \n b7e6aab7-8f02-443c-8f67-e2d638dd4da0\n \n {{system3_name}}\n \n \n\t \t\t\n\t \t\t\n\t \t\n\t \n \n \n \n \n\n"
},
"url": {
"raw": "{{base_url_new_rt}}/exchange",
"host": [
"{{base_url_new_rt}}"
],
"path": [
"exchange"
]
}
},
"response": []
},
{
"name": "1c-exchange GET",
"event": [
{
"listen": "test",
"script": {
"exec": [
"function getSoapBody() {",
" var soapBody = responseBody.match(//g);",
" var jsonObject = xml2Json(soapBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"var response = getSoapBody();",
"",
"pm.test(\"Has service response\", function () {",
" pm.expect(response).to.have.property('response');",
"});",
"",
"if (response.hasOwnProperty('response')) {",
" var packet = response['response']['packets']['packet'];",
"",
" var header = packet['header'];",
" ",
" var message_id = header['transportUUID'];",
" ",
" console.log(packet['message']['content']);",
" console.log(message_id);",
" ",
" pm.globals.set('message_uuid', message_id);",
" ",
" pm.test(\"Content is OK\", function () {",
" pm.expect(packet['message']['content']).to.be.an('object');",
" });",
" ",
" pm.test(\"message_id is OK\", function () {",
" pm.expect(message_id).to.have.lengthOf(36);",
" });",
"}"
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{system3_password}}",
"type": "string"
},
{
"key": "username",
"value": "{{system3_name}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml; charset=UTF-8",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\r\n \r\n \r\n \r\n \r\n {{system1_name}}\r\n system.name\r\n \r\n 1\r\n 0\r\n \r\n \r\n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/exchange",
"host": [
"{{base_url}}"
],
"path": [
"exchange"
]
}
},
"response": []
},
{
"name": "1c-exchange ACK",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"function getSoapBody() {",
" var soapBody = responseBody.match(//g);",
" var jsonObject = xml2Json(soapBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is 200\", function () {",
" var response = getSoapBody();",
" pm.expect(response['response']['status']).to.eql('200');",
"});",
""
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{system3_password}}",
"type": "string"
},
{
"key": "username",
"value": "{{system3_name}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml; charset=UTF-8",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\r\n \r\n \r\n \r\n {{message_uuid}}\r\n \r\n \r\n\r\n"
},
"url": {
"raw": "{{base_url}}/exchange",
"host": [
"{{base_url}}"
],
"path": [
"exchange"
]
}
},
"response": []
}
]
},
{
"name": "clean settings",
"item": [
{
"name": "Remove profile system1",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n {{system1_uuid}}\n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
}
},
"response": []
},
{
"name": "Remove profile system3",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n {{system3_uuid}}\n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url_new_rt}}/system-management",
"host": [
"{{base_url_new_rt}}"
],
"path": [
"system-management"
]
}
},
"response": []
},
{
"name": "Remove Account system1",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n \n {{system1_name}}\n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/basic-auth-management",
"host": [
"{{base_url}}"
],
"path": [
"basic-auth-management"
]
}
},
"response": []
},
{
"name": "Remove Account system3",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Body matches true\", function () {",
" pm.expect(pm.response.text()).to.include(\"true\");",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"pm.test(\"Response is true\", function () {",
" var response = getSoapBody();",
" pm.expect(response.response._).to.eql('true');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{password}}",
"type": "string"
},
{
"key": "username",
"value": "{{login}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\n \n \n \n \n {{system3_name}}\n \n \n",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url_new_rt}}/basic-auth-management",
"host": [
"{{base_url_new_rt}}"
],
"path": [
"basic-auth-management"
]
}
},
"response": []
}
]
}
]
}
]
}