Improve image unittest framework of the OSC
The current unittest framework about image mainly has two drawbacks, hardcode for the faking image and only one faking image can be faked. So, this BP attempts to improve this test framework with two steps:
1. add FakeImage, and then with it user can generate more than faking image and all image info is generated by random.
2. add multi-image testcases (e.g. TestImageDelete) and refactor the legacy unit tests about image with new framework.
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Introduce FakeImage class
Gerrit topic: https:/
Addressed by: https:/
Use FakeImage in server test cases.
Addressed by: https:/
Add "properties" into FakeImage class
Addressed by: https:/
Refactor TestImageDelete with FakeImage
Addressed by: https:/
Add multi deletion testcase for "openstack image delete"
Addressed by: https:/
Refactor TestImageCreate with FakeImage class
Addressed by: https:/
Refactor TestAddProjectT
Addressed by: https:/
Refactor TestImageList with FakeImage class
Addressed by: https:/
Refactor TestRemoveProje
Addressed by: https:/
Refactor TestAddProjectT
Addressed by: https:/
Refactor TestImageList with FakeImage class
Addressed by: https:/
Refactor TestRemoveProje
Addressed by: https:/
Refactor image v1 unit tests with FakeImage class