Improve volume unittest framework of the OSC
The current unittest framework about volume mainly has two drawbacks, hardcode for the faking volume and only one faking volume can be faked. So, this BP attempts to improve this test framework with two steps:
1. add FakeVolume, and then with it user can generate more than faking volume and all volume info is generated by random.
2. add multi-volume testcases (e.g. TestVolumeDelete) and refactor the legacy unit tests about volume with new framework.
Blueprint information
- Status:
- Complete
- Approver:
- Steve Martinelli
- Priority:
- Medium
- Drafter:
- xiexs
- Direction:
- Approved
- Assignee:
- aohuanxuan
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- Steve Martinelli
- Completed by
- Steve Martinelli
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Introduce FakeVolume class
Gerrit topic: https:/
Gerrit topic: https:/
Addressed by: https:/
Refactor TestVolumeCreate with FakeVolume
Addressed by: https:/
Refactor TestVolumeList with FakeVolume
Addressed by: https:/
Refactor TestVolumeShow with FakeVolume
Addressed by: https:/
Use FakeImage in server test cases.
Addressed by: https:/
Use FakeVolume in server test cases.
Addressed by: https:/
Add some test cases for test volume set command v2
Addressed by: https:/
Refactor TestVolumeList with FakeVolume
Addressed by: https:/
Refactor TestVolumeShow with FakeVolume