← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1770718] [NEW] test_auth_middleware_factory fails with new keystonemiddleware 5.1.0

 

Public bug reported:

As seen in the review to update the constraint for
keystoneauthmiddleware [1], the test_auth_middleware_factory unit test
fails with:

Traceback (most recent call last):
  File "nova/tests/unit/api/openstack/placement/test_deploy.py", line 43, in test_auth_middleware_factory
    response.headers['www-authenticate'])
  File "/home/zuul/src/git.openstack.org/openstack/nova/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 411, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/home/zuul/src/git.openstack.org/openstack/nova/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = "Keystone uri='http://example.com/identity'"
actual    = 'Keystone uri="http://example.com/identity";'

cdent found this is the result of a fairly recent change [2] that
updated the format of the uri string.

[1] https://review.openstack.org/567449
[2] https://review.openstack.org/559925

** Affects: nova
     Importance: Undecided
     Assignee: Chris Dent (cdent)
         Status: In Progress


** Tags: testing

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1770718

Title:
  test_auth_middleware_factory fails with new keystonemiddleware 5.1.0

Status in OpenStack Compute (nova):
  In Progress

Bug description:
  As seen in the review to update the constraint for
  keystoneauthmiddleware [1], the test_auth_middleware_factory unit test
  fails with:

  Traceback (most recent call last):
    File "nova/tests/unit/api/openstack/placement/test_deploy.py", line 43, in test_auth_middleware_factory
      response.headers['www-authenticate'])
    File "/home/zuul/src/git.openstack.org/openstack/nova/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 411, in assertEqual
      self.assertThat(observed, matcher, message)
    File "/home/zuul/src/git.openstack.org/openstack/nova/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 498, in assertThat
      raise mismatch_error
  testtools.matchers._impl.MismatchError: !=:
  reference = "Keystone uri='http://example.com/identity'"
  actual    = 'Keystone uri="http://example.com/identity";'

  cdent found this is the result of a fairly recent change [2] that
  updated the format of the uri string.

  [1] https://review.openstack.org/567449
  [2] https://review.openstack.org/559925

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1770718/+subscriptions


Follow ups