Skip to content

Commit

Permalink
FIX ftest cases
Browse files Browse the repository at this point in the history
  • Loading branch information
fgalan committed Nov 22, 2023
1 parent a14931c commit 4c2d7b5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ Content-Length: 116

{
"description": "one or more of the attributes in the request already exist: E1 - [ attr4 ]",
"error": "Unprocessable"
"error": "PartialUpdate"
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ orionCurl --url /v2/entities/E1/attrs --payload "$payload"
echo
echo

echo "04. POST /v2/entities/E1?options=append A and B (and check 400 Bad Request)"
echo "==========================================================================="
echo "04. POST /v2/entities/E1?options=append A and B (and check 422 Unprocessable Content)"
echo "====================================================================================="
payload='{
"A": {
"value": 30
Expand Down Expand Up @@ -142,8 +142,8 @@ Fiware-Correlator: REGEX([0-9a-f\-]{36})



04. POST /v2/entities/E1?options=append A and B (and check 400 Bad Request)
===========================================================================
04. POST /v2/entities/E1?options=append A and B (and check 422 Unprocessable Content)
=====================================================================================
HTTP/1.1 422 Unprocessable Content
Date: REGEX(.*)
Fiware-Correlator: REGEX([0-9a-f\-]{36})
Expand All @@ -152,7 +152,7 @@ Content-Length: 112

{
"description": "one or more of the attributes in the request already exist: E1 - [ A ]",
"error": "Unprocessable"
"error": "PartialUpdate"
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Content-Length: 112

{
"description": "one or more of the attributes in the request do not exist: E1 - [ A2 ]",
"error": "Unprocessable"
"error": "PartialUpdate"
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ echo '03. PATCH /v2/entities/Room1/attrs, to update existing attribute (temperat
echo '===================================================================================================================================================================='
payload='{
"temperature": {
"value": 24,
"value": 25,
"type": "Float"
},
"temper": {
Expand Down Expand Up @@ -121,7 +121,7 @@ Content-Length: 120

{
"description": "one or more of the attributes in the request do not exist: Room1 - [ pressur ]",
"error": "Unprocessable"
"error": "PartialUpdate"
}


Expand All @@ -135,7 +135,7 @@ Content-Length: 128

{
"description": "one or more of the attributes in the request do not exist: Room1 - [ temper, pressur ]",
"error": "Unprocessable"
"error": "PartialUpdate"
}


Expand All @@ -158,7 +158,7 @@ Content-Length: 141
"temperature": {
"metadata": {},
"type": "Float",
"value": 24
"value": 25
},
"type": "Thing"
}
Expand Down

0 comments on commit 4c2d7b5

Please sign in to comment.