From 7e402530d4f919ae877ff9c12706822c514cce8c Mon Sep 17 00:00:00 2001 From: Christine Palma Date: Tue, 29 Mar 2022 18:21:22 +0800 Subject: [PATCH] updated validation message --- BMSAPI.postman_collection.json | 2 +- BMS_Environment.postman_environment.json | 4 ++-- BRAPI.postman_collection.json | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/BMSAPI.postman_collection.json b/BMSAPI.postman_collection.json index 0c34153..5052f98 100644 --- a/BMSAPI.postman_collection.json +++ b/BMSAPI.postman_collection.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "0e639440-8ff4-4838-adfe-48b53dfc3418", + "_postman_id": "d6f12008-e22c-43ee-affc-08e54fbb0c28", "name": "BMSAPI", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, diff --git a/BMS_Environment.postman_environment.json b/BMS_Environment.postman_environment.json index b2a313c..cd9391b 100644 --- a/BMS_Environment.postman_environment.json +++ b/BMS_Environment.postman_environment.json @@ -1,5 +1,5 @@ { - "id": "70404c00-24e8-4d0e-99e2-1e63774e4397", + "id": "412b0bf3-7560-40f1-92bd-052a2e710afe", "name": "BMS_Environment", "values": [ { @@ -1703,6 +1703,6 @@ } ], "_postman_variable_scope": "environment", - "_postman_exported_at": "2022-03-29T06:34:32.954Z", + "_postman_exported_at": "2022-03-29T10:17:19.510Z", "_postman_exported_using": "Postman/9.15.6" } \ No newline at end of file diff --git a/BRAPI.postman_collection.json b/BRAPI.postman_collection.json index 4433920..96fc133 100644 --- a/BRAPI.postman_collection.json +++ b/BRAPI.postman_collection.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "0dd00193-bcb8-438d-9777-a7825c45cc38", + "_postman_id": "4697ec67-df23-49a9-a33d-4c88a538362b", "name": "BRAPI", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, @@ -19564,7 +19564,7 @@ "response": [] }, { - "name": "Verify response code and body when entered characters that exceed 255 on an attribute in additionalInfo", + "name": "Verify response code and body when entered characters that exceed 5000 on an attribute in additionalInfo", "event": [ { "listen": "test", @@ -19575,7 +19575,7 @@ "});", "pm.test(\"Response message is no germplasm found \", function () {", " var jsonData = pm.response.json();", - " pm.expect(jsonData.errors[0].message).to.eql(\"Attribute in additionalInfo must not exceed length of 255.\");", + " pm.expect(jsonData.errors[0].message).to.eql(\"Attribute in additionalInfo must not exceed length of 5000.\");", "});", "" ], @@ -19656,7 +19656,7 @@ ], "body": { "mode": "raw", - "raw": "{\r\n \"additionalInfo\": {\r\n \"NOTES\": \"LoremsipsumsdolorssitsametssconsectetuersadipiscingselitssAeneanscommodosligulasegetsdolorssAeneansmassassCumssociissnatoquespenatibussetsmagnissdissparturientsmontesssnascetursridiculussmusssDonecsquamsfelisssultriciessnecsspellentesqueseusspretiumsquisss\"\r\n }\r\n}" + "raw": "{\r\n \"additionalInfo\": {\r\n \"NOTES\": \"NOTE00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001\"\r\n }\r\n}" }, "url": { "raw": "{{BMSurl}}/{{crop}}/brapi/v2/germplasm/{{germplasm_uuid}}", @@ -23410,7 +23410,7 @@ " pm.expect(jsonData.metadata.status[1].messageType).to.eql(\"ERROR\");", "});", "pm.test(\"Check message\", function () {", - " pm.expect(jsonData.metadata.status[1].message).to.eql(\"ERROR1 Germplasm at position 1 is invalid because attribute in additionalInfo must not exceed length of 255.\");", + " pm.expect(jsonData.metadata.status[1].message).to.eql(\"ERROR1 Germplasm at position 1 is invalid because attribute in additionalInfo must not exceed length of 5000.\");", "});", "//Check datafiles", "pm.test(\"Check datafiles\", function () {", @@ -23496,7 +23496,7 @@ ], "body": { "mode": "raw", - "raw": "[\r\n {\r\n \"accessionNumber\": \"ACCNO0\",\r\n \"acquisitionDate\": \"2021-03-01\",\r\n \"additionalInfo\": {\r\n \"NOTE\": \"NOTE000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001\"\r\n },\r\n \"breedingMethodDbId\": 1,\r\n \"commonCropName\": \"testCommonCrop\",\r\n \"countryOfOriginCode\": \"UGA\",\r\n \"defaultDisplayName\": \"MyGermplasm0\",\r\n \"genus\": \"GENUS0\",\r\n \"germplasmName\": \"MyGermplasm0\",\r\n \"germplasmOrigin\": \"SORIG0\",\r\n \"instituteCode\": \"INSTCODE0\",\r\n \"instituteName\": \"INSTNAME0\",\r\n \"pedigree\": \"AB0/CD0\",\r\n \"seedSource\": \"Randomized Trial:TEST:0:0\",\r\n \"species\": \"SPECIES0\",\r\n \"speciesAuthority\": \"SPAUTH0\",\r\n \"subtaxa\": \"SUBTAXA0\",\r\n \"subtaxaAuthority\": \"STAUTH0\",\r\n \"synonyms\": [\r\n {\r\n \"synonym\": \"DRVNM0\",\r\n \"type\": \"DRVNM\"\r\n }\r\n ]\r\n }\r\n]" + "raw": "[\r\n {\r\n \"accessionNumber\": \"ACCNO0\",\r\n \"acquisitionDate\": \"2021-03-01\",\r\n \"additionalInfo\": {\r\n \"NOTE\": \"NOTE00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001\"\r\n },\r\n \"breedingMethodDbId\": 1,\r\n \"commonCropName\": \"testCommonCrop\",\r\n \"countryOfOriginCode\": \"UGA\",\r\n \"defaultDisplayName\": \"MyGermplasm0\",\r\n \"genus\": \"GENUS0\",\r\n \"germplasmName\": \"MyGermplasm0\",\r\n \"germplasmOrigin\": \"SORIG0\",\r\n \"instituteCode\": \"INSTCODE0\",\r\n \"instituteName\": \"INSTNAME0\",\r\n \"pedigree\": \"AB0/CD0\",\r\n \"seedSource\": \"Randomized Trial:TEST:0:0\",\r\n \"species\": \"SPECIES0\",\r\n \"speciesAuthority\": \"SPAUTH0\",\r\n \"subtaxa\": \"SUBTAXA0\",\r\n \"subtaxaAuthority\": \"STAUTH0\",\r\n \"synonyms\": [\r\n {\r\n \"synonym\": \"DRVNM0\",\r\n \"type\": \"DRVNM\"\r\n }\r\n ]\r\n }\r\n]" }, "url": { "raw": "{{BMSurl}}/{{crop}}/brapi/v2/germplasm",