API TestAlarm unit test failing with bad response

Bug #1227685 reported by David Peraza
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Undecided
Unassigned

Bug Description

Here is an example:

======================================================================
FAIL: tests.api.v2.test_alarm_scenarios.TestAlarms.test_get_recorded_alarm_history_state_transition_on_behalf_of(sqlalchemy)
tags: worker-3
----------------------------------------------------------------------
Empty attachments:
  pythonlogging:''

Traceback (most recent call last):
  File "ceilometer/tests/base.py", line 71, in skip_if_not_implemented
    return func(*args, **kwargs)
  File "tests/api/v2/test_alarm_scenarios.py", line 308, in test_get_recorded_alarm_history_state_transition_on_behalf_of
    headers=member_auth)
  File "ceilometer/tests/api.py", line 156, in post_json
    expect_errors=expect_errors
  File "/home/jenkins/workspace/osee-ceilometer-merge/.tox/py27/local/lib/python2.7/site-packages/webtest/utils.py", line 41, in wrapper
    return self._gen_request(method, url, **kw)
  File "/home/jenkins/workspace/osee-ceilometer-merge/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 594, in _gen_request
    expect_errors=expect_errors)
  File "/home/jenkins/workspace/osee-ceilometer-merge/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 489, in do_request
    self._check_status(status, res)
  File "/home/jenkins/workspace/osee-ceilometer-merge/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 521, in _check_status
    "Bad response: %s (not %s)", res_status, status)
AppError: Bad response: 200 OK (not 201)
======================================================================

Revision history for this message
David Peraza (dperaza) wrote :

Looks like this patch fixes this bug: https://review.openstack.org/#/c/47340/

Changed in ceilometer:
status: New → Fix Released
Thierry Carrez (ttx)
Changed in ceilometer:
status: Fix Released → Fix Committed
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: none → havana-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: havana-rc1 → 2013.2
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.