[openstack-dev] [keystone] python-keystoneclient unit tests only if python-memcache is installed

Thomas Goirand zigo at debian.org
Thu Mar 20 15:10:08 UTC 2014


Hi,

I've noticed that if there's python-memcache installed, building the
python-keystoneclient (last version: 0.6.0) will produce some unit tests
errors (see below the first 2 errors, there's 7 of them in total). If I
apt-get purge python-memcache, the errors don't show.

I'm worried that this is the symptoms of a problem with some backends.
Can someone confirm if there's a real problem or if I should just
declare a build-conflict?

Cheers,

Thomas Goirand (zigo)

======================================================================
FAIL:
keystoneclient.tests.test_auth_token_middleware.v2AuthTokenMiddlewareTest.test_encrypt_cache_data
keystoneclient.tests.test_auth_token_middleware.v2AuthTokenMiddlewareTest.test_encrypt_cache_data
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call
last):
  File
"/home/zigo/sources/openstack/icehouse/python-keystoneclient/build-area/python-keystoneclient-0.6.0/keystoneclient/tests/test_auth_token_middleware.py",
line 784, in test_encryp
    self.assertEqual(self.middleware._cache_get(token), data[0])
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line
321, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line
406, in assertThat
    raise mismatch_error
MismatchError: None != 'this_data'


======================================================================
FAIL:
keystoneclient.tests.test_auth_token_middleware.v2AuthTokenMiddlewareTest.test_no_memcache_protection

keystoneclient.tests.test_auth_token_middleware.v2AuthTokenMiddlewareTest.test_no_memcache_protection
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call
last):
  File
"/home/zigo/sources/openstack/icehouse/python-keystoneclient/build-area/python-keystoneclient-0.6.0/keystoneclient/tests/test_auth_token_middleware.py",
line 815, in test_no_mem
    self.assertEqual(self.middleware._cache_get(token), data[0])
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line
321, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line
406, in assertThat
    raise mismatch_error
MismatchError: None != 'this_data'



More information about the OpenStack-dev mailing list