]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Ignore HTTP_PROXY during test requests
authorAngus Lees <gus@inodes.org>
Wed, 13 Aug 2014 02:13:48 +0000 (12:13 +1000)
committerAngus Lees <gus@inodes.org>
Wed, 13 Aug 2014 02:13:48 +0000 (12:13 +1000)
commitb0ebfb90958afac39be24b5157763d479256ab8c
tree22970cb869a03fbe8f843a24018a85b1155c591d
parent03884b3d64db64565c5f21da5db26eb7e01b4cff
Ignore HTTP_PROXY during test requests

urllib2 follows http_proxy/HTTP_PROXY by default.  If a (non-local)
proxy is set and a test tries to connect to localhost:$port, it will
instead attempt to connect to $port on the proxy and (presumably) fail.

This change forces the two tests that failed in the presence of
HTTP_PROXY to connect directly.

Change-Id: Ia12c91b356f0ccebf874933ff459aa2faa190655
cinder/tests/integrated/integrated_helpers.py
cinder/tests/test_wsgi.py