aboutsummaryrefslogtreecommitdiffstats
path: root/test/postman/07_Declare_owningEntity_LineOfBusiness_project_platform.postman_collection.json
diff options
context:
space:
mode:
Diffstat (limited to 'test/postman/07_Declare_owningEntity_LineOfBusiness_project_platform.postman_collection.json')
-rw-r--r--test/postman/07_Declare_owningEntity_LineOfBusiness_project_platform.postman_collection.json302
1 files changed, 0 insertions, 302 deletions
diff --git a/test/postman/07_Declare_owningEntity_LineOfBusiness_project_platform.postman_collection.json b/test/postman/07_Declare_owningEntity_LineOfBusiness_project_platform.postman_collection.json
deleted file mode 100644
index a1bceb3cc..000000000
--- a/test/postman/07_Declare_owningEntity_LineOfBusiness_project_platform.postman_collection.json
+++ /dev/null
@@ -1,302 +0,0 @@
-{
- "info": {
- "_postman_id": "4d04e8e7-d495-4dcc-a800-1cf4ab643403",
- "name": "07_Declare_owningEntity_LineOfBusiness_project_platform",
- "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
- },
- "item": [
- {
- "name": "Declare owningEntity in VID",
- "event": [
- {
- "listen": "test",
- "script": {
- "id": "0643260b-1c9a-450e-aa72-ac2115244a97",
- "exec": [
- "pm.test(\"Status code is 200\", function () {",
- " pm.response.to.have.status(200);",
- "});",
- ""
- ],
- "type": "text/javascript"
- }
- }
- ],
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- },
- {
- "key": "Accept-Encoding",
- "value": "gzip, deflate"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\n \"options\": [\"{{owning_entity_name}}\"]\n}"
- },
- "url": {
- "raw": "{{url-vid}}/vid/maintenance/category_parameter/owningEntity",
- "host": [
- "{{url-vid}}"
- ],
- "path": [
- "vid",
- "maintenance",
- "category_parameter",
- "owningEntity"
- ]
- }
- },
- "response": []
- },
- {
- "name": "declare Owning-Entity in AAI",
- "request": {
- "method": "PUT",
- "header": [
- {
- "key": "Authorization",
- "value": "Basic QUFJOkFBSQ=="
- },
- {
- "key": "X-FromAppId",
- "value": "AAI"
- },
- {
- "key": "Accept",
- "value": "application/json"
- },
- {
- "key": "X-TransactionId",
- "value": "get_aai_subscr"
- },
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\n \"owning-entity-name\": \"{{owning_entity_name}}\",\n \"owning-entity-id\": \"{{owning_entity_id}}\"\n}"
- },
- "url": {
- "raw": "{{url-aai}}/aai/v13/business/owning-entities/owning-entity/{{owning_entity_id}}",
- "host": [
- "{{url-aai}}"
- ],
- "path": [
- "aai",
- "v13",
- "business",
- "owning-entities",
- "owning-entity",
- "{{owning_entity_id}}"
- ]
- }
- },
- "response": []
- },
- {
- "name": "Get owning-entities",
- "event": [
- {
- "listen": "test",
- "script": {
- "id": "294b8cb1-67a3-435d-817f-7fd5497183db",
- "exec": [
- "pm.test(\"Status code is 200\", function () {",
- " pm.response.to.have.status(200);",
- "});",
- "",
- "var jsonData = pm.response.json();",
- "var oe_found = false;",
- "for (var i = 0; i < jsonData[\"owning-entity\"].length; i++) { ",
- " if (jsonData[\"owning-entity\"][i][\"owning-entity-name\"] === pm.environment.get(\"owning_entity\")) {",
- " oe_found = true;",
- " pm.environment.set(\"auto_owning_entity_id\", \"\"+jsonData[\"owning-entity\"][i][\"owning-entity-id\"]+\"\");",
- " }",
- "}",
- "tests[\"Owning-Entity \"+pm.environment.get(\"owning_entity\")+\" found and id saved\"] = oe_found === true;"
- ],
- "type": "text/javascript"
- }
- }
- ],
- "request": {
- "method": "GET",
- "header": [
- {
- "key": "Authorization",
- "value": "Basic QUFJOkFBSQ=="
- },
- {
- "key": "X-FromAppId",
- "value": "AAI"
- },
- {
- "key": "Accept",
- "value": "application/json"
- },
- {
- "key": "X-TransactionId",
- "value": "get_aai_subscr"
- },
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": ""
- },
- "url": {
- "raw": "{{url-aai}}/aai/v16/business/owning-entities",
- "host": [
- "{{url-aai}}"
- ],
- "path": [
- "aai",
- "v16",
- "business",
- "owning-entities"
- ]
- }
- },
- "response": []
- },
- {
- "name": "Declare platform",
- "event": [
- {
- "listen": "test",
- "script": {
- "id": "6d0d2a8b-b756-4386-9113-d39722218bf5",
- "exec": [
- "pm.test(\"Status code is 200\", function () {",
- " pm.response.to.have.status(200);",
- "});"
- ],
- "type": "text/javascript"
- }
- }
- ],
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\n \"options\": [\"{{platform}}\"]\n}"
- },
- "url": {
- "raw": "{{url-vid}}/vid/maintenance/category_parameter/platform",
- "host": [
- "{{url-vid}}"
- ],
- "path": [
- "vid",
- "maintenance",
- "category_parameter",
- "platform"
- ]
- }
- },
- "response": []
- },
- {
- "name": "Declare lineOfBusiness",
- "event": [
- {
- "listen": "test",
- "script": {
- "id": "e177b994-db59-4b13-b003-b6fc0dda6907",
- "exec": [
- "pm.test(\"Status code is 200\", function () {",
- " pm.response.to.have.status(200);",
- "});"
- ],
- "type": "text/javascript"
- }
- }
- ],
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\n \"options\": [\"{{lineofbusiness}}\"]\n}"
- },
- "url": {
- "raw": "{{url-vid}}/vid/maintenance/category_parameter/lineOfBusiness",
- "host": [
- "{{url-vid}}"
- ],
- "path": [
- "vid",
- "maintenance",
- "category_parameter",
- "lineOfBusiness"
- ]
- }
- },
- "response": []
- },
- {
- "name": "Declare project",
- "event": [
- {
- "listen": "test",
- "script": {
- "id": "a5eb2421-a949-44f9-a8f7-786b672aede3",
- "exec": [
- "pm.test(\"Status code is 200\", function () {",
- " pm.response.to.have.status(200);",
- "});"
- ],
- "type": "text/javascript"
- }
- }
- ],
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\n \"options\": [\"{{project}}\"]\n}"
- },
- "url": {
- "raw": "{{url-vid}}/vid/maintenance/category_parameter/project",
- "host": [
- "{{url-vid}}"
- ],
- "path": [
- "vid",
- "maintenance",
- "category_parameter",
- "project"
- ]
- }
- },
- "response": []
- }
- ]
-}