Previous topic

The cinder.tests.test_HpSanISCSIDriver Module

Next topic

The cinder.tests.test_cinder_rootwrap Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Cinder 2011.2 docs or all OpenStack docs too.

The cinder.tests.test_api Module

Unit tests for the API endpoint

class FakeHttplibConnection(app, host, is_secure=False)

Bases: object

A fake httplib.HTTPConnection for boto to use

requests made via this connection actually get translated and routed into our WSGI app, we then wait for the response and turn it back into the httplib.HTTPResponse that boto expects.

close()

Required for compatibility with boto/tornado

getresponse()
getresponsebody()
request(method, path, data, headers)
class FakeHttplibSocket(response_string)

Bases: object

a fake socket implementation for httplib.HTTPResponse, trivial

makefile(_mode, _other)

Returns the socket’s internal buffer