Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion BMSAPI.postman_collection.json
Original file line number Diff line number Diff line change
@@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions BMS_Environment.postman_environment.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "70404c00-24e8-4d0e-99e2-1e63774e4397",
"id": "412b0bf3-7560-40f1-92bd-052a2e710afe",
"name": "BMS_Environment",
"values": [
{
Expand Down Expand Up @@ -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"
}
12 changes: 6 additions & 6 deletions BRAPI.postman_collection.json
Original file line number Diff line number Diff line change
@@ -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"
},
Expand Down Expand Up @@ -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",
Expand All @@ -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.\");",
"});",
""
],
Expand Down Expand Up @@ -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}}",
Expand Down Expand Up @@ -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 () {",
Expand Down Expand Up @@ -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",
Expand Down