Validation for List servers by server name - expected error responses not returned

Bug #1002892 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 server name" API and fail
as the expected error codes are not returned.

1. test_list_servers_by_server_name_empty - Return an error when an empty server name is passed

Expected Error Code - 400 BadRequest
Actual Code - 200 OK

2. test_list_servers_by_server_name_too_large - Return an error for a very large value for server name listing

Expected Error Code - 413 Overlimit
Actual Code - 200 OK

3. test_list_servers_by_name_pass_numeric_name - Return an error for a numeric server name listing

Expected Error Code - 400 BadRequest
Actual Code - 200 OK

4. test_list_servers_by_non_existing_server_name - Return an error while listing for a non existent server

Expected Error Code - 404 NotFound
Actual Code - 200 OK

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

Tags: ntt
Rohit Karajgi (rohitk)
tags: added: ntt
Rohit Karajgi (rohitk)
description: updated
Revision history for this message
Brian Waldon (bcwaldon) wrote :

The return code of filtering a list should typically be 200. The only thing that should be changing is what is contained in the list returned to clients. Please only file bugs based on mis-implementation of the API spec, not your personal opinion.

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.