Unit tests fail after upgrading to keystoneclient 0.4.0

Bug #1238591 reported by Yuriy Zveryanskyy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Fix Released
Critical
aeva black

Bug Description

Traceback (most recent call last):
  File "ironic/tests/api/test_acl.py", line 62, in test_authenticated
    'X-Roles': 'admin'})
  File "ironic/tests/api/test_acl.py", line 45, in get_json
    **param)
  File "ironic/tests/api/base.py", line 127, in get_json
    expect_errors=expect_errors)
  File "/home/yzveryanskyy/ironic/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 206, in get
    expect_errors=expect_errors)
  File "/home/yzveryanskyy/ironic/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 515, in do_request
    self._check_status(status, res)
  File "/home/yzveryanskyy/ironic/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 544, in _check_status
    res)
AppError: Bad response: 401 Unauthorized (not 200 OK or 3xx redirect for http://localhost/v1/nodes/1be26c0b-03f2-4d2e-ae87-c02d7f33c123)
'Authentication required'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic (master)

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

Changed in ironic:
assignee: nobody → Roman Prykhodchenko (prykhodchenko)
status: New → In Progress
summary: - tests failed with keystoneclient 0.4.0
+ Unit tests fail after upgrading to keystoneclient 0.4.0
Changed in ironic:
importance: Undecided → Critical
Changed in ironic:
assignee: Roman Prykhodchenko (prykhodchenko) → Devananda van der Veen (devananda)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic (master)

Reviewed: https://review.openstack.org/51177
Committed: http://github.com/openstack/ironic/commit/ba76d594442c23d9a5aa7a257e0cb1f94f23a4e1
Submitter: Jenkins
Branch: master

commit ba76d594442c23d9a5aa7a257e0cb1f94f23a4e1
Author: Roman Prykhodchenko <email address hidden>
Date: Fri Oct 11 13:26:58 2013 +0300

    Fix datetime format in FakeCache

    Since keystoneclient v0.4.0 auth_token middleware requires
    the expiratin date and time of an authentication token to
    be in ISO format.

    This patch updates FakeCache which is used for unit tests
    for ACL to generate expiration date and time according to
    ISO 8601.

    Closes-bug: #1238591
    Change-Id: Ie6e542fe1acc7658ca62db5dfdfd949ff15c8373

Changed in ironic:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in ironic:
milestone: none → icehouse-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ironic:
milestone: icehouse-1 → 2014.1
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.