Commit 6c06be9c authored by Gwenola's avatar Gwenola
Browse files

Update Postman Collection/05_CICD_Setup_WellLogWorkflow/WellLog CI-CD...

Update Postman Collection/05_CICD_Setup_WellLogWorkflow/WellLog CI-CD v1.3.3.postman_collection.json
parent e48979f0
Pipeline #5504 failed with stages
in 6 seconds
{
"info": {
"_postman_id": "9a7ebd2d-f16c-49aa-8dab-011b35355227",
"name": "WellLog CI/CD v1.3.3",
"_postman_id": "8b5d4bb6-2610-40af-82bb-9ec978c573b9",
"name": "WellLog CI/CD v1.3.3 20200812",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
......@@ -14,7 +14,7 @@
{
"listen": "test",
"script": {
"id": "a55a6261-eea4-4714-ab1c-fe0a1a308a34",
"id": "04c70951-80e3-47cd-b7eb-2986b9fd6e0e",
"exec": [
"// this snippet extracts the new access and id tokens",
"// and puts them to environment variables",
......@@ -37,7 +37,7 @@
{
"listen": "prerequest",
"script": {
"id": "824c7f7c-da8b-479c-aa7d-52dc85a39145",
"id": "fcebdf3b-456f-4fff-8a80-35f703a5fb17",
"exec": [
""
],
......@@ -120,7 +120,7 @@
{
"listen": "prerequest",
"script": {
"id": "3e752ed1-62df-4a46-8ae5-ab78ae35ebac",
"id": "ce7c5eb7-7a49-48ac-a3e5-8a218a0c38d6",
"exec": [
"pm.environment.set(\"tagName\", \"WellLog-Legal-Tag-Test\" + _.random(1,9999999));",
""
......@@ -131,7 +131,7 @@
{
"listen": "test",
"script": {
"id": "a8bfa8e8-ea00-4cae-a522-cceb4fe2f8e4",
"id": "8c9f95b0-b4dc-4eda-856b-4982b20549de",
"exec": [
"// Ensure the API was able to send a successful response",
"pm.test(\"Status code is 201\", function () {",
......@@ -203,7 +203,7 @@
{
"listen": "test",
"script": {
"id": "a64c9039-099f-4e2d-99e6-df2c04fa3d2b",
"id": "0297863f-5432-445f-9161-b346e070eee9",
"exec": [
"// Ensure the API was able to send a successful response",
"pm.test(\"Status code is 200\", function () {",
......@@ -266,7 +266,7 @@
{
"listen": "prerequest",
"script": {
"id": "2a06b82b-688e-4a05-b62e-4be58c072f63",
"id": "6eeb26ec-08e3-48fc-9f89-d266c432c0a2",
"exec": [
""
],
......@@ -276,7 +276,7 @@
{
"listen": "test",
"script": {
"id": "6f5a2810-aa43-493e-883f-0c0e958a7538",
"id": "fbd3ebaa-fa5a-4375-8682-a7e1deba22f3",
"exec": [
"// Ensure the API was able to send a successful response",
"pm.test(\"Status code is 200\", function () {",
......@@ -337,7 +337,7 @@
{
"listen": "test",
"script": {
"id": "5a847287-854c-4052-9fc2-5345dbd280bd",
"id": "a38d4cb6-1bc7-4176-8bda-e0b843110a19",
"exec": [
"// Check for a successful HTTP response",
"pm.test(\"Status code is 200\", function () {",
......@@ -364,7 +364,7 @@
{
"listen": "prerequest",
"script": {
"id": "d569a21a-2554-4d7e-9de4-86b3870a49eb",
"id": "817bd855-23c5-4e74-958a-a8e9b2f81525",
"exec": [
"var newGroup = \"data.wellLogdb\" + _.random(1,99999) + \".viewers\";",
"pm.environment.set(\"New_ViewerDataGroup\", newGroup);"
......@@ -414,7 +414,7 @@
{
"listen": "test",
"script": {
"id": "92d3df20-c433-4273-a5b8-60014bf64227",
"id": "0d7938a5-adfe-4e5c-869e-1ec5c375d026",
"exec": [
"// Check for a successful HTTP response",
"pm.test(\"Status code is 200\", function () {",
......@@ -441,7 +441,7 @@
{
"listen": "prerequest",
"script": {
"id": "5fbed671-2107-4648-ac1c-4787c3b3cc16",
"id": "9607a436-0fb4-4a00-aeab-b1e4fcae03e1",
"exec": [
"var newGroup = \"data.wellLogdb\" + _.random(1,99999) + \".owners\";",
"pm.environment.set(\"New_OwnerDataGroup\", newGroup);"
......@@ -491,7 +491,7 @@
{
"listen": "prerequest",
"script": {
"id": "92203292-23fd-42c1-84c9-dc6a5e6d0661",
"id": "a4277065-472b-4070-9854-651a9ac47154",
"exec": [
"// Define the schema to be created via this API test. ",
"// This schema is stored as a collection variable \"well_schema\" to be used in the body of this API call and reused in other tests later. ",
......@@ -796,7 +796,7 @@
{
"listen": "test",
"script": {
"id": "2bb0a568-10eb-41d7-aed9-8229625d7045",
"id": "f65beae3-e594-4c2c-90a0-175f7b4a1f62",
"exec": [
"//Ensure there were no error codes in the API response",
"pm.test(\"Status code is 201\", function () {",
......@@ -851,7 +851,7 @@
{
"listen": "test",
"script": {
"id": "69317298-f948-4e59-a8ec-2d9f8918861a",
"id": "d1393881-5a6f-4499-b816-6aa2b50b0cd2",
"exec": [
"// Check for a successful HTTP response",
"pm.test(\"Status code is 201\", function () {",
......@@ -865,7 +865,7 @@
{
"listen": "prerequest",
"script": {
"id": "a75dc972-1ab7-4e37-ae9b-fd0248e489b2",
"id": "017b0013-ba37-478c-ab66-a776c1f8d70a",
"exec": [
"// Define the schema to be created via this API test. ",
"// This schema is stored as a collection variable \"well_schema\" to be used in the body of this API call and reused in other tests later. ",
......@@ -1218,7 +1218,7 @@
{
"listen": "test",
"script": {
"id": "13b7a988-4f48-42f7-aa3a-c7f799ef9780",
"id": "c3792b09-5276-478b-903b-249ed05fd3e6",
"exec": [
"// Check for a successful HTTP response",
"pm.test(\"Status code is 201\", function () {",
......@@ -1232,7 +1232,7 @@
{
"listen": "prerequest",
"script": {
"id": "d2b42719-b0d1-466e-8b1c-6a5c83ff19b4",
"id": "afc805d3-560d-4969-a322-85ee0dab5eaf",
"exec": [
"// Define the schema to be created via this API test. ",
"// This schema is stored as a collection variable \"well_schema\" to be used in the body of this API call and reused in other tests later. ",
......@@ -1585,7 +1585,7 @@
{
"listen": "test",
"script": {
"id": "fa1f2f7b-7a79-48f6-9c3a-1df538b344a2",
"id": "bce6e7d4-a86b-41cc-a9ec-c46f3f3f37e8",
"exec": [
"//Ensure there were no error codes in the API response",
"pm.test(\"Status code is 200\", function () {",
......@@ -1647,7 +1647,7 @@
{
"listen": "test",
"script": {
"id": "1835e000-2dc8-41a7-b05a-7529f1a8519e",
"id": "b5d94e25-75cb-4f02-b77f-a4a834b4d8df",
"exec": [
"//Ensure there were no error codes in the API response",
"pm.test(\"Status code is 200\", function () {",
......@@ -1709,7 +1709,7 @@
{
"listen": "test",
"script": {
"id": "144ec077-2bb5-443c-b712-f06cb720ac04",
"id": "ce43343b-2514-4126-8862-67c9a66d039c",
"exec": [
"//Ensure there were no error codes in the API response\r",
"pm.test(\"Status code is 200\", function () {\r",
......@@ -1736,7 +1736,7 @@
{
"listen": "prerequest",
"script": {
"id": "a19feeeb-e121-4bdc-83b4-ca2f55c54ad0",
"id": "a127abec-0b6c-40e0-9e69-c559444b2e68",
"exec": [
"setTimeout(() => {}, 30000);"
],
......@@ -1787,7 +1787,7 @@
{
"listen": "test",
"script": {
"id": "370c58a6-245e-4180-b491-79d656827d1c",
"id": "0aac5ac9-244e-455f-90be-678370116066",
"exec": [
"//Ensure there were no error codes in the API response\r",
"pm.test(\"Status code is 200\", function () {\r",
......@@ -1814,7 +1814,7 @@
{
"listen": "prerequest",
"script": {
"id": "856b7c9f-9af5-450b-a534-0be163bd63d6",
"id": "04dbb22f-e522-4332-8cc5-01284e8b8d9b",
"exec": [
"//setTimeout(() => {}, 30000);"
],
......@@ -1865,7 +1865,7 @@
{
"listen": "test",
"script": {
"id": "a46e28ae-eef3-4167-9869-b75d9233d64a",
"id": "bea668db-5ef2-4796-aa61-fe6c51bf8b41",
"exec": [
"//Ensure there were no error codes in the API response\r",
"pm.test(\"Status code is 200\", function () {\r",
......@@ -1892,7 +1892,7 @@
{
"listen": "prerequest",
"script": {
"id": "32fb954c-9e04-4f47-b926-078f6cd2266d",
"id": "120aa00d-2092-4e70-8892-d26865c9e245",
"exec": [
"//setTimeout(() => {}, 30000);"
],
......@@ -1943,7 +1943,7 @@
{
"listen": "test",
"script": {
"id": "ffffb75f-e4b4-4796-83a9-8cb5b4b9b9ba",
"id": "296d4af7-9443-4d39-b2b2-1cdb6316e923",
"exec": [
"// Check for a successful HTTP response",
"pm.test(\"Status code is 201\", function () {",
......@@ -1964,7 +1964,7 @@
{
"listen": "prerequest",
"script": {
"id": "6f357724-ca6f-48c1-998a-a7dc37811da9",
"id": "0217157d-9284-4576-9906-e3c029e4c9e2",
"exec": [
"var rand = _.random(11111111111111111111,99999999999999999999);",
"postman.setEnvironmentVariable(\"WellLogFileSRN\", \"srn:file/las2:\" + rand + \":\");",
......@@ -2037,7 +2037,7 @@
{
"listen": "prerequest",
"script": {
"id": "8329c2f8-067f-4703-b265-b1772a1d34ac",
"id": "57903772-6410-4691-a51a-1959250c02f7",
"exec": [
"setTimeout(() => {}, 30000);"
],
......@@ -2047,7 +2047,7 @@
{
"listen": "test",
"script": {
"id": "036a5c9e-fb26-4f15-b81d-f6d699db7a6f",
"id": "d9cfca83-840b-4fff-addc-9b30abf29bd7",
"exec": [
"//Ensure there were no error codes in the API response\r",
"pm.test(\"Status code is 200\", function () {\r",
......@@ -2115,7 +2115,7 @@
{
"listen": "test",
"script": {
"id": "268785ec-6bef-440f-abe5-480bc5c8dcee",
"id": "d9fbb975-8573-437d-8eef-9aab3f1b46fc",
"exec": [
"//Ensure there were no error codes in the API response\r",
"pm.test(\"Status code is 200\", function () {\r",
......@@ -2142,7 +2142,7 @@
{
"listen": "prerequest",
"script": {
"id": "ced846a9-e52f-4fdf-832a-956ab91ee016",
"id": "ef3d6d32-9a2f-4ebf-bdbf-49fd85d23563",
"exec": [
"//setTimeout(() => {}, 30000);"
],
......@@ -2193,7 +2193,7 @@
{
"listen": "test",
"script": {
"id": "a9d5321d-d276-4d14-8c94-b195e4624074",
"id": "dfeaa941-2c18-4a5d-a35a-ea9b2e86ef08",
"exec": [
"//Ensure there were no error codes in the API response\r",
"pm.test(\"Status code is 200\", function () {\r",
......@@ -2220,7 +2220,7 @@
{
"listen": "prerequest",
"script": {
"id": "f9ea69c0-b846-4f9c-bf6d-339e73828c78",
"id": "76410a7f-5f7a-4158-abc4-8f9be1500a20",
"exec": [
"//setTimeout(() => {}, 30000);"
],
......@@ -2271,7 +2271,7 @@
{
"listen": "test",
"script": {
"id": "0889c804-a038-4a05-85cc-353c88be4458",
"id": "1872dd52-39a0-4b7c-8b93-f65e3b3da550",
"exec": [
"//Ensure there were no error codes in the API response",
"pm.test(\"Status code is 200\", function () {",
......@@ -2330,7 +2330,7 @@
{
"listen": "test",
"script": {
"id": "0ac4f298-86e8-4f69-b392-ae3782ca678b",
"id": "5694805c-c72c-44de-9d7f-16033e298b9d",
"exec": [
"//Ensure there were no error codes in the API response",
"pm.test(\"Status code is 200\", function () {",
......@@ -2391,7 +2391,7 @@
{
"listen": "test",
"script": {
"id": "248defaf-b6b7-411c-a606-0a4c7ac3f0b2",
"id": "95d64b0d-de7f-4eeb-9b7d-6c45fb01e2fe",
"exec": [
"//Ensure there were no error codes in the API response",
"pm.test(\"Status code is 200\", function () {",
......@@ -2448,7 +2448,7 @@
{
"listen": "test",
"script": {
"id": "eb70cac0-9072-432d-a910-a9d5e487fc67",
"id": "31d95058-440e-48aa-9b39-21e9d8e8c48a",
"exec": [
"//Ensure there were no error codes in the API response",
"pm.test(\"Status code is 200\", function () {",
......@@ -2509,7 +2509,7 @@
{
"listen": "test",
"script": {
"id": "022c98a6-b78e-4dc9-86ba-6b00d3b719a6",
"id": "5c0654b3-57e6-455e-a2ba-1e682a8e891d",
"exec": [
"//Ensure there were no error codes in the API response",
"pm.test(\"Status code is 200\", function () {",
......@@ -2568,7 +2568,7 @@
{
"listen": "test",
"script": {
"id": "11514376-a7e7-408d-a626-b8fd168b261c",
"id": "5752f46d-7d34-472e-90d3-dfd62851404d",
"exec": [
"//Ensure there were no error codes in the API response",
"pm.test(\"Status code is 200\", function () {",
......@@ -2629,7 +2629,7 @@
{
"listen": "test",
"script": {
"id": "7c666ae9-0fb7-414a-8319-f5c2465f09f4",
"id": "db6ceffe-fbac-4cca-9d90-587094c6bd41",
"exec": [
"//Ensure there were no error codes in the API response",
"pm.test(\"Status code is 200\", function () {",
......@@ -2687,7 +2687,7 @@
{
"listen": "test",
"script": {
"id": "cd00cc92-019c-4bb9-a3e8-b83d2a637ed7",
"id": "d607abf6-6cf1-4395-b2bc-c4af26fc7510",
"exec": [
"//Ensure there were no error codes in the API response",
"pm.test(\"Status code is 200\", function () {",
......@@ -2748,7 +2748,7 @@
{
"listen": "test",
"script": {
"id": "0a64f0e2-d919-41cb-b7d1-f2272bde5a97",
"id": "f5694369-59dc-4a3a-908f-b3106781a43f",
"exec": [
"//Ensure there were no error codes in the API response",
"pm.test(\"Status code is 200\", function () {",
......@@ -2792,9 +2792,9 @@
],
"variable": [
{
"description": "Record id",
"key": "id",
"value": "{{WellLogFileRecordID}}"
"value": "{{WellLogFileRecordID}}",
"description": "Record id"
}
]
}
......@@ -2807,7 +2807,7 @@
{
"listen": "test",
"script": {
"id": "5b10f01f-d195-41fc-9ba2-03a413e73b2e",
"id": "29989303-9182-4fec-a52e-1c40ca0d4294",
"exec": [
"//Ensure there were no error codes in the API response",
"pm.test(\"Status code is 200\", function () {",
......@@ -2868,7 +2868,7 @@
{
"listen": "test",
"script": {
"id": "4e01233b-4de9-48fc-8d70-aea0d0a5512f",
"id": "ee553235-b01a-4e48-9d68-657c1dd2ddee",
"exec": [
"//Ensure there were no error codes in the API response",
"pm.test(\"Status code is 200\", function () {",
......@@ -2926,7 +2926,7 @@
{
"listen": "test",
"script": {
"id": "75a8f252-57cf-44bd-9590-ed74056f67f3",
"id": "1b54c8d8-50c2-47ea-b7d5-92a87e956e46",
"exec": [
"//Ensure there were no error codes in the API response",
"pm.test(\"Status code is 200\", function () {",
......@@ -2987,7 +2987,7 @@
{
"listen": "test",
"script": {
"id": "67889020-efa1-4932-8671-2a58fcc86d4b",
"id": "bf7bd629-cde6-46a9-8197-2c5d4363453d",
"exec": [
"// Ensure the API was able to send a successful response",
"pm.test(\"Status code is 200\", function () {",
......@@ -3044,76 +3044,13 @@
},
"response": []
},
{
"name": "24 Search - Find WellLog WP using resourceID Copy",
"event": [
{
"listen": "test",
"script": {
"id": "01a75e60-1e7c-422c-a798-7f070ac13bd5",
"exec": [
"// Ensure the API was able to send a successful response",
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"",
"// Ensure the API returned content. (This assumes that the item being queried MUST exist in the platform.)",
"pm.test(\"Response is not empty\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.results.length).to.be.above(0);",
"});",
"",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "data-partition-id",
"type": "text",
"value": "{{data-partition-id}}"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"kind\": \"{{data-partition-id}}:osdu:{{schemaNamewellLogWP}}-welllog-wp-test:*\",\r\n\t\"limit\": \"\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://{{SEARCH_HOST}}/query",
"protocol": "https",
"host": [
"{{SEARCH_HOST}}"
],
"path": [
"query"
]
},
"description": "Find specific well"
},
"response": []
},
{
"name": "25 Search - Find WellLog WPC using resourceID",
"event": [
{
"listen": "test",
"script": {
"id": "7855c707-0565-4702-ad95-b6f6a796fb83",
"id": "aa0ea0a7-269d-449b-970a-fff2133a0ea4",
"exec": [
"// Ensure the API was able to send a successful response",
"pm.test(\"Status code is 200\", function () {",
......@@ -3183,7 +3120,7 @@
{
"listen": "test",
"script": {
"id": "b6b83be2-20c6-48e1-8b00-56d089346905",
"id": "7ebad000-6325-4aec-9796-30a950d82319",
"exec": [
"// Ensure the API was able to send a successful response",
"pm.test(\"Status code is 200\", function () {",
......@@ -3253,7 +3190,7 @@
{
"listen": "test",
"script": {
"id": "98a83819-66be-4109-b506-7887fd9465b5",
"id": "89973e87-5b44-489d-8967-f75f08abb4b3",
"exec": [
"//Ensure there were no error codes in the API response\r",
"pm.test(\"Status code is 200\", function () {\r",
......@@ -3280,7 +3217,7 @@
{
"listen": "prerequest",
"script": {
"id": "b4fcf03c-b9cf-4b54-a1fd-02cc8b3fff8b",
"id": "efcf0916-83c3-42e2-9cca-462e29725d05",
"exec": [
"cp = pm.environment.get(\"cloud_platform\");\r",
"if (cp == \"AWS\") {\r",
......@@ -3334,7 +3271,7 @@
{
"listen": "test",
"script": {
"id": "a15688ea-b740-4105-8c83-390edb0dc0f4",
"id": "39f2b2f9-51ca-444e-b9c9-7cc12a19d17e",
"exec": [
"//Ensure there were no error codes in the API response\r",
"pm.test(\"Status code is 200\", function () {\r",
......@@ -3361,7 +3298,7 @@
{
"listen": "prerequest",
"script": {
"id": "b4fcf03c-b9cf-4b54-a1fd-02cc8b3fff8b",
"id": "42490250-6a18-4073-84cb-8b30856d1bfa",
"exec": [
"cp = pm.environment.get(\"cloud_platform\");\r",
"if (cp == \"AWS\") {\r",
......@@ -3423,7 +3360,7 @@
{
"listen": "test",
"script": {
"id": "721a2c82-7d75-48ee-9de7-c8ede79fb400",
"id": "1aa0086a-f88c-4d6b-a23f-32fc27618484",
"exec": [
"//Ensure there were no error codes in the API response\r",
"pm.test(\"Status code is 200\", function () {\r",
......@@ -3450,7 +3387,7 @@
{
"listen": "prerequest",
"script": {
"id": "b4fcf03c-b9cf-4b54-a1fd-02cc8b3fff8b",
"id": "fb368945-b579-433b-b7cb-2d681098a97c",
"exec": [
"cp = pm.environment.get(\"cloud_platform\");\r",
"if (cp == \"AWS\") {\r",
......@@ -3512,7 +3449,7 @@
{
"listen": "test",
"script": {
"id": "8ab957bb-4841-4ecf-a674-b2865bdb5dd5",
"id": "f93c2fc6-fb8d-4b4d-9ee9-1deb2945a367",
"exec": [
"//Ensure there were no error codes in the API response\r",
"pm.test(\"Status code is 200\", function () {\r",
......@@ -3563,7 +3500,7 @@
{
"listen": "test",
"script": {
"id": "667c0f88-e782-4e4f-b974-3e8f175169a5",
"id": "cc0b3ff7-53d6-425c-a34c-dfd19ae115bf",
"exec": [
"pm.test(\"Status code is 204\", function () {",
" pm.response.to.have.status(204);",
......@@ -3611,7 +3548,7 @@
{
"listen": "test",
"script": {
"id": "3954f420-32b8-4c5d-8d24-360d5d9e0262",
"id": "f8c6b776-63cd-44f5-903c-a1bafd340051",
"exec": [
"pm.test(\"Status code is 204\", function () {",
" pm.response.to.have.status(204);",
......@@ -3659,7 +3596,7 @@