Improve OSC flavor unit test.

Registered by Tang Chen

1. Refactor to avoid redundant code.
2. Introduce a new class to fake one or more flavors.
3. Add missing unit tests.

Blueprint information

Status:
Complete
Approver:
Dean Troyer
Priority:
Undefined
Drafter:
Tang Chen
Direction:
Needs approval
Assignee:
Tang Chen
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
Dean Troyer
Completed by
Dean Troyer

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/improve-flavor-unit-test,n,z

Addressed by: https://review.openstack.org/250628
    Refactor: Abstract columns out in TestFlavorList to avoid redundant code.

Addressed by: https://review.openstack.org/250629
    Refactor: Abstract datalist out in TestFlavorList to avoid redundant code.

Addressed by: https://review.openstack.org/250646
    Refactor: Move FakeFlavorResource to compute_fakes.py.

Addressed by: https://review.openstack.org/250677
    Introduce class FakeFlavor to fake one or more flavors.

Addressed by: https://review.openstack.org/250678
    Use FakeFlavor in TestFlavorList.

Addressed by: https://review.openstack.org/250679
    Use FakeFlavor in TestFlavorSet.

Addressed by: https://review.openstack.org/250680
    Use FakeFlavor in TestFlavorUnset.

Addressed by: https://review.openstack.org/250681
    User FakeFlavor in TestServerResize.

Addressed by: https://review.openstack.org/250682
    Use FakeFlavor in TestServerCreate.

Addressed by: https://review.openstack.org/250683
    Remove old fake flavor data.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.