← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1292311] Re: 5 unicode unit test failures when building Debian package

 

I marked this an invalid as it wasn't a current bug in Keystone. The
problem was a Debian specific patch that looks to be a fix for an issue
we may have had in the past.

** Changed in: keystone
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1292311

Title:
  5 unicode unit test failures when building Debian package

Status in OpenStack Identity (Keystone):
  Invalid

Bug description:
  ======================================================================
  FAIL: keystone.tests.test_exception.ExceptionTestCase.test_invalid_unicode_string
  ----------------------------------------------------------------------
  Traceback (most recent call last):
  _StringException: pythonlogging:'': {{{Adding cache-proxy 'keystone.tests.test_cache.CacheIsolatingProxy' to backend.}}}

  Traceback (most recent call last):
    File "/tmp/buildd/keystone-2014.1~b3/keystone/tests/test_exception.py", line 100, in test_invalid_unicode_string
      self.assertIn('%(attribute)', e.message)
    File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 327, in assertIn
      self.assertThat(haystack, Contains(needle))
    File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 406, in assertThat
      raise mismatch_error
  MismatchError: '%(attribute)' not in 'Expecting to find xx in \xe7a va. The server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error.'

  
  ======================================================================
  FAIL: keystone.tests.test_exception.ExceptionTestCase.test_unicode_string
  ----------------------------------------------------------------------
  Traceback (most recent call last):
  _StringException: pythonlogging:'': {{{Adding cache-proxy 'keystone.tests.test_cache.CacheIsolatingProxy' to backend.}}}

  Traceback (most recent call last):
    File "/tmp/buildd/keystone-2014.1~b3/keystone/tests/test_exception.py", line 92, in test_unicode_string
      self.assertIn(u'\u2013', e.message)
    File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 327, in assertIn
      self.assertThat(haystack, Contains(needle))
    File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 404, in assertThat
      mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
    File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 454, in _matchHelper
      mismatch = matcher.match(matchee)
    File "/usr/lib/python2.7/dist-packages/testtools/matchers/_basic.py", line 285, in match
      if self.needle not in matchee:
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 29: ordinal not in range(128)

  
  ======================================================================
  FAIL: keystone.tests.test_exception.SecurityErrorTestCase.test_invalid_unicode_string
  ----------------------------------------------------------------------
  Traceback (most recent call last):
  _StringException: pythonlogging:'': {{{Adding cache-proxy 'keystone.tests.test_cache.CacheIsolatingProxy' to backend.}}}

  Traceback (most recent call last):
    File "/tmp/buildd/keystone-2014.1~b3/keystone/tests/test_exception.py", line 100, in test_invalid_unicode_string
      self.assertIn('%(attribute)', e.message)
    File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 327, in assertIn
      self.assertThat(haystack, Contains(needle))
    File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 406, in assertThat
      raise mismatch_error
  MismatchError: '%(attribute)' not in 'Expecting to find xx in \xe7a va. The server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error.'

  
  ======================================================================
  FAIL: keystone.tests.test_exception.SecurityErrorTestCase.test_unicode_string
  ----------------------------------------------------------------------
  Traceback (most recent call last):
  _StringException: pythonlogging:'': {{{Adding cache-proxy 'keystone.tests.test_cache.CacheIsolatingProxy' to backend.}}}

  Traceback (most recent call last):
    File "/tmp/buildd/keystone-2014.1~b3/keystone/tests/test_exception.py", line 92, in test_unicode_string
      self.assertIn(u'\u2013', e.message)
    File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 327, in assertIn
      self.assertThat(haystack, Contains(needle))
    File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 404, in assertThat
      mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
    File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 454, in _matchHelper
      mismatch = matcher.match(matchee)
    File "/usr/lib/python2.7/dist-packages/testtools/matchers/_basic.py", line 285, in match
      if self.needle not in matchee:
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 29: ordinal not in range(128)

  
  ======================================================================
  FAIL: keystone.tests.test_wsgi.LocalizedResponseTest.test_static_translated_string_is_Message
  ----------------------------------------------------------------------
  Traceback (most recent call last):
  _StringException: pythonlogging:'': {{{Adding cache-proxy 'keystone.tests.test_cache.CacheIsolatingProxy' to backend.}}}

  Traceback (most recent call last):
    File "/tmp/buildd/keystone-2014.1~b3/keystone/tests/test_wsgi.py", line 247, in test_static_translated_string_is_Message
      gettextutils.Message)
    File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 372, in assertIsInstance
      self.assertThat(obj, matcher, msg)
    File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 406, in assertThat
      raise mismatch_error
  MismatchError: 'The request you have made requires authentication.' is not an instance of Message

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


References