Create flavor accepts invalid href
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Poppy |
Confirmed
|
Low
|
Unassigned |
Bug Description
POST /flavors accepts href values which are empty/ invalid (not in uri format) & returns success HTTP 204
Expected Result: HTTP 400 with appropriate error message.
See request/response details from the tests below.
root: INFO: =======
root: INFO: Test Case....: test_create_
root: INFO: Created At...: 2014-10-14 10:23:37.110348
root: INFO: No Test description.
root: INFO: =======
cafe.engine.
requests.
requests.
cafe.engine.
------------
REQUEST SENT
------------
request method..: POST
request url.....: http://
request params..:
request headers.: {'Content-Length': '137', 'Accept-Encoding': 'gzip, deflate', 'X-Project-Id': u'650278', 'Accept': '*/*', 'User-Agent': 'python-
request body....: {"id": "b14a9e07-
cafe.engine.
-----------------
RESPONSE RECEIVED
-----------------
response status..: <Response [204]>
response time....: 0.348796844482
response headers.: {'date': 'Tue, 14 Oct 2014 14:23:40 GMT', 'content-length': '4', 'location': 'http://
response body....:
=======
FAIL: test_create_
-------
Traceback (most recent call last):
File "/Users/
return func(self, *args, **kwargs)
File "/Users/
self.
AssertionError: 204 != 400
-------
root: INFO: =======
root: INFO: Test Case....: test_create_
root: INFO: Created At...: 2014-10-14 12:54:48.540013
root: INFO: No Test description.
root: INFO: =======
cafe.engine.
requests.
requests.
cafe.engine.
------------
REQUEST SENT
------------
request method..: POST
request url.....: http://
request params..:
request headers.: {'Content-Length': '163', 'Accept-Encoding': 'gzip, deflate', 'X-Project-Id': u'650278', 'Accept': '*/*', 'User-Agent': 'python-
request body....: {"id": "cf5af3f3-
cafe.engine.
-----------------
RESPONSE RECEIVED
-----------------
response status..: <Response [204]>
response time....: 0.0130360126495
response headers.: {'date': 'Tue, 14 Oct 2014 16:54:49 GMT', 'content-length': '4', 'location': 'http://
response body....:
summary: |
- Create flavor accepts empty href + Create flavor accepts empty href & invalid href |
description: | updated |
summary: |
- Create flavor accepts empty href & invalid href + Create flavor accepts invalid href |
Changed in poppy: | |
milestone: | none → kilo-3 |
Changed in poppy: | |
assignee: | nobody → miguel quintero (migmaqer) |
Changed in poppy: | |
milestone: | kilo-3 → liberty-1 |
Changed in poppy: | |
assignee: | miguel quintero (migmaqer) → nobody |
milestone: | liberty-1 → none |
Changed in poppy: | |
importance: | Medium → Low |
Handled the empty href issue.
The International Resource Identifier (IRI) validation remains to be done.