Improve baremetal unittest framework of the OSC

Registered by xiexs

The current unittest framework about baremetal mainly has two drawbacks, hardcode for the faked baremetal and only one faked baremetal can be faked.
This BP attempts to improve this test framework with two steps:
1. add FakeBaremetal, and then with it user can generate more than one faked baremetal and all baremetal info is generated by random.
2. add multi-baremetal testcases (e.g. TestBaremetalDelete) and refactor the legacy unit tests about baremetal with new framework.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
xiexs
Direction:
Needs approval
Assignee:
xiexs
Definition:
Obsolete
Series goal:
None
Implementation:
Unknown
Milestone target:
None
Completed by
Jim Rollenhagen

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/improve-baremetal-unittest,n,z

Addressed by: https://review.openstack.org/289676
    Add multi nodes support for "baremetal delete" command

Addressed by: https://review.openstack.org/302037
    Introduce FakeBaremetal class

Addressed by: https://review.openstack.org/302038
    Refactor TestBaremetalDelete with FakeBaremetal

Gerrit topic: https://review.openstack.org/#q,topic:improve-baremetal-unittest,n,z

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.