Skip to content

Commit

Permalink
Update put_v2_entities_eid_attrs_attr.test
Browse files Browse the repository at this point in the history
More info about 'new way', 'old way'
  • Loading branch information
Ken Zangelin committed Sep 28, 2015
1 parent 9477c86 commit d767fd3
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ brokerStart CB 0-255
# 02. POST /v2/entities, creating E1 with A1
# 03. PUT /v2/entities/E1/attrs/A1 and see it work
# 04. GET /v2/entities/E1/attrs/A1
# 05. PUT /v2/entities/E1/attrs/A1 'old way' - metadatas not inside 'metadata: {}' - see it fail
# 06. PUT /v2/entities/E1/attrs/A1 'new way' - metadatas inside 'metadata: {}' - see it work
# 05. PUT /v2/entities/E1/attrs/A1 'old way - pre #1259' - metadatas not inside 'metadata: {}' - see it fail
# 06. PUT /v2/entities/E1/attrs/A1 'new way - post #1259' - metadatas inside 'metadata: {}' - see it work
# 07. GET /v2/entities/E1/attrs/A1 to see that 06 worked
#

Expand Down Expand Up @@ -78,8 +78,8 @@ echo
echo


echo "05. PUT /v2/entities/E1/attrs/A1 'old way' - metadatas not inside 'metadata: {}' - see it fail"
echo "=============================================================================================="
echo "05. PUT /v2/entities/E1/attrs/A1 'old way - pre #1259' - metadatas not inside 'metadata: {}' - see it fail"
echo "=========================================================================================================="
payload='{
"value": 12,
"type": "AT1",
Expand All @@ -91,8 +91,8 @@ echo
echo


echo "06. PUT /v2/entities/E1/attrs/A1 'new way' - metadatas inside 'metadata: {}' - see it work"
echo "=========================================================================================="
echo "06. PUT /v2/entities/E1/attrs/A1 'new way - post #1259' - metadatas inside 'metadata: {}' - see it work"
echo "======================================================================================================="
payload='{
"value": 12,
"type": "AT1",
Expand Down Expand Up @@ -155,8 +155,8 @@ Date: REGEX(.*)
}


05. PUT /v2/entities/E1/attrs/A1 'old way' - metadatas not inside 'metadata: {}' - see it fail
==============================================================================================
05. PUT /v2/entities/E1/attrs/A1 'old way - pre #1259' - metadatas not inside 'metadata: {}' - see it fail
==========================================================================================================
HTTP/1.1 400 Bad Request
Content-Length: 82
Content-Type: application/json
Expand All @@ -168,8 +168,8 @@ Date: REGEX(.*)
}


06. PUT /v2/entities/E1/attrs/A1 'new way' - metadatas inside 'metadata: {}' - see it work
==========================================================================================
06. PUT /v2/entities/E1/attrs/A1 'new way - post #1259' - metadatas inside 'metadata: {}' - see it work
=======================================================================================================
HTTP/1.1 204 No Content
Content-Length: 0
Date: REGEX(.*)
Expand Down

0 comments on commit d767fd3

Please sign in to comment.