Some of Mistral API are broken with WSME 0.8

Bug #1488873 reported by Lingxian Kong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Fix Released
Critical
Lingxian Kong

Bug Description

2015-08-26 02:47:53.972 | ======================================================================
2015-08-26 02:47:53.972 | FAIL: mistral.tests.unit.api.v2.test_action_executions.TestActionExecutionsController.test_post
2015-08-26 02:47:53.972 | tags: worker-4
2015-08-26 02:47:53.972 | ----------------------------------------------------------------------
2015-08-26 02:47:53.972 | Empty attachments:
2015-08-26 02:47:53.972 | pythonlogging:''
2015-08-26 02:47:53.972 | stderr
2015-08-26 02:47:53.972 | stdout
2015-08-26 02:47:53.973 |
2015-08-26 02:47:53.973 | Traceback (most recent call last):
2015-08-26 02:47:53.973 | File "/home/jenkins/workspace/gate-mistral-python27/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
2015-08-26 02:47:53.973 | return func(*args, **keywargs)
2015-08-26 02:47:53.973 | File "mistral/tests/unit/api/v2/test_action_executions.py", line 111, in test_post
2015-08-26 02:47:53.973 | 'params': {'save_result': True}
2015-08-26 02:47:53.973 | File "/home/jenkins/workspace/gate-mistral-python27/.tox/py27/local/lib/python2.7/site-packages/webtest/utils.py", line 37, in wrapper
2015-08-26 02:47:53.973 | return self._gen_request(method, url, **kw)
2015-08-26 02:47:53.973 | File "/home/jenkins/workspace/gate-mistral-python27/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 735, in _gen_request
2015-08-26 02:47:53.973 | expect_errors=expect_errors)
2015-08-26 02:47:53.973 | File "/home/jenkins/workspace/gate-mistral-python27/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 631, in do_request
2015-08-26 02:47:53.973 | self._check_status(status, res)
2015-08-26 02:47:53.974 | File "/home/jenkins/workspace/gate-mistral-python27/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 663, in _check_status
2015-08-26 02:47:53.974 | res)
2015-08-26 02:47:53.974 | webtest.app.AppError: Bad response: 400 Bad Request (not 200 OK or 3xx redirect for http://localhost/v2/action_executions)
2015-08-26 02:47:59.301 | {"faultcode": "Client", "faultstring": "Unknown attribute for argument action_execution: params", "debuginfo": null}
2015-08-26 02:47:59.301 | ======================================================================
2015-08-26 02:47:59.301 | FAIL: mistral.tests.unit.api.v2.test_tasks.TestTasksController.test_put_current_task_not_in_error
2015-08-26 02:47:59.301 | tags: worker-1
2015-08-26 02:47:59.301 | ----------------------------------------------------------------------
2015-08-26 02:47:59.301 | Empty attachments:
2015-08-26 02:47:59.302 | pythonlogging:''
2015-08-26 02:47:59.302 | stderr
2015-08-26 02:47:59.302 | stdout
2015-08-26 02:47:59.302 |
2015-08-26 02:47:59.302 | Traceback (most recent call last):
2015-08-26 02:47:59.302 | File "/home/jenkins/workspace/gate-mistral-python27/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
2015-08-26 02:47:59.302 | return func(*args, **keywargs)
2015-08-26 02:47:59.302 | File "mistral/tests/unit/api/v2/test_tasks.py", line 224, in test_put_current_task_not_in_error
2015-08-26 02:47:59.302 | self.assertIn('execution must be in ERROR', resp.json['faultstring'])
2015-08-26 02:47:59.302 | File "/home/jenkins/workspace/gate-mistral-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 356, in assertIn
2015-08-26 02:47:59.302 | self.assertThat(haystack, Contains(needle), message)
2015-08-26 02:47:59.303 | File "/home/jenkins/workspace/gate-mistral-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 435, in assertThat
2015-08-26 02:47:59.303 | raise mismatch_error
2015-08-26 02:47:59.303 | testtools.matchers._impl.MismatchError: 'execution must be in ERROR' not in u'Unknown attribute for argument task: reset'

Lingxian Kong (kong)
Changed in mistral:
assignee: nobody → Lingxian Kong (kong)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to mistral (master)

Fix proposed to branch: master
Review: https://review.openstack.org/217059

Changed in mistral:
status: New → In Progress
Changed in mistral:
milestone: none → liberty-3
importance: Undecided → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mistral (master)

Reviewed: https://review.openstack.org/217059
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=eb4f86998ca9d6872d5efd293257fb23ba6515f9
Submitter: Jenkins
Branch: master

commit eb4f86998ca9d6872d5efd293257fb23ba6515f9
Author: Lingxian Kong <email address hidden>
Date: Wed Aug 26 17:23:29 2015 +0800

    Add resource params to reflect WSME 0.8 fixes

    Before, WSME would ignore fields that didn't exist in the resource, but
    with the version 0.8.0 WSME will raise HTTP 400 (BadRequest) when one
    attempt to create a resource with nonexistent fields.

    Change-Id: Ie13038ff8a2f4988fa3dc97bdfbd5daf3d35a5f6
    Closes-Bug: #1488873

Changed in mistral:
status: In Progress → Fix Committed
Changed in mistral:
status: Fix Committed → Fix Released
Changed in mistral:
milestone: liberty-3 → liberty
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.