Hyper-V unit tests refactoring (partial)
The Hyper-V driver oldest tests (test_hypervapi.py) are proving hard to maintain, we need to fix that.
The tests in test_hypervapi.py in particular can also be refactored and split in separate TestCases, one of each *ops module.
This effort will:
* improve the readability of the tests
* remove remaining fakes and stubs
* make better use of patching
* reduce conflicts during rebases
Blueprint information
- Status:
- Complete
- Approver:
- John Garbutt
- Priority:
- Low
- Drafter:
- Alessandro Pilotti
- Direction:
- Approved
- Assignee:
- Claudiu Belu
- Definition:
- Approved
- Series goal:
- Accepted for kilo
- Implementation:
- Implemented
- Milestone target:
- 2015.1.0
- Started by
- Alessandro Pilotti
- Completed by
- John Garbutt
Related branches
Related bugs
Sprints
Whiteboard
Approved, because it doesn't need a spec for kilo. --johnthetubaguy 10th October 2014
Gerrit topic: https:/
Addressed by: https:/
Hyper-V: Adds HostOps unit tests
Addressed by: https:/
Hyper-V: Removes redundant utilsfactory tests from test_hypervapi
Addressed by: https:/
Hyper-V: Adds LiveMigrationOps unit tests
Addressed by: https:/
Hyper-V: Adds Hyper-V SnapshotOps tests
Addressed by: https:/
Hyper-V: Refactors Hyper-V VMOps unit tests
Addressed by: https:/
Hyper-V: Adds VMOps unit tests (part 1)
Addressed by: https:/
Hyper-V: Adds VMOps unit tests (part 2)
Addressed by: https:/
Hyper-V: Adds MigrationOps unit tests
Addressed by: https:/
Hyper-V: Adds VolumeOps unit tests
Addressed by: https:/
Hyper-V: removes test_hypervapi tests
Not enough positive reviews on this code for it to make kilo-1, moving to kilo-2 --johnthetubaguy 17th December 2014
Addressed by: https:/
WIP Hyper-V: Adds HyperVDriver unit tests
Addressed by: https:/
hyperv: use instance object in driver.py
Addressed by: https:/
hyperv: use instance object in imagecache.py
Addressed by: https:/
hyperv: use instance object in migrationops.py
Addressed by: https:/
hyperv: use instance object in rdbconsoleops.py
Addressed by: https:/
hyperv: use instance object in vif.py
Addressed by: https:/
hyperv: use instance object in vmops.py
This doesn't really need a blueprint, so its re-approved for kilo --johnthetubaguy 16th Feb 2015
https:/
Addressed by: https:/
Hyper-V: Fixes cold migration / resize issue
Gerrit topic: https:/
Work Items
Dependency tree
* Blueprints in grey have been implemented.