unify instance name generation
Currently, tempest has a util function tempest.
The problem is, some test case use the class name as the prefix, while others use customized name as the prefix.
This raises inconsistency, for example, code in test_multiple_
----
class MultipleCreateT
_interface = 'json'
_name = 'multiple-
....
def _generate_
return rand_name(
----
while code in test_security_
----
@attr(
def test_security_
# positive test: creation of security group rule
# should be successfull
#creating a security group to add rules to it
s_name = rand_name(
resp, securitygroup = \
----
We need a unified server name generation method, and I suggest using the TestCase class name as the prefix.
sdague: this isn't a blueprint, please just handle this as a bug
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- xiaohanyu
- Direction:
- Needs approval
- Assignee:
- xiaohanyu
- Definition:
- Obsolete
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
- Sean Dague