define rand name format and cleanup the irregular rand name

Registered by Zhikun Liu

Tempest test cases have lots of rand name for test resources. Names are generated by helper function 'data_utils.rand_name()'. But name's format in each test cases are different. This blueprint proposes to define a standard name format for rand names and cleanup the irregular names in the existent test cases. Finally, each test class could have unique name for test data.

The good examples for rand name:
api/compute/base.py: name = data_utils.rand_name(cls.__name__ + "-instance")
api/compute/base.py: name = data_utils.rand_name(cls.__name__ + "-image")

cls.__name__ + '-' + resource_type is a good format.

Benefit of using standard:
1. could help quickly find test resources of test class in log file
2. sometimes test data is not cleaned up after Tempest running. the standard name could help figure out which test cases does not cleanup test data.
3. make test resource name looks better in tempest code.

Blueprint information

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

Related branches

Sprints

Whiteboard

I've added the idea as a TODO item in https://blueprints.launchpad.net/tempest/+spec/stop-leaking and intend to close this.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.