unit tests fail if https_proxy is set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
boto |
New
|
Unknown
|
|||
python-boto (Ubuntu) |
Fix Committed
|
High
|
David Britton |
Bug Description
Python-boto unit tests don't like *_proxy env vars set during execution. They do not reach out to the network, but different codepaths are taken when a proxy is detected, and the mocks get destroyed in that case.
A lot of failures of the form:
=======
FAIL: test_head_
-------
Traceback (most recent call last):
File "/tmp/autopkgte
self.
AssertionError: 403 != 405
-------
boto: DEBUG: Using access key provided by client.
boto: DEBUG: Using secret key provided by client.
boto: DEBUG: path=/
boto: DEBUG: auth_path=
boto: DEBUG: Method: HEAD
boto: DEBUG: Path: https:/
boto: DEBUG: Data:
boto: DEBUG: Headers: {}
boto: DEBUG: Host: you-broke-
boto: DEBUG: Port: 443
boto: DEBUG: Params: {}
boto: DEBUG: establishing HTTPS connection: host=you-
boto: DEBUG: Proxy connection: CONNECT you-broke-
boto: DEBUG: Token: None
boto: DEBUG: StringToSign:
HEAD
Wed, 31 May 2017 16:49:14 GMT
/you-broke-it/
boto: DEBUG: Signature:
AWS aws_access_
boto: DEBUG: Final headers: {'Date': 'Wed, 31 May 2017 16:49:14 GMT', 'Content-Length': '0', 'Authorization': u'AWS aws_access_
boto: DEBUG: Response headers: [('x-amz-id-2', 'R8k7qp47lyMqK4
-------
Changed in python-boto (Ubuntu): | |
importance: | Undecided → High |
assignee: | nobody → David Britton (davidpbritton) |
status: | New → In Progress |
summary: |
- proposed-migration autopkgtest failure for boto 2.44.0 + unit tests fail if https_proxy is set |
Changed in boto: | |
status: | Unknown → New |
The attachment "1698222.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]