Remove duplicated tests code in Glance tests
Lots of code in glance tests is duplicated.
This blueprint is a summary list of problem places that needs to be worked on
We should create separate classes for different methods tests to improve tests setUp code.
Tests should be refactored to remove duplicated code and improve test assertions.
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- Alexander Gordeev
- Direction:
- Approved
- Assignee:
- Alexander Gordeev
- Definition:
- New
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- ongoing
- Started by
- Alexander Gordeev
- Completed by
- Mark Washenberger
Related branches
Related bugs
Sprints
Whiteboard
Currently this tests have following problems:
1) Different tests use different methods to setup fixtures and stubs
2) A lot of setup code is duplicated
3) Test classes a too big and should be separated in smaller ones
4) Some tests assertions are quite bad and not actually asserting anything
5) some test code can be organized a little bit to create simple DSL like methods to help understand main test goal
more detailed description:
improve fixture reusage:
glance/
glance/
glance/
glance/
glance/
Gerrit topic: https:/
Addressed by: https:/
Refactor glance/
Addressed by: https:/
Refactor glance/
Addressed by: https:/
Refactor glance/
Addressed by: https:/
Refactor glance/
Addressed by: https:/
Refactor glance/
Addressed by: https:/
Improve test/utils.py
Addressed by: https:/
Code dedup in glance/
Looks like this is complete, please update implementation status if it is not.
Addressed by: https:/
Improve test/utils.py
Addressed by: https:/
Refactor glance/
Work Items
Work items:
[a-gordeev] glance/
[eezhova] glance/
[a-gordeev] glance/
[a-gordeev] glance/
[a-gordeev] glance/