859 lines
28 KiB
JSON
859 lines
28 KiB
JSON
{
|
|
"info": {
|
|
"_postman_id": "3f118e4b-c686-4e7b-b6eb-2132d25c1ee3",
|
|
"name": "schema-crud",
|
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
|
},
|
|
"item": [
|
|
{
|
|
"name": "load resource",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.have.status(200);",
|
|
"});",
|
|
"",
|
|
"function getSoapBody() {",
|
|
" var jsonObject = xml2Json(responseBody);",
|
|
" return jsonObject['soap:Envelope']['soap:Body'];",
|
|
"}",
|
|
"",
|
|
"var response = getSoapBody();",
|
|
"",
|
|
"var schema_id = response['response'][\"_\"];",
|
|
"",
|
|
"pm.globals.set('schema_id', schema_id);"
|
|
],
|
|
"type": "text/javascript"
|
|
}
|
|
}
|
|
],
|
|
"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:reg=\"http://www.entaxy.ru/registry-schema-service/\">\n <soapenv:Body>\n <reg:loadResourceRequest>\n <reg:resourceValue>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiID8+Cjx4czpzY2hlbWEgeG1sbnM6eHM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hIj4KCjwhLS0gICAgPHhzOmltcG9ydCBuYW1lc3BhY2U9Imh0dHBzOi8vd3d3LmxhbWEuY29tL3NjaGVtYSIvPi0tPgo8IS0tICAgIDx4czppbmNsdWRlIHNjaGVtYUxvY2F0aW9uPSJjbGFzc3BhdGg6Ly9sYW1hLnhzZCIvPi0tPgogICAgCiAgICA8eHM6ZWxlbWVudCBuYW1lPSJzaGlwb3JkZXIiPgogICAgICAgIDx4czpjb21wbGV4VHlwZT4KICAgICAgICAgICAgPHhzOnNlcXVlbmNlPgogICAgICAgICAgICAgICAgPHhzOmVsZW1lbnQgbmFtZT0ib3JkZXJwZXJzb24iIHR5cGU9InhzOnN0cmluZyIvPgogICAgICAgICAgICAgICAgPHhzOmVsZW1lbnQgbmFtZT0ic2hpcHRvIj4KICAgICAgICAgICAgICAgICAgICA8eHM6Y29tcGxleFR5cGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDx4czpzZXF1ZW5jZT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx4czplbGVtZW50IG5hbWU9Im5hbWUiIHR5cGU9InhzOnN0cmluZyIvPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHhzOmVsZW1lbnQgbmFtZT0iYWRkcmVzcyIgdHlwZT0ieHM6c3RyaW5nIi8+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8eHM6ZWxlbWVudCBuYW1lPSJjaXR5IiB0eXBlPSJ4czpzdHJpbmciLz4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx4czplbGVtZW50IG5hbWU9ImNvdW50cnkiIHR5cGU9InhzOnN0cmluZyIvPgogICAgICAgICAgICAgICAgICAgICAgICA8L3hzOnNlcXVlbmNlPgogICAgICAgICAgICAgICAgICAgIDwveHM6Y29tcGxleFR5cGU+CiAgICAgICAgICAgICAgICA8L3hzOmVsZW1lbnQ+CiAgICAgICAgICAgICAgICA8eHM6ZWxlbWVudCBuYW1lPSJpdGVtIiBtYXhPY2N1cnM9InVuYm91bmRlZCI+CiAgICAgICAgICAgICAgICAgICAgPHhzOmNvbXBsZXhUeXBlPgogICAgICAgICAgICAgICAgICAgICAgICA8eHM6c2VxdWVuY2U+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8eHM6ZWxlbWVudCBuYW1lPSJ0aXRsZSIgdHlwZT0ieHM6c3RyaW5nIi8+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8eHM6ZWxlbWVudCBuYW1lPSJub3RlIiB0eXBlPSJ4czpzdHJpbmciIG1pbk9jY3Vycz0iMCIvPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHhzOmVsZW1lbnQgbmFtZT0icXVhbnRpdHkiIHR5cGU9InhzOnBvc2l0aXZlSW50ZWdlciIvPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHhzOmVsZW1lbnQgbmFtZT0icHJpY2UiIHR5cGU9InhzOmRlY2ltYWwiLz4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx4czphbnkgbWluT2NjdXJzPSIwIiBwcm9jZXNzQ29udGVudHM9ImxheCIvPgogICAgICAgICAgICAgICAgICAgICAgICA8L3hzOnNlcXVlbmNlPgogICAgICAgICAgICAgICAgICAgIDwveHM6Y29tcGxleFR5cGU+CiAgICAgICAgICAgICAgICA8L3hzOmVsZW1lbnQ+CiAgICAgICAgICAgIDwveHM6c2VxdWVuY2U+CiAgICAgICAgICAgIDx4czphdHRyaWJ1dGUgbmFtZT0ib3JkZXJpZCIgdHlwZT0ieHM6c3RyaW5nIiB1c2U9InJlcXVpcmVkIi8+CiAgICAgICAgPC94czpjb21wbGV4VHlwZT4KICAgIDwveHM6ZWxlbWVudD4KPC94czpzY2hlbWE+</reg:resourceValue>\n </reg:loadResourceRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
|
|
"options": {
|
|
"raw": {
|
|
"language": "xml"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/schema-management",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"schema-management"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "get resource",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.have.status(200);",
|
|
"});",
|
|
"",
|
|
"function getSoapBody() {",
|
|
" var jsonObject = xml2Json(responseBody);",
|
|
" return jsonObject['soap:Envelope']['soap:Body'];",
|
|
"}",
|
|
"",
|
|
"var response = getSoapBody();",
|
|
"",
|
|
"var schema_id = response['FullResourceType'][\"id\"];",
|
|
"",
|
|
"pm.test(\"Return resource with id = \" + pm.globals.get(\"schema_id\"), function () {",
|
|
" pm.expect(Object.is(pm.globals.get(\"schema_id\"), schema_id)).to.be.true;",
|
|
"});"
|
|
],
|
|
"type": "text/javascript"
|
|
}
|
|
}
|
|
],
|
|
"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:reg=\"http://www.entaxy.ru/registry-schema-service/\">\n <soapenv:Header/>\n <soapenv:Body>\n <reg:getResourceRequest>{{schema_id}}</reg:getResourceRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
|
|
"options": {
|
|
"raw": {
|
|
"language": "xml"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/schema-management",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"schema-management"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "reload resource",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.have.status(200);",
|
|
"});",
|
|
""
|
|
],
|
|
"type": "text/javascript"
|
|
}
|
|
}
|
|
],
|
|
"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:reg=\"http://www.entaxy.ru/registry-schema-service/\">\n <soapenv:Body>\n <reg:ResourceType>\n <reg:id>{{schema_id}}</reg:id>\n <reg:resourceValue>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiID8+Cjx4czpzY2hlbWEgeG1sbnM6eHM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hIj4KCjwhLS0gICAgPHhzOmltcG9ydCBuYW1lc3BhY2U9Imh0dHBzOi8vd3d3LmxhbWEuY29tL3NjaGVtYSIvPi0tPgo8IS0tICAgIDx4czppbmNsdWRlIHNjaGVtYUxvY2F0aW9uPSJjbGFzc3BhdGg6Ly9sYW1hLnhzZCIvPi0tPgogICAgCiAgICA8eHM6ZWxlbWVudCBuYW1lPSJzaGlwb3JkZXIiPgogICAgICAgIDx4czpjb21wbGV4VHlwZT4KICAgICAgICAgICAgPHhzOnNlcXVlbmNlPgogICAgICAgICAgICAgICAgPHhzOmVsZW1lbnQgbmFtZT0ib3JkZXJwZXJzb24iIHR5cGU9InhzOnN0cmluZyIvPgogICAgICAgICAgICAgICAgPHhzOmVsZW1lbnQgbmFtZT0ic2hpcHRvIj4KICAgICAgICAgICAgICAgICAgICA8eHM6Y29tcGxleFR5cGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDx4czpzZXF1ZW5jZT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx4czplbGVtZW50IG5hbWU9Im5hbWUiIHR5cGU9InhzOnN0cmluZyIvPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHhzOmVsZW1lbnQgbmFtZT0iYWRkcmVzcyIgdHlwZT0ieHM6c3RyaW5nIi8+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8eHM6ZWxlbWVudCBuYW1lPSJjaXR5IiB0eXBlPSJ4czpzdHJpbmciLz4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx4czplbGVtZW50IG5hbWU9ImNvdW50cnkiIHR5cGU9InhzOnN0cmluZyIvPgogICAgICAgICAgICAgICAgICAgICAgICA8L3hzOnNlcXVlbmNlPgogICAgICAgICAgICAgICAgICAgIDwveHM6Y29tcGxleFR5cGU+CiAgICAgICAgICAgICAgICA8L3hzOmVsZW1lbnQ+CiAgICAgICAgICAgICAgICA8eHM6ZWxlbWVudCBuYW1lPSJpdGVtIiBtYXhPY2N1cnM9InVuYm91bmRlZCI+CiAgICAgICAgICAgICAgICAgICAgPHhzOmNvbXBsZXhUeXBlPgogICAgICAgICAgICAgICAgICAgICAgICA8eHM6c2VxdWVuY2U+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8eHM6ZWxlbWVudCBuYW1lPSJ0aXRsZSIgdHlwZT0ieHM6c3RyaW5nIi8+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8eHM6ZWxlbWVudCBuYW1lPSJub3RlIiB0eXBlPSJ4czpzdHJpbmciIG1pbk9jY3Vycz0iMCIvPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHhzOmVsZW1lbnQgbmFtZT0icXVhbnRpdHkiIHR5cGU9InhzOnBvc2l0aXZlSW50ZWdlciIvPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHhzOmVsZW1lbnQgbmFtZT0icHJpY2UiIHR5cGU9InhzOmRlY2ltYWwiLz4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx4czphbnkgbWluT2NjdXJzPSIwIiBwcm9jZXNzQ29udGVudHM9ImxheCIvPgogICAgICAgICAgICAgICAgICAgICAgICA8L3hzOnNlcXVlbmNlPgogICAgICAgICAgICAgICAgICAgIDwveHM6Y29tcGxleFR5cGU+CiAgICAgICAgICAgICAgICA8L3hzOmVsZW1lbnQ+CiAgICAgICAgICAgIDwveHM6c2VxdWVuY2U+CiAgICAgICAgICAgIDx4czphdHRyaWJ1dGUgbmFtZT0ib3JkZXJpZCIgdHlwZT0ieHM6c3RyaW5nIiB1c2U9InJlcXVpcmVkIi8+CiAgICAgICAgPC94czpjb21wbGV4VHlwZT4KICAgIDwveHM6ZWxlbWVudD4KPC94czpzY2hlbWE+</reg:resourceValue>\n </reg:ResourceType>\n </soapenv:Body>\n</soapenv:Envelope>",
|
|
"options": {
|
|
"raw": {
|
|
"language": "xml"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/schema-management",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"schema-management"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "get resource",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.have.status(200);",
|
|
"});",
|
|
"",
|
|
"function getSoapBody() {",
|
|
" var jsonObject = xml2Json(responseBody);",
|
|
" return jsonObject['soap:Envelope']['soap:Body'];",
|
|
"}",
|
|
"",
|
|
"var response = getSoapBody();",
|
|
"",
|
|
"var schema_id = response['FullResourceType'][\"id\"];",
|
|
"",
|
|
"pm.test(\"Return resource with id = \" + pm.globals.get(\"schema_id\"), function () {",
|
|
" pm.expect(Object.is(pm.globals.get(\"schema_id\"), schema_id)).to.be.true;",
|
|
"});"
|
|
],
|
|
"type": "text/javascript"
|
|
}
|
|
}
|
|
],
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"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>{{schema_id}}</reg:getResourceRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
|
|
"options": {
|
|
"raw": {
|
|
"language": "xml"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/schema-management",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"schema-management"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "load resource info",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.have.status(200);",
|
|
"});",
|
|
"",
|
|
"function getSoapBody() {",
|
|
" var jsonObject = xml2Json(responseBody);",
|
|
" return jsonObject['soap:Envelope']['soap:Body'];",
|
|
"}",
|
|
"",
|
|
"var response = getSoapBody();",
|
|
"",
|
|
"var resource_info_id = response['response'][\"_\"];",
|
|
"",
|
|
"pm.globals.set('resource_info_id', resource_info_id);"
|
|
],
|
|
"type": "text/javascript"
|
|
}
|
|
}
|
|
],
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"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 <reg:createdBy>?</reg:createdBy>\n </soapenv:Header>\n <soapenv:Body>\n <reg:loadResourceInfoRequest>\n <reg:name>lama.xsd</reg:name>\n <reg:path>lama/path</reg:path>\n <reg:idResource>{{schema_id}}</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-management",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"schema-management"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "get resource info",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.have.status(200);",
|
|
"});",
|
|
"",
|
|
"function getSoapBody() {",
|
|
" var jsonObject = xml2Json(responseBody);",
|
|
" return jsonObject['soap:Envelope']['soap:Body'];",
|
|
"}",
|
|
"",
|
|
"var response = getSoapBody();",
|
|
"",
|
|
"var schema_id = response['getResourceInfoResponse'][\"id\"];",
|
|
"",
|
|
"pm.test(\"Return resource info with id = \" + pm.globals.get(\"resource_info_id\"), function () {",
|
|
" pm.expect(Object.is(pm.globals.get(\"resource_info_id\"), schema_id)).to.be.true;",
|
|
"});"
|
|
],
|
|
"type": "text/javascript"
|
|
}
|
|
}
|
|
],
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"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>{{resource_info_id}}</reg:getResourceInfoRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
|
|
"options": {
|
|
"raw": {
|
|
"language": "xml"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/schema-management",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"schema-management"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "edit resource info",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.have.status(200);",
|
|
"});",
|
|
"",
|
|
"function getSoapBody() {",
|
|
" var jsonObject = xml2Json(responseBody);",
|
|
" return jsonObject['soap:Envelope']['soap:Body'];",
|
|
"}",
|
|
"",
|
|
"var response = getSoapBody();",
|
|
"",
|
|
"var resource_info_id = response['response'][\"_\"];",
|
|
"",
|
|
"pm.globals.set('resource_info_id', resource_info_id);"
|
|
],
|
|
"type": "text/javascript"
|
|
}
|
|
}
|
|
],
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"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 <reg:createdBy>?</reg:createdBy>\n </soapenv:Header>\n <soapenv:Body>\n <reg:editResourceInfoRequest>\n <reg:id>{{resource_info_id}}</reg:id>\n <reg:path>lama-2</reg:path>\n <reg:name>lama.xsd</reg:name>\n <reg:idResource>{{schema_id}}</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-management",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"schema-management"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "get resource info list",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.have.status(200);",
|
|
"});",
|
|
"",
|
|
"function getSoapBody() {",
|
|
" var jsonObject = xml2Json(responseBody);",
|
|
" return jsonObject['soap:Envelope']['soap:Body'];",
|
|
"}",
|
|
"",
|
|
"var response = getSoapBody();",
|
|
"",
|
|
"var xsdFullType = response['getResourceInfoListResponse'][\"ResourceInfoFullType\"];",
|
|
"",
|
|
"pm.test(\"getResourceInfoListResponse contains \" + pm.globals.get(\"resource_info_id\"), function () {",
|
|
" pm.expect(JSON.stringify(xsdFullType)).to.include(pm.globals.get(\"resource_info_id\"));",
|
|
"});"
|
|
],
|
|
"type": "text/javascript"
|
|
}
|
|
}
|
|
],
|
|
"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: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-management",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"schema-management"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "get resource info list by name",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.have.status(200);",
|
|
"});",
|
|
"",
|
|
"function getSoapBody() {",
|
|
" var jsonObject = xml2Json(responseBody);",
|
|
" return jsonObject['soap:Envelope']['soap:Body'];",
|
|
"}",
|
|
"",
|
|
"var response = getSoapBody();",
|
|
"",
|
|
"var xsdFullType = response['getResourceInfoListResponse'][\"ResourceInfoFullType\"];",
|
|
"",
|
|
"pm.test(\"getResourceInfoListResponse contains \" + pm.globals.get(\"resource_info_id\"), function () {",
|
|
" pm.expect(JSON.stringify(xsdFullType)).to.include(pm.globals.get(\"resource_info_id\"));",
|
|
"});"
|
|
],
|
|
"type": "text/javascript"
|
|
}
|
|
}
|
|
],
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"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-management",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"schema-management"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "get resource info list by full name",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.have.status(200);",
|
|
"});",
|
|
"",
|
|
"function getSoapBody() {",
|
|
" var jsonObject = xml2Json(responseBody);",
|
|
" return jsonObject['soap:Envelope']['soap:Body'];",
|
|
"}",
|
|
"",
|
|
"var response = getSoapBody();",
|
|
"",
|
|
"var xsdFullType = response['getResourceInfoListResponse'][\"ResourceInfoFullType\"];",
|
|
"",
|
|
"pm.test(\"getResourceInfoListResponse contains \" + pm.globals.get(\"resource_info_id\"), function () {",
|
|
" pm.expect(JSON.stringify(xsdFullType)).to.include(pm.globals.get(\"resource_info_id\"));",
|
|
"});"
|
|
],
|
|
"type": "text/javascript"
|
|
}
|
|
}
|
|
],
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"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:getResourceInfoListByFullNameRequest>\n <reg:fullName>lama/path/lama.xsd</reg:fullName>\n </reg:getResourceInfoListByFullNameRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
|
|
"options": {
|
|
"raw": {
|
|
"language": "xml"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/schema-management",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"schema-management"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "get resource info list by path",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.have.status(200);",
|
|
"});",
|
|
"",
|
|
"function getSoapBody() {",
|
|
" var jsonObject = xml2Json(responseBody);",
|
|
" return jsonObject['soap:Envelope']['soap:Body'];",
|
|
"}",
|
|
"",
|
|
"var response = getSoapBody();",
|
|
"",
|
|
"var xsdFullType = response['getResourceInfoListResponse'][\"ResourceInfoFullType\"];",
|
|
"",
|
|
"pm.test(\"getResourceInfoListResponse contains \" + pm.globals.get(\"resource_info_id\"), function () {",
|
|
" pm.expect(JSON.stringify(xsdFullType)).to.include(pm.globals.get(\"resource_info_id\"));",
|
|
"});"
|
|
],
|
|
"type": "text/javascript"
|
|
}
|
|
}
|
|
],
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"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:getResourceInfoListByPathRequest>\n <reg:path>lama</reg:path>\n </reg:getResourceInfoListByPathRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
|
|
"options": {
|
|
"raw": {
|
|
"language": "xml"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/schema-management",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"schema-management"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "get resource info list by full path",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.have.status(200);",
|
|
"});",
|
|
"",
|
|
"function getSoapBody() {",
|
|
" var jsonObject = xml2Json(responseBody);",
|
|
" return jsonObject['soap:Envelope']['soap:Body'];",
|
|
"}",
|
|
"",
|
|
"var response = getSoapBody();",
|
|
"",
|
|
"var xsdFullType = response['getResourceInfoListResponse'][\"ResourceInfoFullType\"];",
|
|
"",
|
|
"pm.test(\"getResourceInfoListResponse contains \" + pm.globals.get(\"resource_info_id\"), function () {",
|
|
" pm.expect(JSON.stringify(xsdFullType)).to.include(pm.globals.get(\"resource_info_id\"));",
|
|
"});"
|
|
],
|
|
"type": "text/javascript"
|
|
}
|
|
}
|
|
],
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"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:getResourceInfoListByFullPathRequest>\n <reg:path>lama/path/</reg:path>\n </reg:getResourceInfoListByFullPathRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
|
|
"options": {
|
|
"raw": {
|
|
"language": "xml"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/schema-management",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"schema-management"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "get resource info list by namespace",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.have.status(200);",
|
|
"});",
|
|
"",
|
|
"function getSoapBody() {",
|
|
" var jsonObject = xml2Json(responseBody);",
|
|
" return jsonObject['soap:Envelope']['soap:Body'];",
|
|
"}",
|
|
"",
|
|
"var response = getSoapBody();",
|
|
"",
|
|
"var xsdFullType = response['getResourceInfoListResponse'][\"ResourceInfoFullType\"];",
|
|
"",
|
|
"pm.test(\"getResourceInfoListResponse contains \" + pm.globals.get(\"resource_info_id\"), function () {",
|
|
" pm.expect(JSON.stringify(xsdFullType)).to.include(pm.globals.get(\"resource_info_id\"));",
|
|
"});"
|
|
],
|
|
"type": "text/javascript"
|
|
}
|
|
}
|
|
],
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"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>.xsd</reg:namespace>\n </reg:getResourceInfoListByNamespaceRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
|
|
"options": {
|
|
"raw": {
|
|
"language": "xml"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/schema-management",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"schema-management"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "remove resource info",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.have.status(200);",
|
|
"});",
|
|
"",
|
|
"pm.globals.unset('resource_info_id');"
|
|
],
|
|
"type": "text/javascript"
|
|
}
|
|
}
|
|
],
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"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>{{resource_info_id}}</reg:removeResourceInfoRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
|
|
"options": {
|
|
"raw": {
|
|
"language": "xml"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/schema-management",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"schema-management"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "remove resource",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.have.status(200);",
|
|
"});",
|
|
"",
|
|
"pm.globals.unset('schema_id');"
|
|
],
|
|
"type": "text/javascript"
|
|
}
|
|
}
|
|
],
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"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>{{schema_id}}</reg:removeResourceRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
|
|
"options": {
|
|
"raw": {
|
|
"language": "xml"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/schema-management",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"schema-management"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
],
|
|
"event": [
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"type": "text/javascript",
|
|
"exec": [
|
|
""
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"type": "text/javascript",
|
|
"exec": [
|
|
""
|
|
]
|
|
}
|
|
}
|
|
]
|
|
} |