Running against devstack, I'm getting errors after changing to expect a 200 OK with empty list returned:
======================================================================
ERROR: Return an empty list when a numeric value for status is specified
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jpipes/repos/tempest/tempest/tests/compute/servers/test_list_servers_negative.py", line 145, in test_list_servers_pass_numeric_status
resp, body = self.client.list_servers(dict(status=non_existing_status))
File "/home/jpipes/repos/tempest/tempest/services/compute/json/servers_client.py", line 131, in list_servers
resp, body = self.get(url)
File "/home/jpipes/repos/tempest/tempest/common/rest_client.py", line 166, in get
return self.request('GET', url, headers)
File "/home/jpipes/repos/tempest/tempest/common/rest_client.py", line 211, in request
raise exceptions.BadRequest(resp_body)
BadRequest: Bad request
Details: Bad request
Details: {u'badRequest': {u'message': u'Invalid server status: 1', u'code': 400}}
-------------------- >> begin captured logging << --------------------
tempest.common.rest_client: ERROR: Request URL: http://127.0.0.1:8774/v2/e070e2b43ff94c32aa69a441c0a6e653/servers?status=1&
tempest.common.rest_client: ERROR: Request Body: None
tempest.common.rest_client: ERROR: Response Headers: {'date': 'Mon, 29 Oct 2012 21:24:05 GMT', 'status': '400', 'content-length': '68', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-aa2833c4-f9e5-47b9-a196-da5006689dfc'}
tempest.common.rest_client: ERROR: Response Body: {u'badRequest': {u'message': u'Invalid server status: 1', u'code': 400}}
OK, this is really weird...
Running against devstack, I'm getting errors after changing to expect a 200 OK with empty list returned:
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ------- ------- ------- ------- ------- ------- ------- ------- ------- jpipes/ repos/tempest/ tempest/ tests/compute/ servers/ test_list_ servers_ negative. py", line 145, in test_list_ servers_ pass_numeric_ status list_servers( dict(status= non_existing_ status) ) jpipes/ repos/tempest/ tempest/ services/ compute/ json/servers_ client. py", line 131, in list_servers jpipes/ repos/tempest/ tempest/ common/ rest_client. py", line 166, in get jpipes/ repos/tempest/ tempest/ common/ rest_client. py", line 211, in request BadRequest( resp_body) ------- ------ >> begin captured logging << ------- ------- ------ common. rest_client: ERROR: Request URL: http:// 127.0.0. 1:8774/ v2/e070e2b43ff9 4c32aa69a441c0a 6e653/servers? status= 1& common. rest_client: ERROR: Request Body: None common. rest_client: ERROR: Response Headers: {'date': 'Mon, 29 Oct 2012 21:24:05 GMT', 'status': '400', 'content-length': '68', 'content-type': 'application/json; charset=UTF-8', 'x-compute- request- id': 'req-aa2833c4- f9e5-47b9- a196-da5006689d fc'} common. rest_client: ERROR: Response Body: {u'badRequest': {u'message': u'Invalid server status: 1', u'code': 400}}
ERROR: Return an empty list when a numeric value for status is specified
-------
Traceback (most recent call last):
File "/home/
resp, body = self.client.
File "/home/
resp, body = self.get(url)
File "/home/
return self.request('GET', url, headers)
File "/home/
raise exceptions.
BadRequest: Bad request
Details: Bad request
Details: {u'badRequest': {u'message': u'Invalid server status: 1', u'code': 400}}
-------
tempest.
tempest.
tempest.
tempest.
jpipes@ uberbox: ~/repos/ devstack$ ./tools/info.sh |grep nova master[ b961bd4] novaclient| master[ 247b530] /github. com/openstack/ nova.git|b961bd4c291655 9bca856bc8b142d 9df7494ef13 /github. com/openstack/ python- novaclient. git|247b53022bced6 d831e9ad10fb64f e520d00660b
git|nova|
git|python-
pip|https:/
pip|https:/