py27 and py35 test cases are failing on current master

Bug #1673761 reported by Dinesh Bhor
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-keystoneclient
Fix Released
Medium
Steve Martinelli

Bug Description

Please refer the failing logs:
http://logs.openstack.org/43/446943/1/check/gate-python-keystoneclient-python27-ubuntu-xenial/84b965d/console.html

======================================================================
FAIL: keystoneclient.tests.unit.apiclient.test_exceptions.ExceptionsArgsTest.test_from_response_known
tags: worker-0
----------------------------------------------------------------------
Empty attachments:
  pythonlogging:''

Traceback (most recent call last):
  File "keystoneclient/tests/unit/apiclient/test_exceptions.py", line 56, in test_from_response_known
    exceptions.BadRequest, method, url, status_code, json_data)
  File "keystoneclient/tests/unit/apiclient/test_exceptions.py", line 43, in assert_exception
    self.assertEqual(ex.message, json_data["error"]["message"])
  File "/opt/stack/python-keystoneclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 411, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/opt/stack/python-keystoneclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: 'fake message (HTTP 400)' != 'fake message'

======================================================================
FAIL: keystoneclient.tests.unit.apiclient.test_exceptions.ExceptionsArgsTest.test_from_response_unknown
tags: worker-1
----------------------------------------------------------------------
Empty attachments:
  pythonlogging:''

Traceback (most recent call last):
  File "keystoneclient/tests/unit/apiclient/test_exceptions.py", line 65, in test_from_response_unknown
    exceptions.HTTPClientError, method, url, status_code, json_data)
  File "keystoneclient/tests/unit/apiclient/test_exceptions.py", line 43, in assert_exception
    self.assertEqual(ex.message, json_data["error"]["message"])
  File "/opt/stack/python-keystoneclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 411, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/opt/stack/python-keystoneclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: 'fake unknown message (HTTP 499)' != 'fake unknown message'

======================================================================
FAIL: keystoneclient.tests.unit.test_http.ClientTest.test_get_error_with_json_resp
tags: worker-1
----------------------------------------------------------------------
pythonlogging:'': {{{
REQ: curl -g -i -X GET http://127.0.0.1:5000/hi -H "X-Auth-Token: {SHA1}ee977806d7286510da8b9a7492ba58e2484c0ecc" -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
RESP: [400] Content-Type: application/json
RESP BODY: {"error": {"title": "Error title", "code": 400, "message": "Error message string"}}

Request returned failure status: 400
}}}

Traceback (most recent call last):
  File "keystoneclient/tests/unit/test_http.py", line 100, in test_get_error_with_json_resp
    self.assertEqual(exc.message, "Error message string")
  File "/opt/stack/python-keystoneclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 411, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/opt/stack/python-keystoneclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: u'Error message string (HTTP 400)' != 'Error message string'
Ran 1696 tests in 3.020s (-0.917s)
FAILED (id=19, failures=3 (+3), skips=4)

keystoneclinet master:

commit b264c4bbc8c11b8aae0f4a8920b83d0c192c94f8
Author: OpenStack Proposal Bot <email address hidden>
Date: Wed Feb 15 01:35:06 2017 +0000

    Updated from global requirements

    Change-Id: I9bc8e5d548371825ef793c4b601d98b095b2b7e3

Changed in python-keystoneclient:
assignee: nobody → Dinesh Bhor (dinesh-bhor)
summary: - py27 and py34 test cases are failing on current master
+ py27 and py35 test cases are failing on current master
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-keystoneclient (master)

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

Changed in python-keystoneclient:
status: New → In Progress
Changed in python-keystoneclient:
importance: Undecided → Medium
Revision history for this message
wingwj (wingwj) wrote :

Thanks.
I met the same problem in https://review.openstack.org/#/c/447805.

Changed in python-keystoneclient:
assignee: Dinesh Bhor (dinesh-bhor) → Steve Martinelli (stevemar)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-keystoneclient (master)

Reviewed: https://review.openstack.org/447377
Committed: https://git.openstack.org/cgit/openstack/python-keystoneclient/commit/?id=cfd33730868350cd475e45569a8c1573803a6895
Submitter: Jenkins
Branch: master

commit cfd33730868350cd475e45569a8c1573803a6895
Author: dineshbhor <email address hidden>
Date: Fri Mar 17 16:34:20 2017 +0530

    Fix failing PY2 and PY3 gate jobs

    Please refer:
    http://logs.openstack.org/43/446943/1/check/gate-python-keystoneclient-python27-ubuntu-xenial/84b965d/console.html

    Closes-Bug: #1673761
    Change-Id: Iefa74ffe8642f039a115e9ff4416c8f72d299317

Changed in python-keystoneclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-keystoneclient 3.11.0

This issue was fixed in the openstack/python-keystoneclient 3.11.0 release.

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.