1630 lines
59 KiB
JSON
1630 lines
59 KiB
JSON
{
|
|
"info": {
|
|
"_postman_id": "3901174c-b62e-4012-8e17-6eed9b3c3d17",
|
|
"name": "system-management test",
|
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
|
},
|
|
"item": [
|
|
{
|
|
"name": "Connector",
|
|
"item": [
|
|
{
|
|
"name": "Create profile",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "3ad41881-2f07-4eb4-a5be-b463b0b107a4",
|
|
"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>{{system1_id}}</sys:profileName>\n <sys:uuid>{{system1_id}}</sys:uuid>\n <!--Optional:-->\n <sys:description>description</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": "Get Templates",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "3e886e66-3a71-419d-b117-755ee2727f16",
|
|
"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 nsi-in-connector\", function () {",
|
|
" pm.expect(pm.response.text()).to.include(\"nsi-in-connector\");",
|
|
" });",
|
|
" ",
|
|
" // if (response.some(item => item.templateName === 'nsi-in-connector')) {",
|
|
" pm.globals.set(\"template_name\", \"nsi-in-connector\");",
|
|
" // }",
|
|
" ",
|
|
" 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"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Get Template",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "682ab944-e6f1-46b4-a0d0-0055db26188f",
|
|
"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"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Create connector",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "32b5a8d6-09a6-4387-ad12-28d530813c39",
|
|
"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>{{system1_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"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Stop connector",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "1d89584d-b2b5-4b4c-9acf-ea394f8e91cd",
|
|
"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>{{system1_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"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Get profile",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "75cecfb9-145e-4a1c-bf70-0462f05a0df5",
|
|
"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>{{system1_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"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Start connector",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "1b9e5995-395e-4e40-be37-0fdc84caca2e",
|
|
"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>{{system1_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"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Get connectors",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "54b58405-b8c7-4cb4-a359-1ccb27f0c18d",
|
|
"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 nsi-in-connector\", function () {",
|
|
" pm.expect(pm.response.text()).to.include(\"nsi-in-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:listConnectorRequest/>\n </soapenv:Body>\n</soapenv:Envelope>",
|
|
"options": {
|
|
"raw": {
|
|
"language": "xml"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/system-management",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"system-management"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Get profile",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "f2d3f916-a121-409d-8825-0e983c7a77a3",
|
|
"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",
|
|
"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:getProfileRequest>\n <sys:uuid>{{system1_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"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Remove connector",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "4317678a-f20f-4bb9-a373-c58c9d6e922d",
|
|
"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>{{system1_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"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Get profile",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "01f43102-c5fa-4920-81ea-00c9bc7e8509",
|
|
"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 not matches \" + connectorName, function () {",
|
|
" pm.expect(pm.response.text()).to.not.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",
|
|
"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:getProfileRequest>\n <sys:uuid>{{system1_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"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Remove profile",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "8a5216f6-e73c-4f1d-a503-09ea70a61675",
|
|
"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>{{system1_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"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
],
|
|
"protocolProfileBehavior": {}
|
|
},
|
|
{
|
|
"name": "Profile",
|
|
"item": [
|
|
{
|
|
"name": "Create profile",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "3ad41881-2f07-4eb4-a5be-b463b0b107a4",
|
|
"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>{{system1_id}}</sys:profileName>\n <sys:uuid>{{system1_id}}</sys:uuid>\n <!--Optional:-->\n <sys:description>description</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": "Get Templates",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "3e886e66-3a71-419d-b117-755ee2727f16",
|
|
"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 nsi-in-connector\", function () {",
|
|
" pm.expect(pm.response.text()).to.include(\"nsi-in-connector\");",
|
|
" });",
|
|
" ",
|
|
" // if (response.some(item => item.templateName === 'nsi-in-connector')) {",
|
|
" pm.globals.set(\"template_name\", \"nsi-in-connector\");",
|
|
" // }",
|
|
" ",
|
|
" 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"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Get list esb",
|
|
"event": [
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"id": "173b9659-5c40-41f8-bd9f-c239fa9c1826",
|
|
"exec": [
|
|
""
|
|
],
|
|
"type": "text/javascript"
|
|
}
|
|
},
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "569ef9c9-c19a-4e99-b13a-247d45a0ec0c",
|
|
"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"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Create connector",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "32b5a8d6-09a6-4387-ad12-28d530813c39",
|
|
"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>{{system1_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"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Stop profile",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "1d89584d-b2b5-4b4c-9acf-ea394f8e91cd",
|
|
"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>{{system1_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"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Get profile",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "51ba95bd-ac91-4909-81de-c7a36f5b66ac",
|
|
"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\");",
|
|
"",
|
|
"",
|
|
"pm.test(\"Body matches \" + systemId, function () {",
|
|
" pm.expect(pm.response.text()).to.include(systemId);",
|
|
"});",
|
|
"",
|
|
"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:getProfileRequest>\n <sys:uuid>{{system1_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"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Start profile",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "1b9e5995-395e-4e40-be37-0fdc84caca2e",
|
|
"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>{{system1_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"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Get profile",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "2b51e47b-2f8b-460c-946b-6b7289ad25e2",
|
|
"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\");",
|
|
"",
|
|
"",
|
|
"pm.test(\"Body matches \" + systemId, function () {",
|
|
" pm.expect(pm.response.text()).to.include(systemId);",
|
|
"});",
|
|
"",
|
|
"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:getProfileRequest>\n <sys:uuid>{{system1_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"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Get profiles",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "f3fbacfc-83d4-42bb-b075-009c90a9d65b",
|
|
"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"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Remove profile",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "8b7e4094-4820-448c-9150-4046f4fd8dee",
|
|
"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>{{system1_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"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Get profile",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "30bf32ea-e3e8-46c9-852e-dce1bb0c5220",
|
|
"exec": [
|
|
"pm.test(\"Status code is 500\", function () {",
|
|
" pm.response.to.have.status(500);",
|
|
"});"
|
|
],
|
|
"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:getProfileRequest>\n <sys:uuid>{{system1_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"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
],
|
|
"protocolProfileBehavior": {}
|
|
}
|
|
],
|
|
"protocolProfileBehavior": {}
|
|
} |