Improve OSC flavor unit test.
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
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Refactor: Abstract columns out in TestFlavorList to avoid redundant code.
Addressed by: https:/
Refactor: Abstract datalist out in TestFlavorList to avoid redundant code.
Addressed by: https:/
Refactor: Move FakeFlavorResource to compute_fakes.py.
Addressed by: https:/
Introduce class FakeFlavor to fake one or more flavors.
Addressed by: https:/
Use FakeFlavor in TestFlavorList.
Addressed by: https:/
Use FakeFlavor in TestFlavorSet.
Addressed by: https:/
Use FakeFlavor in TestFlavorUnset.
Addressed by: https:/
User FakeFlavor in TestServerResize.
Addressed by: https:/
Use FakeFlavor in TestServerCreate.
Addressed by: https:/
Remove old fake flavor data.