-
Story
-
Resolution: Done
-
Medium
-
None
-
None
-
RICP_T4 Sprint B.D4
Requirements:
The following fields has to exist, otherwise - error:
- RAN Name (Resource ID) - If not found - HTTP 404 Not found + 404 resource not found
From now on - the content of the payload should contain the mandatory fields, otehrwise - HTTP 400 + 402 validation error
(Note - there can a an object which is optional, like nrNeighbourInfos, but if it exist, its mandatory fields must exist).
- GNB
- servedNrCells
- servedNrCellInformation
Inside the Nr Neighbour Information
- nrCgi
- choiceNrMode
- nrMode
- nrPCI
Inside the Served NR Cell Information
- cellId
- choiceNrMode
- nrMode
- nrPCI
- servedPlmns
also, there can be HTTP 500 Internal Server Error + 500 RNIB error or 501 Internal Server Error. Please try again later (SW Exception)
Acceptance:
Negative
- Call PUT http://<serverBaseURL>/v#/nodeb or with unknown RAN name. See Appropriate 404
- Call this valid RAN Name but with missing mandatory fields. See }}{{Appropriate 400
- Call this valid RAN Name with optional objects (neighbor) which inside there are missing mandatory fields. See }}{{Appropriate 400{{}}
Positive
- Call PUT http://<serverBaseURL>/v#/nodeb or valid RAN Name and all mandatory fields OK. See (w/out calling the implementation) it is OK.
Test Plan
Given | When | Then |
---|---|---|
RAN doesn't exist | PUT /nodeb/test is called; Request Body: { "servedNrCells" : [...] } |
HTTP 404 Not Found; Response Body: { "errorCode": 404, "errorMessage": "Resource Not Found" } |
DB is down | PUT /nodeb/test is called; Request Body: { "servedNrCells" : [...] } |
HTTP 500 Internal Server Error; Response Body: { "errorCode" : 500, "errorMessage" : "RNIB error" } |
test2 is an existing RAN AND empty serverNrCells array |
PUT /nodeb/test2 is called; Request Body: { "servedNrCells" : [] } |
HTTP 400 Bad Request; Response Body: { "errorCode":402, "errorMessage": "Validation error" } |
test2 is an existing RAN AND servedNrCellInformation mandatory field missing |
PUT /nodeb/test2 is called; Request Body: { "servedNrCells" : [{ "nrNeighbourInfos":[...] } ] } |
HTTP 400 Bad Request; Response Body: { "errorCode":402, "errorMessage": "Validation error" } |
test2 is an existing RAN AND servedNrCellInformation mandatory field exists AND a mandatory field is missing (cellId, etc.) |
PUT /nodeb/test2 is called; Request Body: { "servedNrCells" : [ { "servedNrCellInformation":{...} }] } |
HTTP 400 Bad Request; Response Body: { "errorCode":402, "errorMessage": "Validation error" } |
test2 is an existing RAN AND servedNrCellInformation mandatory field exists AND nrNeighbourInfos optional field exists AND a mandatory field is missing (nrCgi, etc.) |
PUT /nodeb/test2 is called; Request Body: { "servedNrCells" : [ { "servedNrCellInformation":{...} , "nrNeighbourInfos":\\\{...} }] } |
HTTP 400 Bad Request; Response Body: { "errorCode":402, "errorMessage": "Validation error" } |
test2 is an existing RAN AND all mandatory fields exist |
PUT /nodeb/test2 is called; Request Body: { "servedNrCells" : [ { "servedNrCellInformation":{...} }] } |
Validation passes (eventually, given BL is implemented, 200 OK) |
1.
|
Implementation | Done | Idan Shalom | |
2.
|
UTs | Done | Idan Shalom | |
3.
|
Update Swagger (request should include servedNrCells ONLY) | Done | Idan Shalom |