the latest commit:9ec54a3f27c683ac3bc5807b81971e1f5a2be99a
Date: Fri May 13 18:43:49 2016 +0000
on glance master whit ubuntu 14,
I used proxy server to internet,
tox -e py27 --
I got so many failed unit tests like this:
glance.tests.unit.v2.test_tasks_resource.TestTasksDeserializer.test_index_negative_limit
----------------------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "glance/tests/unit/v2/test_tasks_resource.py", line 475, in setUp
super(TestTasksDeserializer, self).setUp()
File "glance/tests/utils.py", line 73, in setUp
config.parse_args(args=[])
File "glance/common/config.py", line 186, in parse_args
default_config_files=default_config_files)
File "/home/tecs/glance/.tox/py27/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 2169, in __call__
self._check_required_opts()
File "/home/tecs/glance/.tox/py27/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 2736, in _check_required_opts
raise RequiredOptError(opt.name, group)
oslo_config.cfg.RequiredOptError: value required for option: keystone_authtoken.auth-url
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
other failed tests traceback:
glance.tests.functional.test_cache_middleware.TestImageCacheXattr.test_cache_middleware_transparent_v2
------------------------------------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "glance/tests/utils.py", line 177, in wrapped
func(*a, **kwargs)
File "glance/tests/functional/test_cache_middleware.py", line 138, in test_cache_middleware_transparent_v2
body=jsonutils.dumps(image_entity))
File "/home/tecs/glance/.tox/py27/local/lib/python2.7/site-packages/httplib2/__init__.py", line 1609, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/home/tecs/glance/.tox/py27/local/lib/python2.7/site-packages/httplib2/__init__.py", line 1351, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/home/tecs/glance/.tox/py27/local/lib/python2.7/site-packages/httplib2/__init__.py", line 1272, in _conn_request
conn.connect()
File "/home/tecs/glance/.tox/py27/local/lib/python2.7/site-packages/httplib2/__init__.py", line 916, in connect
self.sock.connect((self.host, self.port) + sa[2:])
File "/home/tecs/glance/.tox/py27/local/lib/python2.7/site-packages/httplib2/socks.py", line 424, in connect
self.__negotiatehttp(destpair[0], destpair[1])
File "/home/tecs/glance/.tox/py27/local/lib/python2.7/site-packages/httplib2/socks.py", line 390, in __negotiatehttp
raise HTTPError((statuscode, statusline[2]))
httplib2.socks.HTTPError: (504, 'Gateway Time-out')
is this a bug of unit test?
It looks like that the tests "glance. unit.api. test_cmd. TestGlanceApiCm d.test_ unsupported_ default_ store broke" the test. You can comment out this test and try again.