Commit 39bc7fc7 authored by Anuj Gupta's avatar Anuj Gupta
Browse files

seach-fix-ibm-dipika

parent 4f4c0331
Pipeline #72900 failed with stages
in 5 minutes and 6 seconds
{
"info": {
"_postman_id": "61790d65-62be-4475-a4bb-7832f8cd5a3c",
"_postman_id": "179e1fb6-e484-45fb-9cc9-041990942a89",
"name": "Search API R3 CI/CD v1.0",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
......@@ -29,16 +29,9 @@
"if (cp == \"Azure\") {",
" pm.environment.set(\"refresh_token\", data.refresh_token);",
"}",
"",
"",
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"// skip collection",
"// cp = pm.environment.get(\"cloud_platform\");",
"// if (cp == 'GCP') {",
"// postman.setNextRequest(null);",
"// }"
"});"
],
"type": "text/javascript"
}
......@@ -256,8 +249,8 @@
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code to be 401 or 403\", function () {",
" pm.expect(pm.response.code).to.be.oneOf([401,403]);",
"pm.test(\"Status code to be 400, 401 or 403\", function () {",
" pm.expect(pm.response.code).to.be.oneOf([400, 401,403]);",
"});",
"console.log(pm.response.json().message);",
"try{",
......@@ -265,8 +258,8 @@
"}catch (e) {",
" console.log(e.message);",
"}",
"pm.test(\"Status description - The user is not authorized to perform this action\", function () {",
" pm.expect(jsonData.message).to.equal(\"The user is not authorized to perform this action\");",
"pm.test(\"Status description - Bad Request or Unauthorized Access\", function () {",
" pm.expect(jsonData.message).to.be.oneOf([\"Invalid parameters were given on search request\",\"The user is not authorized to perform this action\"]);",
"});"
],
"type": "text/javascript"
......@@ -977,7 +970,7 @@
],
"body": {
"mode": "raw",
"raw": "{\r\n \"kind\": \"{{data-partition-id}}:{{schemaSource}}:*work-product-component--WellLog*:{{standard_schema_version}}\",\r\n \"query\": \"(data.Name:(\\\"NPD-*\\\" OR \\\"AKM-11*\\\" OR \\\"7391_m0902_1977_comp.las\\\" OR \\\"1013_akm11_1978_comp.tif\\\")) AND nested(data.Curves, (BaseDepth:(>2000)))\"\r\n}",
"raw": "{\r\n \"kind\": \"{{data-partition-id}}:{{schemaSource}}:*work-product-component--WellLog*:{{standard_schema_version}}\",\r\n \"query\": \"(data.Name:(\\\"NPD-*\\\" OR \\\"AKM-11*\\\" OR \\\"1013_akm11_1978_comp.tif\\\")) AND nested(data.Curves, (BaseDepth:(>2000)))\"\r\n}",
"options": {
"raw": {
"language": "json"
......@@ -1507,7 +1500,7 @@
],
"body": {
"mode": "raw",
"raw": "{\r\n \"kind\": \"{{data-partition-id}}:{{schemaSource}}:master-data--Well:{{standard_schema_version}}\",\r\n \"spatialFilter\": {\r\n \"field\": \"data.SpatialLocation.Wgs84Coordinates\",\r\n \"byDistance\": {\r\n \"point\": {\r\n \t\r\n \"longitude\": 5.1580810546875,\r\n \"latitude\": 52.859180945520826\r\n },\r\n \"distance\": 10000\r\n }\r\n\r\n }\r\n\r\n\r\n}",
"raw": "{\r\n \"kind\": \"{{data-partition-id}}:{{schemaSource}}:master-data--Well:{{standard_schema_version}}\",\r\n \"spatialFilter\": {\r\n \"field\": \"data.SpatialLocation.Wgs84Coordinates\",\r\n \"byDistance\": {\r\n \"point\": {\r\n \"longitude\": 3.51906683,\r\n \"latitude\": 55.68101428\r\n },\r\n \"distance\": 10000\r\n }\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
......@@ -1572,7 +1565,7 @@
],
"body": {
"mode": "raw",
"raw": "{\r\n \"kind\": \"{{data-partition-id}}:{{schemaSource}}:master-data--Well:{{standard_schema_version}}\",\r\n \"spatialFilter\": {\r\n \"field\": \"data.SpatialLocation.Wgs84Coordinates\",\r\n \"byGeoPolygon\": {\r\n \"points\": [\r\n {\r\n \"longitude\": 5.1580810546875,\r\n \"latitude\": 52.859180945520826\r\n },\r\n {\r\n \"longitude\": 4.9493408203125,\r\n \"latitude\": 52.75956761546834\r\n },\r\n {\r\n \"longitude\": 5.064697265625,\r\n \"latitude\": 52.579688026538726\r\n },\r\n {\r\n \"longitude\": 5.372314453125,\r\n \"latitude\": 52.68970242806752\r\n },\r\n {\r\n \"longitude\": 5.1580810546875,\r\n \"latitude\": 52.859180945520826\r\n }\r\n ]\r\n }\r\n },\r\n \"offset\": 0,\r\n \"limit\": 30\r\n}",
"raw": "{\r\n \"kind\": \"{{data-partition-id}}:{{schemaSource}}:master-data--Well:{{standard_schema_version}}\",\r\n \"spatialFilter\": {\r\n \"field\": \"data.SpatialLocation.Wgs84Coordinates\",\r\n \"byGeoPolygon\": {\r\n \"points\": [\r\n {\r\n \"longitude\": 3.51906683,\r\n \"latitude\": 55.68101428\r\n },\r\n {\r\n \"longitude\": 3.41906683,\r\n \"latitude\": 55.68101428\r\n },\r\n {\r\n \"longitude\": 3.22895683,\r\n \"latitude\": 55.4514398\r\n },\r\n\t\t\t\t{\r\n \"longitude\": 4.4189668,\r\n \"latitude\": 55.68101428\r\n },\r\n {\r\n \"longitude\": 3.51906683,\r\n \"latitude\": 55.68101428\r\n }\r\n ]\r\n }\r\n },\r\n \"offset\": 0,\r\n \"limit\": 30\r\n}",
"options": {
"raw": {
"language": "json"
......@@ -2345,7 +2338,7 @@
],
"body": {
"mode": "raw",
"raw": "{\r\n \"kind\": \"{{data-partition-id}}:{{schemaSource}}:master-data--Well:{{standard_schema_version}}\",\r\n \"query\": \"id:\\\"{{data-partition-id}}:master-data--Well:2340\\\" OR \\\"{{data-partition-id}}:master-data--Well:kibattul:9488ad69-5d59-4971-aa3c-4541c4b79a82\\\" OR \\\"{{data-partition-id}}:master-data--Well:TWR*\\\" OR \\\"{{data-partition-id}}:master-data--Well:abcd*\\\"\"\r\n}",
"raw": "{\r\n \"kind\": \"{{data-partition-id}}:{{schemaSource}}:master-data--Well:{{standard_schema_version}}\",\r\n \"query\": \"id:\\\"{{data-partition-id}}:master-data--Well:2340\\\" OR \\\"{{data-partition-id}}:master-data--Well:e7c71856-9d0e-41d3-abc2-36732bd3ea5f\\\" OR \\\"{{data-partition-id}}:master-data--Well:TWR*\\\" OR \\\"{{data-partition-id}}::master-data--Well:*\\\"\"\r\n}",
"options": {
"raw": {
"language": "json"
......@@ -2675,7 +2668,7 @@
],
"body": {
"mode": "raw",
"raw": "{\r\n \"kind\": \"{{data-partition-id}}:{{schemaSource}}:*:{{standard_schema_version}}\",\r\n \"query\": \"(data.WellboreID: \\\"osdu:master-data--Wellbore:*:\\\") AND (kind: (\\\"{{data-partition-id}}:{{schemaSource}}:work-product-component--WellboreTrajectory:{{standard_schema_version}}\\\" OR \\\"{{data-partition-id}}:{{schemaSource}}:work-product-component--WellboreMarkerSet:{{standard_schema_version}}\\\"))\"\r\n}",
"raw": "{\r\n \"kind\": \"{{data-partition-id}}:{{schemaSource}}:*:{{standard_schema_version}}\",\r\n \"query\": \"(data.WellboreID: \\\"{{data-partition-id}}:master-data--Wellbore:*:\\\") AND (kind: (\\\"{{data-partition-id}}:{{schemaSource}}:work-product-component--WellboreTrajectory:{{standard_schema_version}}\\\" OR \\\"{{data-partition-id}}:{{schemaSource}}:work-product-component--WellboreMarkerSet:{{standard_schema_version}}\\\"))\"\r\n}",
"options": {
"raw": {
"language": "json"
......@@ -2875,7 +2868,7 @@
],
"body": {
"mode": "raw",
"raw": "{\r\n \"kind\": \"{{data-partition-id}}:{{schemaSource}}:work-product-component--WellLog:{{standard_schema_version}}\",\r\n \"query\": \"data.WellboreID:\\\"{{data-partition-id}}:master-data--Wellbore:1000:\\\" OR \\\"{{data-partition-id}}:master-data--Wellbore:8165\\\"\",\r\n \"returnedFields\": [\"data.WellboreID\", \"data.Curves\"]\r\n}",
"raw": "{\r\n \"kind\": \"{{data-partition-id}}:{{schemaSource}}:work-product-component--WellLog:{{standard_schema_version}}\",\r\n \"query\": \"data.WellboreID:\\\"{{data-partition-id}}:master-data--Wellbore:999701382517:\\\" OR \\\"{{data-partition-id}}:master-data--Wellbore:8165\\\"\",\r\n \"returnedFields\": [\"data.WellboreID\", \"data.Curves\"]\r\n}",
"options": {
"raw": {
"language": "json"
......@@ -3075,7 +3068,7 @@
],
"body": {
"mode": "raw",
"raw": "{\r\n \"kind\": \"{{data-partition-id}}:{{schemaSource}}:master-data--Well:{{standard_schema_version}}\",\r\n \"spatialFilter\": {\r\n \"field\": \"data.SpatialLocation.Wgs84Coordinates\",\r\n \"byBoundingBox\": {\r\n \"topLeft\": {\r\n \"longitude\": 4.9493408203125,\r\n \"latitude\": 52.859180945520826\r\n },\r\n \"bottomRight\": {\r\n \"longitude\": 5.1580810546875,\r\n \"latitude\": 52.75956761546834\r\n }\r\n }\r\n }\r\n}",
"raw": "{\r\n \"kind\": \"{{data-partition-id}}:{{schemaSource}}:master-data--Well:{{standard_schema_version}}\",\r\n \"spatialFilter\": {\r\n \"field\": \"data.SpatialLocation.Wgs84Coordinates\",\r\n \"byBoundingBox\": {\r\n \"topLeft\": {\r\n \"longitude\": 2.51906683,\r\n \"latitude\": 55.68101428\r\n },\r\n \"bottomRight\": {\r\n \"longitude\": 4.4189668,\r\n \"latitude\": 55.4514398\r\n }\r\n }\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
......@@ -3140,7 +3133,7 @@
],
"body": {
"mode": "raw",
"raw": "{\r\n \"kind\": \"{{data-partition-id}}:{{schemaSource}}:master-data--Well:{{standard_schema_version}}\",\r\n \"spatialFilter\": {\r\n \"field\": \"data.SpatialLocation.Wgs84Coordinates\",\r\n \"byDistance\": {\r\n \"point\": {\r\n \"longitude\": 5.1580810546875,\r\n \"latitude\": 52.859180945520826\r\n },\r\n \"distance\": 10000\r\n }\r\n }\r\n}",
"raw": "{\r\n \"kind\": \"{{data-partition-id}}:{{schemaSource}}:master-data--Well:{{standard_schema_version}}\",\r\n \"spatialFilter\": {\r\n \"field\": \"data.SpatialLocation.Wgs84Coordinates\",\r\n \"byDistance\": {\r\n \"point\": {\r\n \"longitude\": 3.51906683,\r\n \"latitude\": 55.68101428\r\n },\r\n \"distance\": 10000\r\n }\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
......@@ -3205,7 +3198,7 @@
],
"body": {
"mode": "raw",
"raw": "{\r\n \"kind\": \"{{data-partition-id}}:{{schemaSource}}:master-data--Well:{{standard_schema_version}}\",\r\n \"spatialFilter\": {\r\n \"field\": \"data.SpatialLocation.Wgs84Coordinates\",\r\n \"byGeoPolygon\": {\r\n \"points\": [\r\n {\r\n \"longitude\": 5.1580810546875,\r\n \"latitude\": 52.859180945520826\r\n },\r\n {\r\n \"longitude\": 4.9493408203125,\r\n \"latitude\": 52.75956761546834\r\n },\r\n {\r\n \"longitude\": 5.064697265625,\r\n \"latitude\": 52.579688026538726\r\n },\r\n {\r\n \"longitude\": 5.372314453125,\r\n \"latitude\": 52.68970242806752\r\n },\r\n {\r\n \"longitude\": 5.1580810546875,\r\n \"latitude\": 52.859180945520826\r\n }\r\n ]\r\n }\r\n },\r\n \"offset\": 0,\r\n \"limit\": 30\r\n}",
"raw": "{\r\n \"kind\": \"{{data-partition-id}}:{{schemaSource}}:master-data--Well:{{standard_schema_version}}\",\r\n \"spatialFilter\": {\r\n \"field\": \"data.SpatialLocation.Wgs84Coordinates\",\r\n \"byGeoPolygon\": {\r\n \"points\": [\r\n {\r\n \"longitude\": 3.51906683,\r\n \"latitude\": 55.68101428\r\n },\r\n {\r\n \"longitude\": 3.41906683,\r\n \"latitude\": 55.68101428\r\n },\r\n {\r\n \"longitude\": 3.22895683,\r\n \"latitude\": 55.4514398\r\n },\r\n\t\t\t\t{\r\n \"longitude\": 4.4189668,\r\n \"latitude\": 55.68101428\r\n },\r\n {\r\n \"longitude\": 3.51906683,\r\n \"latitude\": 55.68101428\r\n }\r\n ]\r\n }\r\n },\r\n \"offset\": 0,\r\n \"limit\": 30\r\n}",
"options": {
"raw": {
"language": "json"
......@@ -3803,7 +3796,6 @@
"//get the record count\r",
"try {\r",
" let resBody = pm.response.json();\r",
"\r",
" let recordCount = resBody.totalCount;\r",
" tests[\"Record count: \" + recordCount] = recordCount >= 1;\r",
" }\r",
......@@ -3838,7 +3830,7 @@
],
"body": {
"mode": "raw",
"raw": "{\r\n \"kind\": \"{{data-partition-id}}:{{schemaSource}}:work-product-component--SeismicTraceData:{{standard_schema_version}}\",\r\n \"spatialFilter\": {\r\n \"field\": \"data.LiveTraceOutline.Wgs84Coordinates\",\r\n \"byGeoPolygon\": {\r\n \"points\": [\r\n {\r\n \"longitude\": 1.813767236,\r\n \"latitude\": 58.42946998\r\n },\r\n {\r\n \"longitude\": 1.949673713,\r\n \"latitude\": 58.4041567\r\n },\r\n {\r\n \"longitude\": 1.978324105,\r\n \"latitude\": 58.45614207\r\n },\r\n {\r\n \"longitude\": 1.84227351,\r\n \"latitude\": 58.48147214\r\n },\r\n {\r\n \"longitude\": 1.813767236,\r\n \"latitude\": 58.42946998\r\n }\r\n ]\r\n }\r\n },\r\n \"offset\": 0,\r\n \"limit\": 30\r\n}\r\n",
"raw": "{\r\n \"kind\": \"{{data-partition-id}}:{{schemaSource}}:work-product-component--SeismicTraceData:{{standard_schema_version}}\",\r\n \"spatialFilter\": {\r\n \"field\": \"data.LiveTraceOutline.Wgs84Coordinates\",\r\n \"byGeoPolygon\": {\r\n \"points\": [\r\n {\r\n \"longitude\": 1.943967222,\r\n \"latitude\": 58.414205\r\n },\r\n {\r\n \"longitude\": 1.794071944,\r\n \"latitude\": 58.43241222\r\n },\r\n {\r\n \"longitude\": 1.814781667,\r\n \"latitude\": 58.43260528\r\n },\r\n {\r\n \"longitude\": 1.9633875,\r\n \"latitude\": 58.45794\r\n },\r\n {\r\n \"longitude\": 1.943967222,\r\n \"latitude\": 58.414205\r\n }\r\n ]\r\n }\r\n },\r\n \"offset\": 0,\r\n \"limit\": 30\r\n}",
"options": {
"raw": {
"language": "json"
......@@ -3873,7 +3865,10 @@
"});",
"",
"pm.test(\"Expected result count\", () => {",
" pm.expect(pm.response.json().totalCount).to.equal(1, \"correct totalCount\")",
" let resBody = pm.response.json();",
" let recordCount = resBody.totalCount;",
" // pm.expect(pm.response.json().totalCount).to.equal(1, \"correct totalCount\")",
" tests[\"Record count: \" + recordCount] = recordCount >= 1",
"})",
""
],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment