Hyper-V unit tests refactoring (continued + partial)

Registered by Claudiu Belu on 2015-06-22

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

This blueprint will target to complete the effort started in the previous cycle in the blueprint https://blueprints.launchpad.net/nova/+spec/hyper-v-test-refactoring

A new blueprint is necessary, as the linked blueprint was already marked as completed in Kilo.

Blueprint information

Status:
Complete
Approver:
John Garbutt
Priority:
Low
Drafter:
Claudiu Belu
Direction:
Approved
Assignee:
Claudiu Belu
Definition:
Approved
Series goal:
Accepted for liberty
Implementation:
Implemented
Milestone target:
milestone icon 12.0.0
Started by
John Garbutt on 2015-06-22
Completed by
John Garbutt on 2015-08-04

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/hyper-v-test-refactoring,n,z

Addressed by: https://review.openstack.org/139796
    Hyper-V: Adds MigrationOps unit tests

Addressed by: https://review.openstack.org/139797
    Hyper-V: Adds VolumeOps unit tests

Addressed by: https://review.openstack.org/148980
    Hyper-V: Adds HyperVDriver unit tests

Addressed by: https://review.openstack.org/139798
    Hyper-V: removes test_hypervapi tests

Gerrit topic: https://review.openstack.org/#q,topic:bp/hyper-v-test-refactoring-liberty,n,z

All patches merged or abandoned, marking this as complete. --johnthetubaguy 4th August 2015

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.