The ceilometer.tests.tempest.service.images.glance_http Module

class ceilometer.tests.tempest.service.images.glance_http.HTTPClient(auth_provider, filters, **kwargs)[source]

Bases: object

raw_request(method, url, **kwargs)[source]
class ceilometer.tests.tempest.service.images.glance_http.OpenSSLConnectionDelegator(*args, **kwargs)[source]

Bases: object

An OpenSSL.SSL.Connection delegator.

Supplies an additional ‘makefile’ method which httplib requires and is not present in OpenSSL.SSL.Connection.

Note: Since it is not possible to inherit from OpenSSL.SSL.Connection a delegator must be used.

makefile(*args, **kwargs)[source]
class ceilometer.tests.tempest.service.images.glance_http.ResponseBodyIterator(resp)[source]

Bases: object

A class that acts as an iterator over an HTTP response.

next()[source]
class ceilometer.tests.tempest.service.images.glance_http.VerifiedHTTPSConnection(host, port=None, key_file=None, cert_file=None, ca_certs=None, timeout=None, insecure=False, ssl_compression=True)[source]

Bases: httplib.HTTPSConnection

Extended HTTPSConnection which uses OpenSSL library for enhanced SSL

Note: Much of this functionality can eventually be replaced
with native Python 3.3 code.
close()[source]
connect()[source]

Connect to SSL port and apply per-connection parameters.

static host_matches_cert(host, x509)[source]

Verify that the x509 certificate we have received from ‘host’

Identifies the server we are connecting to, ie that the certificate’s Common Name or a Subject Alternative Name matches ‘host’.

setcontext()[source]

Set up the OpenSSL context.

verify_callback(connection, x509, errnum, depth, preverify_ok)[source]

Previous topic

The ceilometer.tests.tempest.service.client Module

Next topic

The ceilometer.tests.tempest.service.images.v1.images_client Module

Project Source

This Page