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

Dolph Mathews dolph.mathews at gmail.com
Thu Mar 20 15:48:38 UTC 2014


Yes, those tests are conditionally executed if
https://pypi.python.org/pypi/python-memcached/ is installed and if so,
memcached is assumed to be accessible on localhost. Unfortunately the test
suite doesn't have a sanity check for that following assumption, so the
test failures aren't particularly helpful.


On Thu, Mar 20, 2014 at 10:10 AM, Thomas Goirand <zigo at debian.org> wrote:

> 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'
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140320/fe45a4bf/attachment.html>


More information about the OpenStack-dev mailing list