Validation for List servers by Image - expected error responses not returned

Bug #1002911 reported by Rohit Karajgi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

Our tempest tests run the following validation test for List Servers "by Image" API and fail
as the expected error codes are not returned.

1. test_list_servers_by_image_pass_negative_id - Return an error while listing server with negative image id

Expected Error Code - 400 BadRequest
Actual Code - 200 OK

2. test_list_servers_by_image_pass_overlimit_image - Return an error while listing server with too large image id

Expected Error Code - 413 OverLimit
Actual Code - 200 OK

3. test_list_servers_by_non_existing_image - Listing servers for a non existing image raises error

Expected Error Code - 404 NotFound
Actual Code - 200 OK

The List Servers API for listing by image should send the Expected error responses as above.

Tags: ntt
Revision history for this message
Brian Waldon (bcwaldon) wrote :

Similar explanation as given on this bug: https://bugs.launchpad.net/nova/+bug/1008456

Changed in nova:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.