Files
entaxy-public/test/demo28022020/ESB settings.postman_collection.json
2026-02-18 23:32:39 +03:00

2552 lines
78 KiB
JSON

{
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:bas=\"http://www.entaxy.ru/basic-auth-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <bas:accountList>\n <!--1 or more repetitions:-->\n <bas:account>\n <bas:login>{{system1_name}}</bas:login>\n <bas:password>{{system1_password}}</bas:password>\n <!--Optional:-->\n <bas:systemUUID>{{system1_uuid}}</bas:systemUUID>\n </bas:account>\n </bas:accountList>\n </soapenv:Body>\n</soapenv:Envelope>",
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:bas=\"http://www.entaxy.ru/basic-auth-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <bas:accountList>\n <!--1 or more repetitions:-->\n <bas:account>\n\t\t\t<bas:login>{{system2_name}}</bas:login>\n <bas:password>{{system2_password}}</bas:password>\n <!--Optional:-->\n <bas:systemUUID>{{system2_uuid}}</bas:systemUUID>\n </bas:account>\n </bas:accountList>\n </soapenv:Body>\n</soapenv:Envelope>",
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sys=\"http://www.entaxy.ru/system-management-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <sys:createProfileRequest>\n <sys:profileName>{{system1_name}}</sys:profileName>\n <sys:uuid>{{system1_uuid}}</sys:uuid>\n <!--Optional:-->\n <sys:description>description1</sys:description>\n </sys:createProfileRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sys=\"http://www.entaxy.ru/system-management-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <sys:createProfileRequest>\n <sys:profileName>{{system2_name}}</sys:profileName>\n <sys:uuid>{{system2_uuid}}</sys:uuid>\n <!--Optional:-->\n <sys:description>description2</sys:description>\n </sys:createProfileRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sys=\"http://www.entaxy.ru/system-management-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <sys:createConnectorRequest>\n <sys:templateName>uniform-service-in-connector</sys:templateName>\n <sys:profileUuid>{{system1_uuid}}</sys:profileUuid>\n <sys:paramList>\n <!--Zero or more repetitions:-->\n </sys:paramList>\n </sys:createConnectorRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sys=\"http://www.entaxy.ru/system-management-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <sys:createConnectorRequest>\n <sys:templateName>uniform-service-out-connector</sys:templateName>\n <sys:profileUuid>{{system1_uuid}}</sys:profileUuid>\n <sys:paramList>\n <!--Zero or more repetitions:-->\n </sys:paramList>\n </sys:createConnectorRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sys=\"http://www.entaxy.ru/system-management-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <sys:createConnectorRequest>\n <sys:templateName>uniform-service-out-connector</sys:templateName>\n <sys:profileUuid>{{system2_uuid}}</sys:profileUuid>\n <sys:paramList>\n <!--Zero or more repetitions:-->\n </sys:paramList>\n </sys:createConnectorRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sys=\"http://www.entaxy.ru/system-management-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <sys:createConnectorRequest>\n <sys:templateName>uniform-service-in-connector</sys:templateName>\n <sys:profileUuid>{{system2_uuid}}</sys:profileUuid>\n <sys:paramList>\n <!--Zero or more repetitions:-->\n </sys:paramList>\n </sys:createConnectorRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sys=\"http://www.entaxy.ru/system-management-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <sys:createPermissionRequest>\n <sys:objectUuid>{{system1_uuid}}</sys:objectUuid>\n <sys:subjectUuid>{{system2_uuid}}</sys:subjectUuid>\n </sys:createPermissionRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"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(/<soap:Envelope[\\s\\S]*soap:Envelope>/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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ns=\"http://www.entaxy.ru/ExchangeTypes/1.0\">\n <soapenv:Header/>\n <soapenv:Body>\n <ns:packets>\n <ns:packet>\n \t<ns:header>\n \t\t<ns:destination>\n \t<ns:id>{{system2_name}}</ns:id>\n \t</ns:destination>\n \t</ns:header>\n <ns:message>\n <ns:messageUUID>b7e6aab7-8f02-443c-8f67-e2d638dd4da0</ns:messageUUID>\n <ns:source>\n <ns:id>{{system1_name}}</ns:id>\n </ns:source>\n <ns:content>\n\t \t\t<test>\n\t \t\t<hello/>\n\t \t</test>\n\t </ns:content>\n </ns:message>\n </ns:packet>\n </ns:packets>\n </soapenv:Body>\n</soapenv:Envelope>\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(/<soap:Envelope[\\s\\S]*soap:Envelope>/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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ns=\"http://www.entaxy.ru/ExchangeTypes/1.0\">\r\n <soapenv:Header/>\r\n <soapenv:Body>\r\n <ns:getPacketsRequest>\r\n <ns:destination>\r\n <ns:id>{{system2_name}}</ns:id>\r\n <ns:type>system.name</ns:type>\r\n </ns:destination>\r\n <ns:limitCount>1</ns:limitCount>\r\n <ns:limitSize>0</ns:limitSize>\r\n </ns:getPacketsRequest>\r\n </soapenv:Body>\r\n</soapenv:Envelope>",
"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(/<soap:Envelope[\\s\\S]*soap:Envelope>/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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ns=\"http://www.entaxy.ru/ExchangeTypes/1.0\">\r\n <soapenv:Header/>\r\n <soapenv:Body>\r\n <ns:uuids>\r\n <ns:uuid>{{message_uuid}}</ns:uuid>\r\n </ns:uuids>\r\n </soapenv:Body>\r\n</soapenv:Envelope>\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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sys=\"http://www.entaxy.ru/system-management-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <sys:removeProfileRequest>\n <sys:uuid>{{system1_uuid}}</sys:uuid>\n </sys:removeProfileRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sys=\"http://www.entaxy.ru/system-management-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <sys:removeProfileRequest>\n <sys:uuid>{{system2_uuid}}</sys:uuid>\n </sys:removeProfileRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:bas=\"http://www.entaxy.ru/basic-auth-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <bas:loginList>\n <!--1 or more repetitions:-->\n <bas:login>{{system1_name}}</bas:login>\n </bas:loginList>\n </soapenv:Body>\n</soapenv:Envelope>",
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:bas=\"http://www.entaxy.ru/basic-auth-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <bas:loginList>\n <!--1 or more repetitions:-->\n <bas:login>{{system2_name}}</bas:login>\n </bas:loginList>\n </soapenv:Body>\n</soapenv:Envelope>",
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:bas=\"http://www.entaxy.ru/basic-auth-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <bas:accountList>\n <!--1 or more repetitions:-->\n <bas:account>\n <bas:login>{{system1_name}}</bas:login>\n <bas:password>{{system1_password}}</bas:password>\n <!--Optional:-->\n <bas:systemUUID>{{system1_uuid}}</bas:systemUUID>\n </bas:account>\n </bas:accountList>\n </soapenv:Body>\n</soapenv:Envelope>",
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:bas=\"http://www.entaxy.ru/basic-auth-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <bas:accountList>\n <!--1 or more repetitions:-->\n <bas:account>\n\t\t\t<bas:login>{{system3_name}}</bas:login>\n <bas:password>{{system3_password}}</bas:password>\n <!--Optional:-->\n <bas:systemUUID>{{system3_uuid}}</bas:systemUUID>\n </bas:account>\n </bas:accountList>\n </soapenv:Body>\n</soapenv:Envelope>",
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sys=\"http://www.entaxy.ru/system-management-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <sys:createProfileRequest>\n <sys:profileName>{{system1_name}}</sys:profileName>\n <sys:uuid>{{system1_uuid}}</sys:uuid>\n <!--Optional:-->\n <sys:description>description1</sys:description>\n </sys:createProfileRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sys=\"http://www.entaxy.ru/system-management-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <sys:createProfileRequest>\n <sys:profileName>{{system3_name}}</sys:profileName>\n <sys:uuid>{{system3_uuid}}</sys:uuid>\n <!--Optional:-->\n <sys:description>description3</sys:description>\n </sys:createProfileRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sys=\"http://www.entaxy.ru/system-management-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <sys:createBridgeProfileRequest>\n <sys:profileUuid>{{system1_uuid}}</sys:profileUuid>\n <sys:profileName>{{system1_name}}</sys:profileName>\n <sys:esbName>{{esb_name}}</sys:esbName>\n </sys:createBridgeProfileRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sys=\"http://www.entaxy.ru/system-management-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <sys:createConnectorRequest>\n <sys:templateName>uniform-service-out-connector</sys:templateName>\n <sys:profileUuid>{{system1_uuid}}</sys:profileUuid>\n <sys:paramList>\n <!--Zero or more repetitions:-->\n </sys:paramList>\n </sys:createConnectorRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sys=\"http://www.entaxy.ru/system-management-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <sys:createConnectorRequest>\n <sys:templateName>uniform-service-in-connector</sys:templateName>\n <sys:profileUuid>{{system1_uuid}}</sys:profileUuid>\n <sys:paramList>\n <!--Zero or more repetitions:-->\n </sys:paramList>\n </sys:createConnectorRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sys=\"http://www.entaxy.ru/system-management-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <sys:createConnectorRequest>\n <sys:templateName>uniform-service-out-connector</sys:templateName>\n <sys:profileUuid>{{system3_uuid}}</sys:profileUuid>\n <sys:paramList>\n <!--Zero or more repetitions:-->\n </sys:paramList>\n </sys:createConnectorRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sys=\"http://www.entaxy.ru/system-management-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <sys:createConnectorRequest>\n <sys:templateName>uniform-service-in-connector</sys:templateName>\n <sys:profileUuid>{{system2_uuid}}</sys:profileUuid>\n <sys:paramList>\n <!--Zero or more repetitions:-->\n </sys:paramList>\n </sys:createConnectorRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sys=\"http://www.entaxy.ru/system-management-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <sys:createPermissionRequest>\n <sys:objectUuid>{{system3_uuid}}</sys:objectUuid>\n <sys:subjectUuid>{{system1_uuid}}</sys:subjectUuid>\n </sys:createPermissionRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"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(/<soap:Envelope[\\s\\S]*soap:Envelope>/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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ns=\"http://www.entaxy.ru/ExchangeTypes/1.0\">\n <soapenv:Header/>\n <soapenv:Body>\n <ns:packets>\n <ns:packet>\n \t<ns:header>\n \t\t<ns:destination>\n \t<ns:id>{{system1_name}}</ns:id>\n \t</ns:destination>\n \t</ns:header>\n <ns:message>\n <ns:messageUUID>b7e6aab7-8f02-443c-8f67-e2d638dd4da0</ns:messageUUID>\n <ns:source>\n <ns:id>{{system3_name}}</ns:id>\n </ns:source>\n <ns:content>\n\t \t\t<test>\n\t \t\t<hello/>\n\t \t</test>\n\t </ns:content>\n </ns:message>\n </ns:packet>\n </ns:packets>\n </soapenv:Body>\n</soapenv:Envelope>\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(/<soap:Envelope[\\s\\S]*soap:Envelope>/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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ns=\"http://www.entaxy.ru/ExchangeTypes/1.0\">\r\n <soapenv:Header/>\r\n <soapenv:Body>\r\n <ns:getPacketsRequest>\r\n <ns:destination>\r\n <ns:id>{{system1_name}}</ns:id>\r\n <ns:type>system.name</ns:type>\r\n </ns:destination>\r\n <ns:limitCount>1</ns:limitCount>\r\n <ns:limitSize>0</ns:limitSize>\r\n </ns:getPacketsRequest>\r\n </soapenv:Body>\r\n</soapenv:Envelope>",
"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(/<soap:Envelope[\\s\\S]*soap:Envelope>/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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ns=\"http://www.entaxy.ru/ExchangeTypes/1.0\">\r\n <soapenv:Header/>\r\n <soapenv:Body>\r\n <ns:uuids>\r\n <ns:uuid>{{message_uuid}}</ns:uuid>\r\n </ns:uuids>\r\n </soapenv:Body>\r\n</soapenv:Envelope>\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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sys=\"http://www.entaxy.ru/system-management-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <sys:removeProfileRequest>\n <sys:uuid>{{system1_uuid}}</sys:uuid>\n </sys:removeProfileRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sys=\"http://www.entaxy.ru/system-management-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <sys:removeProfileRequest>\n <sys:uuid>{{system3_uuid}}</sys:uuid>\n </sys:removeProfileRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:bas=\"http://www.entaxy.ru/basic-auth-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <bas:loginList>\n <!--1 or more repetitions:-->\n <bas:login>{{system1_name}}</bas:login>\n </bas:loginList>\n </soapenv:Body>\n</soapenv:Envelope>",
"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": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:bas=\"http://www.entaxy.ru/basic-auth-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <bas:loginList>\n <!--1 or more repetitions:-->\n <bas:login>{{system3_name}}</bas:login>\n </bas:loginList>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url_new_rt}}/basic-auth-management",
"host": [
"{{base_url_new_rt}}"
],
"path": [
"basic-auth-management"
]
}
},
"response": []
}
]
}
]
}
]
}