Merge lp:~bac/python-jujuclient/tls into lp:~hazmat/python-jujuclient/trunk
Proposed by
Brad Crittenden
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 35 | ||||
Proposed branch: | lp:~bac/python-jujuclient/tls | ||||
Merge into: | lp:~hazmat/python-jujuclient/trunk | ||||
Diff against target: |
121 lines (+47/-13) 3 files modified
HACKING.rst (+22/-0) jujuclient.py (+6/-6) test_jujuclient.py (+19/-7) |
||||
To merge this branch: | bzr merge lp:~bac/python-jujuclient/tls | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Kapil Thangavelu | Approve | ||
Review via email: mp+223823@code.launchpad.net |
Description of the change
Force websocket to use TLS.
The default SSL library on OS X attempts to use SSLv2 on connections. When
trying to connect to the juju endpoint with SSLv2 the connection is refused
and no negotiation is tried.
Luckily websocket create_connection has an undocumented kwarg sslopt which can
be used to force TLS.
Without the change all tests fail on OS X. With the change they all pass.
The test suite had failures before this branch was started and they have been
fixed.
The use of time.sleep(4) after calling client.
the status to be removed from status calls.
Also a minimal HACKING.rst doc was added to show how to run the tests.
To post a comment you must log in.
Please take a look.