Don't follow HTTP_PROXY when talking to localhost test server
Unlike urllib2, requests honours HTTP_PROXY by default. This meant
test_uri_length_limit's test queries to http://localhost:$port/ would
hit the wrong localhost when $HTTP_PROXY was another host - resulting in a
meaningless test scenario and apparent failures with HTTP status codes
other than the expected REQUEST_URI_TOO_LARGE (414).
This change forces requests to go direct for those test queries.
Reviewed: https:/ /review. openstack. org/99823 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=7e54641fc1f 760423c2f121078 7903e17ea1cc06
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7e54641fc1f7604 23c2f1210787903 e17ea1cc06
Author: Angus Lees <email address hidden>
Date: Fri Jun 13 12:20:54 2014 +1000
Don't follow HTTP_PROXY when talking to localhost test server
Unlike urllib2, requests honours HTTP_PROXY by default. This meant uri_length_ limit's test queries to http:// localhost:$port/ would URI_TOO_ LARGE (414).
test_
hit the wrong localhost when $HTTP_PROXY was another host - resulting in a
meaningless test scenario and apparent failures with HTTP status codes
other than the expected REQUEST_
This change forces requests to go direct for those test queries.
Closes-Bug: #1329614 d2d3f2e81dc7dfa cc2a334adf1
Change-Id: Ida3424ca9a750b