Comment 2 for bug 814518

Revision history for this message
Salvatore Orlando (salvatore-orlando) wrote :

The tests that are failing are:
- create_port_badrequest_xml
- create_port_badrequest_json

They fail because the APIs return a 200 status code, while the test expects a 400 error.

The request body for the port create operation optionally contains the state for the port being created (ACTIVE or DOWN).
Therefore the API looks for it in the request body, and if it doesn't find it it just ignores the body.

This behaviour might be satisfying; however I think it would be even better if we return a 400 error when a body containing something different from the state of the port is sent to the API layer.