Commit 142cf30a authored by Darshana Herath's avatar Darshana Herath
Browse files

Fixing issue with unauthorized error code.

parent 673d1e46
Pipeline #3782 failed with stages
in 9 seconds
......@@ -301,7 +301,7 @@
],
"query": [
{
"key": "cursor",
"key": "Cursor",
"value": "aa",
"description": "string",
"disabled": true
......@@ -325,12 +325,27 @@
"script": {
"id": "88a8fa2c-37fa-44b9-8a11-019480bee886",
"exec": [
"pm.test(\"Status code is 500\", function () {",
"/*pm.test(\"Status code is 500\", function () {",
" pm.response.to.have.status(500);",
"});",
"pm.test(\"Status description - Unknown Error.\", function () {",
" pm.response.to.have.status(\"Unknown Error.\");",
"});"
"});*/",
"",
"pm.test(\"Status code to be 401 or 403\", function () {",
" pm.expect(pm.response.code).to.be.oneOf([401,403]);",
"});",
"try {",
" let resBody = pm.response.json();",
" if (resBody != null) {",
" pm.test(\"Response has not authorized string\", function () {",
" pm.expect(pm.response.text()).to.include(\"not authorized\");",
" });",
" }",
"}",
"catch (e) {",
" console.log(e.message);",
"}"
],
"type": "text/javascript"
}
......@@ -341,13 +356,13 @@
"header": [
{
"description": "This value should be the desired data partition id.",
"key": "data-partition-id",
"key": "slb-data-partition-id",
"type": "text",
"value": "{{data-partition-id}}"
}
],
"url": {
"raw": "https://{{STORAGE_HOST}}/query/kinds?cursor=&limit=100",
"raw": "https://{{STORAGE_HOST}}/query/kinds?Cursor=&limit=100",
"protocol": "https",
"host": [
"{{STORAGE_HOST}}"
......@@ -358,7 +373,7 @@
],
"query": [
{
"key": "cursor",
"key": "Cursor",
"value": "",
"description": "string"
},
......@@ -578,7 +593,7 @@
],
"query": [
{
"key": "cursor",
"key": "Cursor",
"value": "",
"description": "string",
"disabled": true
......@@ -790,7 +805,7 @@
],
"body": {
"mode": "raw",
"raw": "[\n {\n \"acl\": {\n \"owners\": [\n \"{{New_OwnerDataGroup}}@{{data-partition-id}}{{domain}}\"\n ],\n \"viewers\": [\n \"{{New_ViewerDataGroup}}@{{data-partition-id}}{{domain}}\"\n ]\n },\n \"data\": {\n \"msg\": \"hello world from Data Lake\"\n },\n \"id\": \"{{data-partition-id}}:osdu:{{NewWellUWI}}\",\n \"kind\": \"{{data-partition-id}}:osdu:well-master:{{schema_version}}\",\n \"legal\": {\n \"legaltags\": [\n \"{{LegalTagNameExists}}\"\n ],\n \"otherRelevantDataCountries\": [\n \"US\"\n ],\n \"status\": \"compliant\"\n },\n \"meta\": [\n {}\n ],\n \"version\": 0\n }\n]\n\n",
"raw": "[\n {\n \"acl\": {\n \"owners\": [\n \"{{New_OwnerDataGroup}}@{{data-partition-id}}{{domain}}\"\n ],\n \"viewers\": [\n \"{{New_ViewerDataGroup}}@{{data-partition-id}}{{domain}}\"\n ]\n },\n \"data\": {\n \"msg\": \"hello world from Data Lake\"\n },\n \"id\": \"{{data-partition-id}}:osdu:{{NewWellUWI}}\",\n \"kind\": \"{{data-partition-id}}:osdu:{{record_id}}:{{schema_version}}\",\n \"legal\": {\n \"legaltags\": [\n \"{{LegalTagNameExists}}\"\n ],\n \"otherRelevantDataCountries\": [\n \"US\"\n ],\n \"status\": \"compliant\"\n },\n \"meta\": [\n {}\n ],\n \"version\": 0\n }\n]\n\n",
"options": {
"raw": {
"language": "json"
......@@ -865,7 +880,7 @@
],
"body": {
"mode": "raw",
"raw": "[\n {\n \"acl\": {\n \"owners\": [\n \"{{New_OwnerDataGroup}}@{{data-partition-id}}{{domain}}\"\n ],\n \"viewers\": [\n \"{{New_ViewerDataGroup}}@{{data-partition-id}}{{domain}}\"\n ]\n },\n \"data\": {\n \"msg\": \"hello world from Data Lake update1\"\n },\n \"id\": \"{{data-partition-id}}:osdu:{{NewWellUWI}}\",\n \"kind\": \"{{data-partition-id}}:osdu:well-master:{{schema_version}}\",\n \"legal\": {\n \"legaltags\": [\n \"{{LegalTagNameExists}}\"\n ],\n \"otherRelevantDataCountries\": [\n \"US\"\n ],\n \"status\": \"compliant\"\n },\n \"meta\": [\n {}\n ],\n \"version\": 0\n }\n]\n",
"raw": "[\n {\n \"acl\": {\n \"owners\": [\n \"{{New_OwnerDataGroup}}@{{data-partition-id}}{{domain}}\"\n ],\n \"viewers\": [\n \"{{New_ViewerDataGroup}}@{{data-partition-id}}{{domain}}\"\n ]\n },\n \"data\": {\n \"msg\": \"hello world from Data Lake update1\"\n },\n \"id\": \"{{data-partition-id}}:osdu:{{NewWellUWI}}\",\n \"kind\": \"{{data-partition-id}}:osdu:{{record_id}}:{{schema_version}}\",\n \"legal\": {\n \"legaltags\": [\n \"{{LegalTagNameExists}}\"\n ],\n \"otherRelevantDataCountries\": [\n \"US\"\n ],\n \"status\": \"compliant\"\n },\n \"meta\": [\n {}\n ],\n \"version\": 0\n }\n]\n",
"options": {
"raw": {
"language": "json"
......@@ -928,7 +943,7 @@
],
"body": {
"mode": "raw",
"raw": "[\n {\n \"acl\": {\n \"owners\": [\n \"{{New_OwnerDataGroupInvalid}}@{{data-partition-id}}{{domain}}\"\n ],\n \"viewers\": [\n \"{{New_ViewerDataGroup}}@{{data-partition-id}}{{domain}}\"\n ]\n },\n \"data\": {\n \"msg\": \"hello world from Data Lake\"\n },\n \"id\": \"{{data-partition-id}}:osdu:{{NewWellUWI}}\",\n \"kind\": \"{{data-partition-id}}:osdu:well-master:{{schema_version}}\",\n \"legal\": {\n \"legaltags\": [\n \"{{tagName}}\"\n ],\n \"otherRelevantDataCountries\": [\n \"US\"\n ],\n \"status\": \"compliant\"\n },\n \"meta\": [\n {}\n ],\n \"version\": 0\n }\n]",
"raw": "[\n {\n \"acl\": {\n \"owners\": [\n \"{{New_OwnerDataGroupInvalid}}@{{data-partition-id}}{{domain}}\"\n ],\n \"viewers\": [\n \"{{New_ViewerDataGroup}}@{{data-partition-id}}{{domain}}\"\n ]\n },\n \"data\": {\n \"msg\": \"hello world from Data Lake\"\n },\n \"id\": \"{{data-partition-id}}:osdu:{{NewWellUWI}}\",\n \"kind\": \"{{data-partition-id}}:osdu:{{record_id}}:{{schema_version}}\",\n \"legal\": {\n \"legaltags\": [\n \"{{tagName}}\"\n ],\n \"otherRelevantDataCountries\": [\n \"US\"\n ],\n \"status\": \"compliant\"\n },\n \"meta\": [\n {}\n ],\n \"version\": 0\n }\n]",
"options": {
"raw": {
"language": "json"
......@@ -991,7 +1006,7 @@
],
"body": {
"mode": "raw",
"raw": "[\n {\n \"acl\": {\n \"owners\": [\n \"{{New_OwnerDataGroupInvalid}}@{{data-partition-id}}.lk\"\n ],\n \"viewers\": [\n \"{{New_ViewerDataGroup}}@{{data-partition-id}}{{domain}}\"\n ]\n },\n \"data\": {\n \"msg\": \"hello world from Data Lake\"\n },\n \"id\": \"{{data-partition-id}}:osdu:{{NewWellUWI}}\",\n \"kind\": \"{{data-partition-id}}:osdu:well-master:{{schema_version}}\",\n \"legal\": {\n \"legaltags\": [\n \"{{LegalTagNameExists}}\"\n ],\n \"otherRelevantDataCountries\": [\n \"US\"\n ],\n \"status\": \"compliant\"\n },\n \"meta\": [\n {}\n ],\n \"version\": 0\n }\n]",
"raw": "[\n {\n \"acl\": {\n \"owners\": [\n \"{{New_OwnerDataGroupInvalid}}@{{data-partition-id}}.lk\"\n ],\n \"viewers\": [\n \"{{New_ViewerDataGroup}}@{{data-partition-id}}{{domain}}\"\n ]\n },\n \"data\": {\n \"msg\": \"hello world from Data Lake\"\n },\n \"id\": \"{{data-partition-id}}:osdu:{{NewWellUWI}}\",\n \"kind\": \"{{data-partition-id}}:osdu:{{record_id}}:{{schema_version}}\",\n \"legal\": {\n \"legaltags\": [\n \"{{LegalTagNameExists}}\"\n ],\n \"otherRelevantDataCountries\": [\n \"US\"\n ],\n \"status\": \"compliant\"\n },\n \"meta\": [\n {}\n ],\n \"version\": 0\n }\n]",
"options": {
"raw": {}
}
......@@ -1053,7 +1068,7 @@
],
"body": {
"mode": "raw",
"raw": "[\r\n {\r\n \"acl\": {\r\n \"owners\": [\r\n \"{{New_OwnerDataGroup}}@{{data-partition-id}}{{domain}}\"\r\n ],\r\n \"viewers\": [\r\n \"{{New_ViewerDataGroup}}@{{data-partition-id}}{{domain}}\"\r\n ]\r\n },\r\n \"data\": {\r\n \"msg\": \"hello world from Data Lake\"\r\n },\r\n \"id\": \"{{data-partition-id}}:osdu:{{NewWellUWI}}\",\r\n \"kind\": \"{{data-partition-id}}:osdu:well-master:{{schema_version}}\",\r\n \"legal\": {\r\n \"legaltags\": [\r\n \"{{LegalTagNameExists}}\"\r\n ],\r\n \"otherRelevantDataCountries\": [\r\n \"US\"\r\n ],\r\n \"status\": \"compliant\"\r\n },\r\n \"meta\": [\r\n {}\r\n ],\r\n \"version\": 0\r\n }\r\n]\r\n\r\n",
"raw": "[\r\n {\r\n \"acl\": {\r\n \"owners\": [\r\n \"{{New_OwnerDataGroup}}@{{data-partition-id}}{{domain}}\"\r\n ],\r\n \"viewers\": [\r\n \"{{New_ViewerDataGroup}}@{{data-partition-id}}{{domain}}\"\r\n ]\r\n },\r\n \"data\": {\r\n \"msg\": \"hello world from Data Lake\"\r\n },\r\n \"id\": \"{{data-partition-id}}:osdu:{{NewWellUWI}}\",\r\n \"kind\": \"{{data-partition-id}}:osdu:{{record_id}}:{{schema_version}}\",\r\n \"legal\": {\r\n \"legaltags\": [\r\n \"{{LegalTagNameExists}}\"\r\n ],\r\n \"otherRelevantDataCountries\": [\r\n \"US\"\r\n ],\r\n \"status\": \"compliant\"\r\n },\r\n \"meta\": [\r\n {}\r\n ],\r\n \"version\": 0\r\n }\r\n]\r\n\r\n",
"options": {
"raw": {}
}
......@@ -2139,7 +2154,7 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"kindsinvalid\" : \"{{data-partition-id}}:osdu:well-master:{{schema_version}}\",\n \"schema\" : [ {\n \"path\" : \"msg\",\n \"kind\" : \"string\",\n \"ext\" : { }\n }, {\n \"path\" : \"year\",\n \"kind\" : \"int\",\n \"ext\" : { }\n }, {\n \"path\" : \"weight\",\n \"kind\" : \"float\",\n \"ext\" : { }\n }, {\n \"path\" : \"location\",\n \"kind\" : \"core:dl:geopoint:1.0.0\",\n \"ext\" : { }\n }, {\n \"path\" : \"valid\",\n \"kind\" : \"bool\",\n \"ext\" : { }\n } ]\n}\n",
"raw": "{\n \"kindsinvalid\" : \"{{data-partition-id}}:osdu:{{schema_version}}\",\n \"schema\" : [ {\n \"path\" : \"msg\",\n \"kind\" : \"string\",\n \"ext\" : { }\n }, {\n \"path\" : \"year\",\n \"kind\" : \"int\",\n \"ext\" : { }\n }, {\n \"path\" : \"weight\",\n \"kind\" : \"float\",\n \"ext\" : { }\n }, {\n \"path\" : \"location\",\n \"kind\" : \"core:dl:geopoint:1.0.0\",\n \"ext\" : { }\n }, {\n \"path\" : \"valid\",\n \"kind\" : \"bool\",\n \"ext\" : { }\n } ]\n}\n",
"options": {
"raw": {}
}
......@@ -2193,7 +2208,7 @@
],
"body": {
"mode": "raw",
"raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:well-master:{{schema_version}}\",\r\n \"schema\": [\r\n {\r\n \"path\": \"msg\",\r\n \"kind\": \"string\"\r\n },\r\n {\r\n \"path\": \"year\",\r\n \"kind\": \"int\"\r\n },\r\n {\r\n \"path\": \"weight\",\r\n \"kind\": \"float\"\r\n },\r\n {\r\n \"path\": \"location\",\r\n \"kind\": \"core:dl:geopoint:1.0.0\"\r\n },\r\n {\r\n \"path\": \"valid\",\r\n \"kind\": \"bool\"\r\n }\r\n ]\r\n}",
"raw": "{\r\n \"kind\": \"{{data-partition-id}}:osdu:{{record_id}}:{{schema_version}}\",\r\n \"schema\": [\r\n {\r\n \"path\": \"msg\",\r\n \"kind\": \"string\"\r\n },\r\n {\r\n \"path\": \"year\",\r\n \"kind\": \"int\"\r\n },\r\n {\r\n \"path\": \"weight\",\r\n \"kind\": \"float\"\r\n },\r\n {\r\n \"path\": \"location\",\r\n \"kind\": \"core:dl:geopoint:1.0.0\"\r\n },\r\n {\r\n \"path\": \"valid\",\r\n \"kind\": \"bool\"\r\n }\r\n ]\r\n}",
"options": {
"raw": {}
}
......@@ -2502,8 +2517,8 @@
"script": {
"id": "281a844b-1557-40ea-ac6b-5bd75c241ebd",
"exec": [
"pm.test(\"Status code is 400\", function () {",
" pm.response.to.have.status(400);",
"pm.test(\"Status code is 404\", function () {",
" pm.response.to.have.status(404);",
"});",
"/*pm.test(\"Status description - Schema not found for specified kind.\", function () {",
" pm.response.to.have.status(\"Schema not found for specified kind.\");",
......@@ -2537,7 +2552,7 @@
{
"id": "a50bb3a8-2707-46af-96ff-3b319b881c15",
"key": "kind",
"value": "{{data-partition-id}}:osdu:well-master:{{schema_version}}",
"value": "{{data-partition-id}}:osdu:{{record_id}}:{{schema_version}}",
"type": "string"
}
]
......
Supports Markdown
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