Test mocking with HTTPretty
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.
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- Jamie Lennox
- Direction:
- Needs approval
- Assignee:
- Jamie Lennox
- Definition:
- Pending Approval
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Convert aggregates testing to use httpretty
Addressed by: https:/
Convert agent testing to httpretty
Addressed by: https:/
Convert Availability Zone testing to httpretty
Gerrit topic: https:/
Gerrit topic: https:/
Addressed by: https:/
Convert certificate tests to httpretty
Addressed by: https:/
Convert Cloud Pipe tests to httpretty
Addressed by: https:/
Convert Fixed IP tests to httpretty
Addressed by: https:/
Convert Floating IP tests to httpretty
Addressed by: https:/
Convert Floating IPs DNS tests to httpretty
Addressed by: https:/
Convert Floating IP bulk tests to httpretty
Addressed by: https:/
Convert floating IP pool tests to httpretty
Addressed by: https:/
Convert fPing tests to httpretty
Addressed by: https:/
Convert hosts tests to httpretty
Addressed by: https:/
Convert Hypervisor tests to httpretty
Addressed by: https:/
Convert image tests to httpretty
Addressed by: https:/
Convert keypair tests to httpretty
Addressed by: https:/
Convert limit tests to httpretty
Addressed by: https:/
Convert network tests to httpretty
Addressed by: https:/
Convert Quota tests to httpretty
Addressed by: https:/
Convert security group rules tests to httpretty
Addressed by: https:/
Convert security group tests to httpretty
Addressed by: https:/
Convert Server Group Tests to httpretty
Addressed by: https:/
Convert server tests to httpretty
Addressed by: https:/
In Py3 decode the output of base64.decode