entaxy-public/documentation/Management layer.postman_co...

3606 lines
143 KiB
JSON
Raw Permalink Normal View History

2021-09-06 14:46:59 +00:00
{
"info": {
"_postman_id": "5f1e5b20-f1dd-46d2-a01c-36ed09cee573",
"name": "Management layer",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Руководство по управлению коннекторами и профилями в шине.",
"item": [
{
"name": "Создание профиля системы",
"event": [
{
"listen": "test",
"script": {
"id": "ddae46ff-75a9-443b-8d11-a04edba74dbc",
"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": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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>{{system_id}}</sys:profileName>\n <sys:uuid>{{system_id}}</sys:uuid>\n <!--Optional:-->\n <sys:description>default system</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"
]
},
"description": "Для создания профиля системы нужно вызвать метод createProfile, где вместо “system_uuid” нужно подставить uuid системы, вместо “system_name” - имя системы, “description” описание системы:\n"
},
"response": []
},
{
"name": "Получить профиль системы",
"event": [
{
"listen": "test",
"script": {
"id": "231fc234-06f3-4758-9b33-61a3f1426d58",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"var systemId = pm.environment.get(\"system1_id\");",
"",
"pm.test(\"Body matches \" + systemId, function () {",
" pm.expect(pm.response.text()).to.include(systemId);",
"});",
"",
"var connectorName = pm.globals.get(\"template_name\") + \"-\" + systemId;",
"",
"pm.test(\"Body matches \" + connectorName, function () {",
" pm.expect(pm.response.text()).to.include(connectorName);",
"});",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/xml"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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:getProfileRequest>\n <sys:uuid>{{system_id}}</sys:uuid>\n </sys:getProfileRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
},
"description": "Проверить созданный профиль можно с помощью метода getProfile, где вместо “system_uuid” нужно подставить uuid системы\n"
},
"response": []
},
{
"name": "Получить весь список профилей систем",
"event": [
{
"listen": "test",
"script": {
"id": "86d87f3a-2067-4d17-becf-b52428bc67e7",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"var response = getSoapBody();",
"",
"var systemId = pm.environment.get(\"system1_id\");",
"var esbName = pm.environment.get(\"esb_name\");",
"",
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" return jsonObject['soap:Envelope']['soap:Body'];",
"}",
"",
"if (response.hasOwnProperty('fullBridgeProfileType')) {",
" ",
" pm.test(\"Body matches \" + esbName, function () {",
" pm.expect(pm.response.text()).to.include(esbName);",
" });",
" ",
" pm.test(\"Body matches \" + systemId, function () {",
" pm.expect(pm.response.text()).to.include(systemId);",
" });",
"}"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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:listProfileRequest/>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
},
"description": "Получить список профилей, зарегистрированных в шине, можно с помощью метода getProfiles"
},
"response": []
},
{
"name": "Остановить работу профиля системы в шине ",
"event": [
{
"listen": "test",
"script": {
"id": "e9016f40-0fb8-4d44-a58a-7ea98c883aa9",
"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": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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:stopProfileRequest>\n <sys:uuid>{{system_id}}</sys:uuid>\n </sys:stopProfileRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
},
"description": "Остановить профиль и все его зависимости можно с помощью метода stopProfile, где вместо “system_uuid” нужно подставить uuid системы\n"
},
"response": []
},
{
"name": "Запустить работу профиля систем в шине",
"event": [
{
"listen": "test",
"script": {
"id": "6fccc710-0a84-4843-a1bb-73c643e8c53d",
"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": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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:startProfileRequest>\n <sys:uuid>{{system_id}}</sys:uuid>\n </sys:startProfileRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
},
"description": "Запустить профиль и все его зависимости можно с помощью метода startProfile, где вместо “system_uuid” нужно подставить uuid системы\n"
},
"response": []
},
{
"name": "Удалить профиль системы из шины",
"event": [
{
"listen": "test",
"script": {
"id": "791636da-cb95-40d9-a709-17da9f769ff9",
"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": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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>{{system_id}}</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"
]
},
"description": "Удалить профиль и все его зависимости можно с помощью метода removeProfile, где вместо “system_uuid” нужно подставить uuid системы(ВНИМАНИЕ! При удалении профиля также удаляются все связанные с ним коннекторы)"
},
"response": []
},
{
"name": "Получить список шаблонов коннекторов",
"event": [
{
"listen": "test",
"script": {
"id": "6c1b7bb5-e787-4bfc-9291-73648162dec9",
"exec": [
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" 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 Messages\", function () {",
" pm.expect(response).to.have.property('listTemplate');",
"});",
"",
"if (response.hasOwnProperty('listTemplate')) {",
" var list_template = response['listTemplate'];",
"",
" pm.test(\"Body matches uniform-service-in-connector\", function () {",
" pm.expect(pm.response.text()).to.include(\"uniform-service-in-connector\");",
2021-09-06 14:46:59 +00:00
" });",
" ",
" // if (response.some(item => item.templateName === 'uniform-service-in-connector')) {",
" pm.globals.set(\"template_name\", \"uniform-service-in-connector\");",
2021-09-06 14:46:59 +00:00
" // }",
" ",
" pm.test(\"Body matches uniform-service-in-connector\", function () {",
" pm.expect(pm.response.text()).to.include(\"uniform-service-in-connector\");",
" });",
" ",
" pm.test(\"Body matches uniform-service-out-connector\", function () {",
" pm.expect(pm.response.text()).to.include(\"uniform-service-out-connector\");",
" });",
"}"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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:listTemplateRequest/>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
},
"description": "Для создания коннектора в шине нужно получить список шаблонов(требуются для создания коннекторов) методом getTemplates\n"
},
"response": []
},
{
"name": "Получить информацию о шаблоне коннектора",
"event": [
{
"listen": "test",
"script": {
"id": "781451d6-5194-40f5-9b34-d9de14fa9b8e",
"exec": [
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" 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 Messages template\", function () {",
" pm.expect(response).to.have.property('template');",
"});",
"",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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:getTemplateRequest>\n <sys:templateName>{{template_name}}</sys:templateName>\n </sys:getTemplateRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
},
"description": "Для создания коннектора в шине нужно получить список шаблонов(требуются для создания коннекторов) методом getTemplate, где “template_name” имя шаблона по которому будет сделан коннектор\n"
},
"response": []
},
{
"name": "Создание коннектора",
"event": [
{
"listen": "test",
"script": {
"id": "7d9c9a60-8a4b-4b3d-b905-f5d7e40f9bd0",
"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": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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>{{template_name}}</sys:templateName>\n <sys:profileUuid>{{system_id}}</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"
]
},
"description": "Для создания коннектора в шине нужно вызвать метод createConnector, где templateName - это имя шаблона, полученное из метода getTemplates, system_uuid - это uuid профиля, зарегистрированного в системе ранее, также нужно заполнить список параметров необходимый для создания коннектора(ВНИМАНИЕ! если не заполнить список параметров, то установятся значения по умолчанию)\n"
},
"response": []
},
{
"name": "Получить список коннекторов",
"event": [
{
"listen": "test",
"script": {
"id": "39a21540-e292-418d-9d28-69627de99100",
"exec": [
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" 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 Messages\", function () {",
" pm.expect(response).to.have.property('listConnector');",
"});",
"",
"if (response.hasOwnProperty('listConnector')) {",
" var list_template = response['listConnector'];",
"",
" pm.test(\"Body matches uniform-service-in-connector\", function () {",
" pm.expect(pm.response.text()).to.include(\"uniform-service-in-connector\");",
2021-09-06 14:46:59 +00:00
" });",
"}"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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:listConnectorRequest/>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
},
"description": "Можно просматривать список подключенных коннекторов в шине методом getConnectors"
},
"response": []
},
{
"name": "Запустить работу коннектора в шине",
"event": [
{
"listen": "test",
"script": {
"id": "5d1fab2f-51ae-4726-a2ea-c836cf80c8b2",
"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": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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:startConnectorRequest>\n <sys:templateName>{{template_name}}</sys:templateName>\n <sys:profileUuid>{{system_id}}</sys:profileUuid>\n </sys:startConnectorRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
},
"description": "Запустить коннектор можно с помощью метода startConnector, где вместо “system_uuid” нужно подставить uuid системы, “template_name” это имя шаблона"
},
"response": []
},
{
"name": "Остановить работу коннектора в шине",
"event": [
{
"listen": "test",
"script": {
"id": "7dd28510-2b75-439d-9bf9-a277dd1ad5cf",
"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": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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:stopConnectorRequest>\n <sys:templateName>{{template_name}}</sys:templateName>\n <sys:profileUuid>{{system_id}}</sys:profileUuid>\n </sys:stopConnectorRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
},
"description": "Остановить коннектор можно с помощью метода stopConnector, где вместо “system_uuid” нужно подставить uuid системы, “template_name” это имя шаблона"
},
"response": []
},
{
"name": "Удалить коннектор",
"event": [
{
"listen": "test",
"script": {
"id": "859d5f55-4da4-45a3-9553-fa3b2743044c",
"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": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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:removeConnectorRequest>\n <sys:templateName>{{template_name}}</sys:templateName>\n <sys:profileUuid>{{system_id}}</sys:profileUuid>\n </sys:removeConnectorRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
},
"description": "Удалить коннектор можно с помощью метода removeConnector, где вместо “system_uuid” нужно подставить uuid системы, “template_name” это имя шаблона"
},
"response": []
},
{
"name": "Получить список подключенных шин",
"event": [
{
"listen": "prerequest",
"script": {
"id": "e676f268-7463-46a7-83f1-852c32cdb570",
"exec": [
""
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "b03708a1-b1f5-4185-b8d0-8c4e00fe0af9",
"exec": [
"function getSoapBody() {",
" var jsonObject = xml2Json(responseBody);",
" 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 Messages listEsb\", function () {",
" pm.expect(response).to.have.property('listEsb');",
"});",
"",
"if (response.hasOwnProperty('listEsb')) {",
" var list_esb = response['listEsb'];",
" var esbName = list_esb[\"esbName\"];",
" ",
" if(Array.isArray(esbName)) {",
" esbName = esbName[0];",
" }",
" ",
" pm.test(\"Body matches \" + esbName, function () {",
" pm.globals.set(\"esb_name\", esbName);",
" });",
"}"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/xml",
"type": "text"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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:listEsbRequest/>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
},
"description": "Для получения списка подключенных шин можно с помощью метода getListEsb"
},
"response": []
},
{
"name": "Создание мостового профиля",
"event": [
{
"listen": "test",
"script": {
"id": "29d4a58d-62c0-468b-9783-4f6e35ca147a",
"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"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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>{{system_id}}</sys:profileUuid>\n <sys:profileName>{{system_id}}</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"
]
},
"description": "Создать профиль, ведущий на мост, можно с помощью метода createBridgeProfile, где “system_uuid” uuid системы, “esb_name” имя подключенной шины"
},
"response": []
},
{
"name": "Остановить мостовой профиль",
"event": [
{
"listen": "test",
"script": {
"id": "7943398a-5511-4a6e-858f-1c4afdb16cc5",
"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"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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:Body>\n <sys:startBridgeProfileRequest>\n <sys:profileUuid>{{system_id}}</sys:profileUuid>\n <sys:profileName>{{system_id}}</sys:profileName>\n <sys:esbName>{{esb_name}}</sys:esbName>\n </sys:startBridgeProfileRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
},
"description": "Остановить профиль, ведущий на мост, можно с помощью метода stopBridgeProfile, где “system_uuid” uuid системы, “esb_name” имя подключенной шины\n"
},
"response": []
},
{
"name": "Запустить мостовой профиль",
"event": [
{
"listen": "test",
"script": {
"id": "a8544cbe-0d41-490f-8507-8841359d00fd",
"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"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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:Body>\n <sys:stopBridgeProfileRequest>\n <sys:profileUuid>{{system_id}}</sys:profileUuid>\n <sys:profileName>{{system_id}}</sys:profileName>\n <sys:esbName>{{esb_name}}</sys:esbName>\n </sys:stopBridgeProfileRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
},
"description": "Запустить профиль, ведущий на мост, можно с помощью метода startBridgeProfile, где “system_uuid” uuid системы, “esb_name” имя подключенной шины\n\n"
},
"response": []
},
{
"name": "Получить мостовой профиль",
"event": [
{
"listen": "test",
"script": {
"id": "7dadab09-b3c9-477f-a503-d5307f8fa958",
"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"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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:Body>\n <sys:getBridgeProfileRequest>\n <sys:profileUuid>{{system_id}}</sys:profileUuid>\n <sys:profileName>{{system_id}}</sys:profileName>\n <sys:esbName>{{esb_name}}</sys:esbName>\n </sys:getBridgeProfileRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
},
"description": "Получить профиль, ведущий на мост, можно с помощью метода getBridgeProfile, где “system_uuid” uuid системы, “esb_name” имя подключенной шины\n\n"
},
"response": []
},
{
"name": "Получить список мостовых профилей",
"event": [
{
"listen": "test",
"script": {
"id": "954c6f50-e564-476c-b0d3-186af84509e2",
"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"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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:Body>\n <sys:getBridgeProfilesRequest/>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
},
"description": "Для получения списка профилей, ведущих на мост, можно использовать метод getBridgeProfiles:(ВНИМАНИЕ! запрос покажет список проброшенных профилей на ТЕКУЩЕЙ шине)\n"
},
"response": []
},
{
"name": "Удалить мостовой профиль",
"event": [
{
"listen": "test",
"script": {
"id": "bbb77d98-0c2c-4de7-95c7-ae2b79ec887d",
"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"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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:Body>\n <sys:removeBridgeProfileRequest>\n <sys:profileUuid>{{system1_id}}</sys:profileUuid>\n <sys:profileName>{{system1_id}}</sys:profileName>\n <sys:esbName>{{esb_name}}</sys:esbName>\n </sys:removeBridgeProfileRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
},
"description": "Удалить профиль, ведущий на мост, можно с помощью метода removeBridgeProfile, где “system_uuid” uuid системы, “esb_name” имя подключенной шины\n\n\n"
},
"response": []
},
{
"name": "Создать доступ",
"event": [
{
"listen": "test",
"script": {
"id": "e8022e10-0979-4ae3-98e7-40930fa57727",
"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"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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_id}}</sys:objectUuid>\n <sys:subjectUuid>{{system1_id}}</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"
]
},
"description": "Создать доступ одной системы к другой, можно с помощью метода createPermission, где “objectUuid” uuid системы, которой нужно дать доступ, “subjectUuid” - uuid системы, к которой нужно дать доступ"
},
"response": []
},
{
"name": "Удалить доступ",
"event": [
{
"listen": "test",
"script": {
"id": "ab8fdbbf-b4d4-4756-ae75-aba9c117c538",
"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"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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:Body>\n <sys:removePermissionRequest>\n <sys:objectUuid>{{system_id}}</sys:objectUuid>\n <sys:subjectUuid>{{system_id}}</sys:subjectUuid>\n </sys:removePermissionRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
},
"description": "Удалить доступ одной системы к другой, можно с помощью метода removePermission, где “objectUuid” uuid системы, которой нужно дать доступ, “subjectUuid” - uuid системы, к которой нужно дать доступ"
},
"response": []
},
{
"name": "Получить список систем, доступ к которым от данной системы разрешен",
"event": [
{
"listen": "test",
"script": {
"id": "f05fc1db-913c-4a91-810a-dd777cefc048",
"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"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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:Body>\n <sys:getPermissionsByObjectRequest>\n <sys:uuid>{{system_id}}</sys:uuid>\n </sys:getPermissionsByObjectRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
},
"description": "Получить список систем, доступ к которым от данной системы разрешен, можно с помощью метода getPermissionByObject, где “objectUuid” uuid системы\n"
},
"response": []
},
{
"name": "Получить список систем, доступ которым разрешен к данной системе",
"event": [
{
"listen": "test",
"script": {
"id": "454c7cde-48bb-49c7-aa11-5e63e298555e",
"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"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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:Body>\n <sys:getPermissionsBySubjectRequest>\n <sys:uuid>{{system_id}}</sys:uuid>\n </sys:getPermissionsBySubjectRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
},
"description": "Получить список систем, доступ которым разрешен к данной системе, можно с помощью метода getPermissionBySubject, где “subjectUuid” uuid системы:\n"
},
"response": []
},
{
"name": "Создать сразу несколько доступов, которым разрешено отправлять сообщения от данной системы",
"event": [
{
"listen": "test",
"script": {
"id": "9f59cfd2-0abb-4aaa-8e42-273fcb9927c5",
"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"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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:createPermissionForObjectRequest>\n <sys:objectUuid>{{objectUuid}}</sys:objectUuid>\n <!--Zero or more repetitions:-->\n <sys:subjectUuid>{{subjectUuid1}}</sys:subjectUuid>\n <sys:subjectUuid>{{subjectUuid2}}</sys:subjectUuid>\n </sys:createPermissionForObjectRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
},
2022-08-23 10:40:11 +00:00
"description": "Создать сразу несколько доступов, которым разрешено отправлять сообщения от данной системы, можно с помощью метода createPermissionForObjectRequest, где “objectUuid” это uuid системы, от которой буду исходить сообщения, “subjectUuid1”, “subjectUuid2” и т д, это uuid систем, которым будут отправлять сообщения\n"
2021-09-06 14:46:59 +00:00
},
"response": []
},
{
"name": "Создать сразу несколько доступов, которым разрешено отправлять сообщения в данную систему",
"event": [
{
"listen": "test",
"script": {
"id": "cacd85e7-bced-4116-bccb-ec87620bd0a4",
"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"
},
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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:createPermissionForObjectRequest>\n <sys:objectUuid>{{objectUuid}}</sys:objectUuid>\n <!--Zero or more repetitions:-->\n <sys:subjectUuid>{{subjectUuid1}}</sys:subjectUuid>\n <sys:subjectUuid>{{subjectUuid2}}</sys:subjectUuid>\n </sys:createPermissionForObjectRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/system-management",
"host": [
"{{base_url}}"
],
"path": [
"system-management"
]
},
2022-08-23 10:40:11 +00:00
"description": "Создать сразу несколько доступов, которым разрешено отправлять сообщения в данную систему, можно с помощью метода createPermissionForSubjectRequest, где “objectUuid1”, “objectUuid2” и т д - это uuid систем, от которых буду исходить сообщения, “subjectUuid” - это uuid системы, которой будут отправлять сообщения\n"
2021-09-06 14:46:59 +00:00
},
"response": []
}
],
"description": "Профиль(profile) - это описание внешней системы в шине.(Например s1).\n\nМостовой профиль(bridge-profile) - это профиль на другой стороне шины, ведущий через мост в профиль.\n(Например s1)\n\nКоннектор(connector) - это связь между интерфейсом, через который может работать система, и профилем.(Например uniform-service, nsi)\n\nДоступ(permission) - это разрешение на взаимодействие двух систем.(Например для того чтобы система s1 смогла отправить сообщение s2)(/permission-management)\n\nУчетная запись(account) - это учетная запись системы для взаимодействия с шиной.\n\nДля каждой системы должна быть учетная запись для возможности отправления сообщений в шину.\n\nТакже есть учетные записи для возможности взаимодействия с управленческим слоем(т. е. для того чтобы управлять коннекторами/профилями/учетными записями/топиками нужна учетная запись с соответствующими правами)(/basic-auth-management)\nКоннекторы делятся на входящие и исходящие(in, out), которые отвечают за отправку сообщения в определенный интерфейс и на получение ответа из определенного интерфейса соответственно.\nНапример, для того чтобы иметь возможность отправить сообщение в soap нужно создать коннектор uniform-service-in-connector, а для того чтобы получить сообщение из soap нужно создать коннектор soap-out-connector.\nПо адресу /system-management-service находится сам сервис управления коннекторами и профилями в шине.\nДля работы внешней системы в шине нужно сначала создать профиль данной системы в шине, потом добавлять к нему необходимые коннекторы и пробрасывать его в необходимые шины.\n",
"event": [
{
"listen": "prerequest",
"script": {
"id": "94c3de71-9085-4751-8f4f-81aa7068b382",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "6fc701b1-cfdf-464e-b80c-fe7cd100d358",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"protocolProfileBehavior": {}
},
{
"name": "Rest сервис Topic-management",
"item": [
{
"name": "Создать топик",
"request": {
"method": "POST",
"header": [
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"topicName\": \"boomNews\",\n \"possibleSubscribers\" : [\"systemUuid1\", \"systemUuid2\"],\n \"possiblePublishers\" : [\"systemUuid3\", \"systemUuid4\"]\n}\n",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host}}:9090/topic-management/create",
"host": [
"{{host}}"
],
"port": "9090",
"path": [
"topic-management",
"create"
]
},
"description": "При создании и изменении топика, есть возможность передать списки систем, которым доступна подписка или публикация в данном топике.\n"
},
"response": []
},
{
"name": "Обновить топик",
"request": {
"method": "POST",
"header": [
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"topicName\": \"boomNews\",\n \"possibleSubscribers\" : [\"systemUuid1\", \"systemUuid2\"],\n \"possiblePublishers\" : [\"systemUuid3\", \"systemUuid4\"]\n}"
},
"url": {
"raw": "{{host}}:9090/topic-management/update",
"host": [
"{{host}}"
],
"port": "9090",
"path": [
"topic-management",
"update"
]
},
"description": "изменить топик (название не меняется, так как на него завязана сама очередь в брокере)\n"
},
"response": []
},
{
"name": "Удалить топик",
"request": {
"method": "POST",
"header": [
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"topicName\": \"boomNews\"\n}"
},
"url": {
"raw": "{{host}}:9090/topic-management/delete",
"host": [
"{{host}}"
],
"port": "9090",
"path": [
"topic-management",
"delete"
]
},
"description": "delete - топик помечается как удалённый\n\n"
},
"response": []
},
{
"name": "Очистка хранилища топиков",
"request": {
"method": "POST",
"header": [
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{host}}:9090/topic-management/clean",
"host": [
"{{host}}"
],
"port": "9090",
"path": [
"topic-management",
"clean"
]
},
"description": "Окончательное удаление топиков, помеченных как удалённые."
},
"response": []
},
{
"name": "Подписаться на топик",
"request": {
"method": "POST",
"header": [
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"topicName\": \"boomNews\",\n \"subscriptionType\": \"PUSH\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host}}:9090/topic-subscription/subscribe",
"host": [
"{{host}}"
],
"port": "9090",
"path": [
"topic-subscription",
"subscribe"
]
}
},
"response": []
},
{
"name": "Отписаться от топика",
"request": {
"method": "POST",
"header": [
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"topicName\": \"boomNews\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host}}:9090/topic-subscription/unsubscribe",
"host": [
"{{host}}"
],
"port": "9090",
"path": [
"topic-subscription",
"unsubscribe"
]
}
},
"response": []
},
{
"name": "Массовая обработка при наличии права manage для данного сервиса",
"request": {
"method": "POST",
"header": [
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"topicName\": \"boomNews\",\n \"systemUuids\": [\n {\n \"systemUuid\": \"NNNNNNNN-NNNN-NNNN-NNNN-NNNNNNNNNNNN\",\n \"subscriptionType\": \"PUSH\"\n },\n {\n \"systemUuid\": \"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\",\n \"subscriptionType\": \"PULL\"\n },\n {\n \"systemUuid\": \"YYYYYYYY-YYYY-YYYY-YYYY-YYYYYYYYYYYY\",\n \"subscriptionType\": \"PULL\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host}}:9092/topic-subscription/subscribe",
"host": [
"{{host}}"
],
"port": "9092",
"path": [
"topic-subscription",
"subscribe"
]
}
},
"response": []
},
{
"name": "Массовая обработка при наличии права manage для данного сервиса",
"request": {
"method": "POST",
"header": [
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"topicName\": \"boomNews\",\n \"systemUuids\": [\n {\n \"systemUuid\":\"NNNNNNNN-NNNN-NNNN-NNNN-NNNNNNNNNNNN\",\n \"subscriptionType\": \"PUSH\"\n },\n {\n \"systemUuid\": \"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\",\n \"subscriptionType\": \"PULL\"\n },\n {\n \"systemUuid\": \"YYYYYYYY-YYYY-YYYY-YYYY-YYYYYYYYYYYY\",\n \"subscriptionType\": \"PULL\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host}}:9092/topic-subscription/unsubscribe",
"host": [
"{{host}}"
],
"port": "9092",
"path": [
"topic-subscription",
"unsubscribe"
]
}
},
"response": []
},
{
"name": "Опубликовать событие",
"request": {
"method": "POST",
"header": [
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"topicName\": \"boomNews\", \"message\": \"messageText2\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host}}:9090/topic-subscription/publish",
"host": [
"{{host}}"
],
"port": "9090",
"path": [
"topic-subscription",
"publish"
]
}
},
"response": []
}
],
"description": "\nСервис состоит из 2-х контекстов:\n\n- _topic-management_ - управление топиками (создание/изменение/удаление)\n- _topic-subscription_ - клиентский сервис подписки и публикации сообщения\n\nПри смене контекста в конфигурационных файлах требуется перераздать права на данный сервис.\n",
"protocolProfileBehavior": {}
},
{
"name": "Authentication",
"item": [
{
"name": "Добавление аккаунтов",
"request": {
"method": "POST",
"header": [
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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>system1login</bas:login>\n <bas:password>system1pass</bas:password>\n <!--Optional:-->\n <bas:systemUUID>system1uuid</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"
]
},
"description": "Метод для добавления учетных записей (addAccount) разработан для добавления новых пользователей в систему.\n"
},
"response": []
},
{
"name": "Обновление аккаунтов",
"request": {
"method": "POST",
"header": [
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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>system1login</bas:login>\n <bas:password>system1pass</bas:password>\n <!--Optional:-->\n <bas:systemUUID>system1uuid</bas:systemUUID>\n </bas:account>\n <bas:account>\n <bas:login>system2login</bas:login>\n <bas:password>system2pass</bas:password>\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"
]
},
"description": "Метод для обновления учетной записи (updateAccount)разработан для обновления следующей информации:\n"
},
"response": []
},
{
"name": "Удаление аккаунтов",
"request": {
"method": "POST",
"header": [
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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>system1login</bas:login>\n <bas:login>system2login</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"
]
},
"description": "Метод для удаления аккаунта (removeAccount) служит для удаления аккаунта из системы.\n"
},
"response": []
},
{
"name": "Выдача прав аккаунту",
"request": {
"method": "POST",
"header": [
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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:permissionList>\n <!--1 or more repetitions:-->\n <bas:permission>\n <bas:login>dog</bas:login>\n <bas:subject>topic-management</bas:subject>\n <bas:subjectType>service</bas:subjectType>\n <!--Optional:-->\n <bas:action></bas:action>\n </bas:permission>\n <bas:permission>\n <bas:login>dog</bas:login>\n <bas:subject>system-management</bas:subject>\n <bas:subjectType>service</bas:subjectType>\n <!--Optional:-->\n <bas:action></bas:action>\n </bas:permission>\n </bas:permissionList>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/basic-auth-management",
"host": [
"{{base_url}}"
],
"path": [
"basic-auth-management"
]
},
"description": "Метод выдачи прав аккаунту (addAccountPermission) служит для создания permission связанных с переданным аккаунтом.\n"
},
"response": []
},
{
"name": " Удаление прав аккаунта",
"request": {
"method": "POST",
"header": [
{
"key": "X-ForwardedUser",
"value": "{{adminLogin}}",
"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:permissionList>\n <!--1 or more repetitions:-->\n <bas:permission>\n <bas:login>dog</bas:login>\n <bas:subject>topic-management</bas:subject>\n <bas:subjectType>service</bas:subjectType>\n <!--Optional:-->\n <bas:action></bas:action>\n </bas:permission>\n <bas:permission>\n <bas:login>dog</bas:login>\n <bas:subject>system-management</bas:subject>\n <bas:subjectType>service</bas:subjectType>\n <!--Optional:-->\n <bas:action></bas:action>\n </bas:permission>\n </bas:permissionList>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/basic-auth-management",
"host": [
"{{base_url}}"
],
"path": [
"basic-auth-management"
]
},
"description": "Метод удаления прав аккаунта (removeAccountPermission) служит для удаления permission связанных с переданным аккаунтом.\n"
},
"response": []
}
],
"description": "Метод для добавления учетных записей (addAccount) разработан для добавления новых пользователей в систему.\n",
"event": [
{
"listen": "prerequest",
"script": {
"id": "90b3a65b-d7c1-41ec-b5b3-9008ac46660b",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "9832eddc-fe66-4f0d-a736-86ef1f84aafc",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"protocolProfileBehavior": {}
},
{
"name": "Сервис загрузки ресурсов",
"item": [
{
"name": "Загрузка ресурса",
"event": [
{
"listen": "test",
"script": {
"id": "4ef80c70-993e-45eb-86dd-c203491acabf",
"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": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/xml"
},
{
"key": "X-ForwardedUser",
"type": "text",
"value": "{{adminLogin}}"
}
],
"body": {
"mode": "raw",
"raw": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:reg=\"http://www.entaxy.ru/registry-schema-service/\">\n <soapenv:Body>\n <reg:loadResourceRequest>\n <reg:resourceValue>lama</reg:resourceValue>\n </reg:loadResourceRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/schema",
"host": [
"{{base_url}}"
],
"path": [
"schema"
]
},
"description": "Для загрузки ресурса в шину нужно использовать метод loadResource.\n- resourceValue - сам ресурс, в формате base64\n\n\n"
},
"response": []
},
{
"name": "Получить ресурс",
"event": [
{
"listen": "test",
"script": {
"id": "4f63face-528b-4d07-a0fe-ebea026cf416",
"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": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/xml"
},
{
"key": "X-ForwardedUser",
"type": "text",
"value": "{{adminLogin}}"
}
],
"body": {
"mode": "raw",
"raw": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:reg=\"http://www.entaxy.ru/registry-schema-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <reg:getResourceRequest>1</reg:getResourceRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/schema",
"host": [
"{{base_url}}"
],
"path": [
"schema"
]
},
"description": "Для выгрузки заранее загруженного ресурса в шину нужно использовать метод getResource.\n\n\n\n"
},
"response": []
},
{
"name": "Перезагрузить ресурс",
"event": [
{
"listen": "test",
"script": {
"id": "3eb62411-f82e-427f-899b-a5a4dbd699bb",
"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": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/xml"
},
{
"key": "X-ForwardedUser",
"type": "text",
"value": "{{adminLogin}}"
}
],
"body": {
"mode": "raw",
"raw": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:reg=\"http://www.entaxy.ru/registry-schema-service/\">\n <soapenv:Body>\n <reg:ResourceType>\n <reg:id>1</reg:id>\n <reg:resourceValue></reg:resourceValue>\n </reg:ResourceType>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/schema",
"host": [
"{{base_url}}"
],
"path": [
"schema"
]
},
"description": "Для перезагрузки ресурса в шину есть метод reloadResource.\n\n\n\n"
},
"response": []
},
{
"name": "Удалить ресурс",
"event": [
{
"listen": "test",
"script": {
"id": "9b839a39-a338-4005-80a9-68fb861d8cb2",
"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": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/xml"
},
{
"key": "X-ForwardedUser",
"type": "text",
"value": "{{adminLogin}}"
}
],
"body": {
"mode": "raw",
"raw": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:reg=\"http://www.entaxy.ru/registry-schema-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <reg:removeResourceRequest>1</reg:removeResourceRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/schema",
"host": [
"{{base_url}}"
],
"path": [
"schema"
]
},
"description": "Для удаления ресурса в шине есть метод removeResource.\n\n\n\n"
},
"response": []
},
{
"name": "Загрузить информацию о ресурсе",
"event": [
{
"listen": "test",
"script": {
"id": "15ac2ab2-7170-45ec-9eee-0966aa9d834b",
"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": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/xml"
},
{
"key": "X-ForwardedUser",
"type": "text",
"value": "{{adminLogin}}"
}
],
"body": {
"mode": "raw",
"raw": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:reg=\"http://www.entaxy.ru/registry-schema-service/\">\n <soapenv:Body>\n <reg:loadResourceInfoRequest>\n <reg:name>lama.xsd</reg:name>\n <reg:idResource>1</reg:idResource>\n <reg:version>1.0</reg:version>\n <reg:description>lama test</reg:description>\n <reg:convertor>false</reg:convertor>\n <reg:namespace>http:lama.xsd</reg:namespace>\n <reg:namespaceOut>l</reg:namespaceOut>\n </reg:loadResourceInfoRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/schema",
"host": [
"{{base_url}}"
],
"path": [
"schema"
]
},
"description": "Для загрузки мета информации ресурса в шине есть метод loadResourceInfo.\n\n\n\n"
},
"response": []
},
{
"name": "Получить информацию о ресурсе",
"event": [
{
"listen": "test",
"script": {
"id": "1987b97e-2f15-4cd7-842e-680acb4a8edd",
"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": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/xml"
},
{
"key": "X-ForwardedUser",
"type": "text",
"value": "{{adminLogin}}"
}
],
"body": {
"mode": "raw",
"raw": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:reg=\"http://www.entaxy.ru/registry-schema-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <reg:getResourceInfoRequest>1</reg:getResourceInfoRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/schema",
"host": [
"{{base_url}}"
],
"path": [
"schema"
]
},
"description": "Для получения мета информации ресурса в шине есть метод getResourceInfo.\n\n\n\n"
},
"response": []
},
{
"name": "Изменить информацию о ресурсе",
"event": [
{
"listen": "test",
"script": {
"id": "6eb7d443-c65e-4dc0-9f26-417998710ec5",
"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": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/xml"
},
{
"key": "X-ForwardedUser",
"type": "text",
"value": "{{adminLogin}}"
}
],
"body": {
"mode": "raw",
"raw": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:reg=\"http://www.entaxy.ru/registry-schema-service/\">\n <soapenv:Body>\n <reg:editResourceInfoRequest>\n <reg:id>1</reg:id>\n <reg:name>lama.xsd</reg:name>\n <reg:idResource>1</reg:idResource>\n <reg:version>1.0</reg:version>\n <reg:description>lama test</reg:description>\n <reg:convertor>false</reg:convertor>\n <reg:namespace>http:lama.xsd</reg:namespace>\n <reg:namespaceOut>l</reg:namespaceOut>\n </reg:editResourceInfoRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/schema",
"host": [
"{{base_url}}"
],
"path": [
"schema"
]
},
2022-08-23 10:40:11 +00:00
"description": "Для корректирования мета информации ресурса в шине есть метод editResourceInfo.\n\n\n\n\n"
2021-09-06 14:46:59 +00:00
},
"response": []
},
{
"name": "Удалить информацию о ресурсе",
"event": [
{
"listen": "test",
"script": {
"id": "2c30f524-db2e-4a4b-b384-bedfbc3b6841",
"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": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/xml"
},
{
"key": "X-ForwardedUser",
"type": "text",
"value": "{{adminLogin}}"
}
],
"body": {
"mode": "raw",
"raw": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:reg=\"http://www.entaxy.ru/registry-schema-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <reg:removeResourceInfoRequest>1</reg:removeResourceInfoRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/schema",
"host": [
"{{base_url}}"
],
"path": [
"schema"
]
},
"description": "Для удаления мета информации ресурса в шине есть метод removeResourceInfo.\n\n\n\n\n\n"
},
"response": []
},
{
"name": "Получить список информации о ресурсах",
"event": [
{
"listen": "test",
"script": {
"id": "cd6ea560-2b66-4e75-8fa2-479c1ee660ae",
"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": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/xml"
},
{
"key": "X-ForwardedUser",
"type": "text",
"value": "{{adminLogin}}"
}
],
"body": {
"mode": "raw",
"raw": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:reg=\"http://www.entaxy.ru/registry-schema-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <reg:getResourceInfoListRequest/>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/schema",
"host": [
"{{base_url}}"
],
"path": [
"schema"
]
},
"description": "Для получения списка мета информации ресурсов в шине есть метод getResourceInfoList.\n\n\n\n\n\n"
},
"response": []
},
{
"name": "Получить список информации о ресурсах по имени ресурса",
"event": [
{
"listen": "test",
"script": {
"id": "b4a24cf7-bfe8-4456-9cfb-395de3961f90",
"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": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/xml"
},
{
"key": "X-ForwardedUser",
"type": "text",
"value": "{{adminLogin}}"
}
],
"body": {
"mode": "raw",
"raw": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:reg=\"http://www.entaxy.ru/registry-schema-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <reg:getResourceInfoListByNameRequest>\n <reg:name>.xsd</reg:name>\n </reg:getResourceInfoListByNameRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/schema",
"host": [
"{{base_url}}"
],
"path": [
"schema"
]
},
"description": "Для получения списка мета информации ресурсов по имени ресурса в шине есть метод getResourceInfoListByName.\n\n\n\n\n\n"
},
"response": []
},
{
"name": "Получить список информации о ресурсах по namespace ресурса",
"event": [
{
"listen": "test",
"script": {
"id": "15458871-e3b5-4f5c-a16f-917b3a57ea2e",
"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": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/xml"
},
{
"key": "X-ForwardedUser",
"type": "text",
"value": "{{adminLogin}}"
}
],
"body": {
"mode": "raw",
"raw": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:reg=\"http://www.entaxy.ru/registry-schema-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <reg:getResourceInfoListByNamespaceRequest>\n <reg:namespace>lama</reg:namespace>\n </reg:getResourceInfoListByNamespaceRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/schema",
"host": [
"{{base_url}}"
],
"path": [
"schema"
]
},
"description": "Для получения списка мета информации ресурсов по namespace ресурса в шине есть метод getResourceInfoListByNamespace.\n\n\n\n\n\n"
},
"response": []
}
],
"protocolProfileBehavior": {}
},
{
"name": "Работа с файлами",
"item": [
{
"name": "Загрузка мета информации о файле",
"event": [
{
"listen": "test",
"script": {
"id": "0348e084-47aa-4b4b-8839-79241f336ca2",
"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);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"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:bigPacketInfo>\n <ns:messageUUID>{{messageUUID}}</ns:messageUUID>\n <ns:partsCount>1</ns:partsCount>\n <ns:checksum>228377149</ns:checksum>\n <ns:size>1</ns:size>\n </ns:bigPacketInfo>\n </soapenv:Body>\n</soapenv:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/bigPackets",
"host": [
"{{base_url}}"
],
"path": [
"bigPackets"
]
},
"description": "Для начала загрузки необходимо прислать в шину служебную информацию о файле(количество кусков, id, checksum)"
},
"response": []
},
{
"name": "Загрузка части файла",
"event": [
{
"listen": "test",
"script": {
"id": "d283f30d-eaa7-4fa4-897c-33380f724e12",
"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);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:ns=\"http://www.entaxy.ru/ExchangeTypes/1.0\">\n <soap:Header/>\n <soap:Body>\n <ns:bigPacketPart>\n <ns:messageUUID>{{messageUUID}}</ns:messageUUID>\n <ns:part>1</ns:part>\n <ns:data>bGFtYQ==</ns:data>\n </ns:bigPacketPart>\n </soap:Body>\n</soap:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/bigPackets",
"host": [
"{{base_url}}"
],
"path": [
"bigPackets"
]
}
},
"response": []
},
{
"name": "Подтверждение загрузки файла",
"event": [
{
"listen": "test",
"script": {
"id": "ff868b95-e667-4c29-b7d0-c0cac5b51432",
"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);",
"});"
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"disabledSystemHeaders": {
"content-type": true
}
},
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "application/soap+xml;charset=UTF-8;action=\"http://www.entaxy/connector/bigPackets/esb/1.0#Integration:ConfirmTransfer\""
},
{
"key": "",
"type": "text",
"value": "",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": "<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:ns=\"http://www.entaxy.ru/ExchangeTypes/1.0\">\n <soap:Header/>\n <soap:Body>\n <ns:uuid>{{messageUUID}}</ns:uuid>\n </soap:Body>\n</soap:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/bigPackets",
"host": [
"{{base_url}}"
],
"path": [
"bigPackets"
]
},
"description": "При загрузки в шину всех кусков файла необходимо послать запрос об окончании загрузки, для проверки целостности файла."
},
"response": []
},
{
"name": "Запрос на скачивание файла",
"event": [
{
"listen": "test",
"script": {
"id": "c2006b22-00c3-4cef-a432-3eaf66023850",
"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);",
"});"
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"disabledSystemHeaders": {
"content-type": true
}
},
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "Content-Type: application/soap+xml;charset=UTF-8;action=\"http://www.entaxy/connector/bigPackets/esb/1.0#Integration:DownloadRequest\""
}
],
"body": {
"mode": "raw",
"raw": "<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:ns=\"http://www.entaxy.ru/ExchangeTypes/1.0\">\n <soap:Header/>\n <soap:Body>\n <ns:uuid>{{messageUUID}}</ns:uuid>\n </soap:Body>\n</soap:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/bigPackets",
"host": [
"{{base_url}}"
],
"path": [
"bigPackets"
]
}
},
"response": []
},
{
"name": "Получение куска файла",
"event": [
{
"listen": "test",
"script": {
"id": "76950610-16ae-4088-a559-36bf8b0d4f33",
"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);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:ns=\"http://www.entaxy.ru/ExchangeTypes/1.0\">\n <soap:Header/>\n <soap:Body>\n <ns:getBigPacketPartRequest>\n <ns:messageUUID>{{messageUUID}}</ns:messageUUID>\n <ns:part>1</ns:part>\n </ns:getBigPacketPartRequest>\n </soap:Body>\n</soap:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/bigPackets",
"host": [
"{{base_url}}"
],
"path": [
"bigPackets"
]
}
},
"response": []
},
{
"name": "Подтверждение получения файла",
"event": [
{
"listen": "test",
"script": {
"id": "de8415be-fb49-455f-85e5-6a04e784d710",
"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);",
"});"
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"disabledSystemHeaders": {
"content-type": true
}
},
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "Content-Type: application/soap+xml;charset=UTF-8;action=\"http://www.entaxy/connector/bigPackets/esb/1.0#Integration:ConfirmDownload\"",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:ns=\"http://www.entaxy.ru/ExchangeTypes/1.0\">\n <soap:Header/>\n <soap:Body>\n <ns:uuid>{{messageUUID}}</ns:uuid>\n </soap:Body>\n</soap:Envelope>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{base_url}}/bigPackets",
"host": [
"{{base_url}}"
],
"path": [
"bigPackets"
]
},
"description": "Необходим для удаления из шины уже выкачанного файла."
},
"response": []
}
],
"protocolProfileBehavior": {}
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "8dad468e-a846-4dcb-af3b-22959aa33b7d",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "75322b50-d081-49b3-b833-1d02a88c2136",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"variable": [
{
"id": "74a38652-a338-49e7-941d-40f6a4c91e24",
"key": "X-ForwardedUser",
"value": ""
}
],
"protocolProfileBehavior": {}
}