aboutsummaryrefslogtreecommitdiffstats
path: root/test/postman/07_Declare_owningEntity_LineOfBusiness_project_platform.postman_collection.json
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-02-26 15:07:39 +0100
committerMorgan Richomme <morgan.richomme@orange.com>2020-03-02 14:20:42 +0000
commit2ab428182f0b1e4188de1ce9166033ad34b4cb48 (patch)
tree25c1c24cad2ad1fe5a7f324b19e62c290b945be1 /test/postman/07_Declare_owningEntity_LineOfBusiness_project_platform.postman_collection.json
parent8531fe68e6a68d1b18457fca527dcca10415461b (diff)
Fix JSON files linter issues in test/postman
This is needed prior to adding job for JSON files linting in CI. Change-Id: I6dfa144478c31702f5b306d9e2dad9bf0713a0fe Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1451
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.json602
1 files changed, 301 insertions, 301 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
index 840693516..a1bceb3cc 100644
--- a/test/postman/07_Declare_owningEntity_LineOfBusiness_project_platform.postman_collection.json
+++ b/test/postman/07_Declare_owningEntity_LineOfBusiness_project_platform.postman_collection.json
@@ -1,302 +1,302 @@
{
- "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": []
- }
- ]
-} \ No newline at end of file
+ "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": []
+ }
+ ]
+}