10 Commits

Author SHA1 Message Date
Dean Troyer
aa1df04bad Use requests module for HTTP/HTTPS
* Implement correct certificate verification
* Add --os-cacert
* Rework tests for requests

Pinned requests module to < 1.0 as 1.0.2 is now current in pipi
as of 17Dec2012.

Blueprint: tls-verify

Change-Id: I9a25a94c8dfcaf483c4c8328439809d65cf10b38
2012-12-20 13:04:46 -06:00
Andrew Laski
8cff1a20bc Add ConnectionRefused exception.
When novaclient gets a Connection Refused it now presents that as a
ConnectionRefused exception with appropriate information rather than as
an HTTP exception.  Addresses bug 1047078.

vagrant@precise64:/opt/stack/python-novaclient$ nova image-list
ERROR: ConnectionRefused: '[Errno 111] Connection refused'

Change-Id: Iebf4d78a524004d5e79d2219b35f90fbd38ee690
2012-09-07 16:04:54 -04:00
Matt Stephenson
fe4fa9daef Add Accept: applicaton/json header to all service requests. Fixes bug 904436
Change-Id: I5f7c78f0ea516a7a96c32b1f745686e130c2b9af
2012-02-02 16:37:55 -08:00
Brian Waldon
d7f04e19fe Removing cache-busting query param (fresh)
Change-Id: I9154baef778fd2790f4933918f3a48ec94fc7214
2011-12-28 17:12:43 -05:00
Sandy Walsh
00f05317ef few missing references to api_key 2011-11-09 07:18:22 -08:00
Sandy Walsh
2c3a865f6b proxy token support - no tests 2011-09-09 06:33:38 -07:00
Brian Waldon
4b5b0b6edf adding unittest 2011-08-10 13:46:34 -04:00
termie
536be15a87 whitespace cleanups 2011-08-08 13:25:29 -07:00
Christopher MacGown
0efc51ec9d pep8 in tests 2011-08-08 13:25:29 -07:00
Brian Lamar
454daa2cba Tests working again...merged in some work we did earlier. 2011-08-03 17:41:33 -04:00