Test mocking with HTTPretty

Registered by Jamie Lennox

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

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/httpretty-testing,n,z

Addressed by: https://review.openstack.org/77961
    Convert aggregates testing to use httpretty

Addressed by: https://review.openstack.org/77962
    Convert agent testing to httpretty

Addressed by: https://review.openstack.org/77963
    Convert Availability Zone testing to httpretty

Gerrit topic: https://review.openstack.org/#q,topic:fixture-tests,n,z

Gerrit topic: https://review.openstack.org/#q,topic:session,n,z

Addressed by: https://review.openstack.org/95419
    Convert certificate tests to httpretty

Addressed by: https://review.openstack.org/95420
    Convert Cloud Pipe tests to httpretty

Addressed by: https://review.openstack.org/95421
    Convert Fixed IP tests to httpretty

Addressed by: https://review.openstack.org/95422
    Convert Floating IP tests to httpretty

Addressed by: https://review.openstack.org/95423
    Convert Floating IPs DNS tests to httpretty

Addressed by: https://review.openstack.org/95424
    Convert Floating IP bulk tests to httpretty

Addressed by: https://review.openstack.org/95425
    Convert floating IP pool tests to httpretty

Addressed by: https://review.openstack.org/95426
    Convert fPing tests to httpretty

Addressed by: https://review.openstack.org/95427
    Convert hosts tests to httpretty

Addressed by: https://review.openstack.org/95428
    Convert Hypervisor tests to httpretty

Addressed by: https://review.openstack.org/95429
    Convert image tests to httpretty

Addressed by: https://review.openstack.org/95430
    Convert keypair tests to httpretty

Addressed by: https://review.openstack.org/95431
    Convert limit tests to httpretty

Addressed by: https://review.openstack.org/95432
    Convert network tests to httpretty

Addressed by: https://review.openstack.org/95433
    Convert Quota tests to httpretty

Addressed by: https://review.openstack.org/95434
    Convert security group rules tests to httpretty

Addressed by: https://review.openstack.org/95435
    Convert security group tests to httpretty

Addressed by: https://review.openstack.org/95436
    Convert Server Group Tests to httpretty

Addressed by: https://review.openstack.org/95437
    Convert server tests to httpretty

Addressed by: https://review.openstack.org/95623
    In Py3 decode the output of base64.decode

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.