Commit 9dd87f8f authored by Kamlesh Todai's avatar Kamlesh Todai
Browse files

Merge branch 'dataset_test_case_fix' into 'master'

Dataset platform testing: Fixed Dataset / 02 Register Dataset - File test case

See merge request !347
parents 6fe42f42 7edf3fb7
Pipeline #55828 passed with stages
in 1 minute and 38 seconds
......@@ -226,8 +226,8 @@
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {\r",
" pm.response.to.have.status(200);\r",
"pm.test(\"Status code is 201\", function () {\r",
" pm.response.to.have.status(201);\r",
"});\r",
""
],
......@@ -266,7 +266,7 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"datasetRegistries\": [\n {\n \"id\": \"opendes:dataset--File.Generic:70358f69dc24bf0880718a4550a60ea434a9f558e490aae82cee87be49ef1655\",\n \"version\": 1614105463059152,\n \"kind\": \"opendes:wks:dataset--File.Generic:1.0.0\",\n \"acl\": {\n \"viewers\": [\n \"data.default.viewers@opendes.testing.com\"\n ],\n \"owners\": [\n \"data.default.owners@opendes.testing.com\"\n ]\n },\n \"legal\": {\n \"legaltags\": [\n \"opendes-public-usa-dataset-1\"\n ],\n \"otherRelevantDataCountries\": [\n \"US\"\n ],\n \"status\": \"compliant\"\n },\n \"data\": {\n \"DatasetProperties\": {\n \"FileSourceInfo\": {\n \"FileSource\": \"\",\n \"PreLoadFilePath\": \"s3://r3m3osdu-core-filedmsstack-kxpvz-s3databucketprod-1ippssiq9cdwp/opendes/ZaNdlue54AyZ9YieHezCLXu4n0s/test1.txt\"\n }\n },\n \"ResourceSecurityClassification\": \"osdu:reference-data--ResourceSecurityClassification:RESTRICTED:\",\n \"SchemaFormatTypeID\": \"osdu:reference-data--SchemaFormatType:TabSeparatedColumnarText:\"\n },\n \"meta\": [],\n \"tags\": {}\n }\n ]\n}"
"raw": "{\n \"datasetRegistries\": [\n {\n \"id\": \"{{data-partition-id}}:dataset--File.Generic:70358f69dc24bf0880718a4550a60ea434a9f558e490aae82cee87be49ef1655\",\n \"version\": 1614105463059152,\n \"kind\": \"{{data-partition-id}}:{{schemaSource}}:dataset--File.Generic:1.0.0\",\n \"acl\": {\n \"viewers\": [\n \"data.default.viewers@{{data-partition-id}}{{domain}}\"\n ],\n \"owners\": [\n \"data.default.owners@{{data-partition-id}}{{domain}}\"\n ]\n },\n \"legal\": {\n \"legaltags\": [\n \"{{data-partition-id}}-public-usa-dataset-1\"\n ],\n \"otherRelevantDataCountries\": [\n \"US\"\n ],\n \"status\": \"compliant\"\n },\n \"data\": {\n \"DatasetProperties\": {\n \"FileSourceInfo\": {\n \"FileSource\": \"\",\n \"PreLoadFilePath\": \"s3://r3m3osdu-core-filedmsstack-kxpvz-s3databucketprod-1ippssiq9cdwp/{{data-partition-id}}/ZaNdlue54AyZ9YieHezCLXu4n0s/test1.txt\"\n }\n },\n \"ResourceSecurityClassification\": \"{{data-partition-id}}:reference-data--ResourceSecurityClassification:RESTRICTED:\",\n \"SchemaFormatTypeID\": \"{{data-partition-id}}:reference-data--SchemaFormatType:TabSeparatedColumnarText:\"\n },\n \"meta\": [],\n \"tags\": {}\n }\n ]\n}"
},
"url": {
"raw": "{{DATASET_HOST}}/registerDataset",
......@@ -317,7 +317,7 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"datasetRegistryIds\": [\n \"opendes:doc:aaaabbbbccccddddeeeeffff\"\n ]\n}",
"raw": "{\n \"datasetRegistryIds\": [\n \"{{data-partition-id}}:doc:aaaabbbbccccddddeeeeffff\"\n ]\n}",
"options": {
"raw": {
"language": "json"
......
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