Bug 1119116 - [RFE][python-cinderclient]: Test mocking with requests-mock
Summary: [RFE][python-cinderclient]: Test mocking with requests-mock
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: RFEs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact:
URL: https://blueprints.launchpad.net/pyth...
Whiteboard: upstream_milestone_none upstream_defi...
Depends On:
TreeView+ depends on / blocked
Reported: 2014-07-14 04:06 UTC by RHOS Integration
Modified: 2015-11-20 20:00 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Last Closed: 2015-03-19 17:00:20 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description RHOS Integration 2014-07-14 04:06:20 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/python-cinderclient/+spec/http-mock-testing.


The current testing process involves faking out a lot of client code. This has two major problems:
1. A lot of what we are testing is mocking infrastructure rather than actual code.
2. It is very reliant on the current structure of the client.

In general i would like to push towards adopting the keystoneclient session object as the base means of communication, but first we must make the testing process more resilient and less tied to how the client currently works.

Initially this was planned to be done with HTTPretty, however requirements has allowed a new library called requests-mock which is requests library specific but easier to work with.

Specification URL (additional information):


Note You need to log in before you can comment on or make changes to this bug.