
This patch achieves three interrelated changes 1. an update to the ClientInterface, making it more efficient and consistent with other HTTP libraries. PSR-FIG messages have also been added as separate classes, rather than lumped as one. Guzzle functionality has also been moved to its own namespace; 2. the refactoring of `GuzzleClient` to `GuzzleAdapter`, including relevant changes needed for the interface change (1). We now have ADAPTERS that bridge our interfaces with Guzzle's - making that difference much clearer, extensible, less tightly coupled and less brittle; 3. moving "bad request" error handling into its own dedicated space, based on how the new Adapter functionality (2). Previously the client tried to do all the exception logic - but this is not strictly its responsibility. This logic has been shipped out to a base RequestException which instantiates one of its children exception based on the HTTP status code. Although I have attempted to keep the scope of this patch to a minimum, as granular as possible, because the interface is a core internal API, various other files need to be modified to reflect the change. In terms of the other two changes, these are inextricably linked to the interface change, so cannot be teased out into their own patches. Change-Id: Ibc1b50cec125c11d32ee6e4f0dbb395fcaea864e
54 lines
1.5 KiB
INI
54 lines
1.5 KiB
INI
;;;;;;;;;;;;;;;;;;;;;
|
|
; Identity Services ;
|
|
;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
; This is the default Identity Service URL.
|
|
openstack.identity.url = https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0
|
|
|
|
; Set the tenant ID
|
|
openstack.identity.tenantId =
|
|
openstack.identity.tenantName =
|
|
|
|
; For authentication by username.
|
|
openstack.identity.username =
|
|
openstack.identity.password =
|
|
|
|
;;;;;;;;;;;;;;;;;;
|
|
; Object Storage ;
|
|
;;;;;;;;;;;;;;;;;;
|
|
|
|
; Settings to work with swift:
|
|
; Account is the tenandId:console username.
|
|
openstack.swift.account = 12345678:87654321
|
|
; Key is the console account password.
|
|
openstack.swift.key = abcdef123456
|
|
; URL is the same as used for identity services calls (including port) except
|
|
; with /auth/v1.0/ appended to the end.
|
|
openstack.swift.url = https://region-a.geo-1.identity.hpcloudsvc.com:35357/auth/v1.0/
|
|
|
|
; Container used for testing.
|
|
openstack.swift.container = "test"
|
|
|
|
; Specified region name to test against.
|
|
openstack.swift.region = "Region1"
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
; Configuration Parameters ;
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
; The HTTP Transport Client to use.
|
|
transport = "OpenStack\Common\Transport\Guzzle\GuzzleAdapter"
|
|
|
|
; If behind a proxy set to the https proxy server communications need
|
|
; to pass through.
|
|
; transport.proxy = "https://username:password@foobar.com:1234"
|
|
|
|
; Turn on verbose debugging of the transport.
|
|
; transport.debug = 1
|
|
|
|
; Site the max time (in seconds) a connection will wait for the transaction to complete.
|
|
; transport.timeout = .5
|
|
|
|
; Tell SSL not to worry about certs that can be verified.
|
|
; transport.ssl.verify = 0
|