Fill name param in create_test_server
When calling create_test_server without name specified,
the resouce name will be something like 'tempest.common.compute-
instance-244552854', and it is hard to distinguish the testcase
from such kind of name. This is to fill name in create_test_server
which uses testcase name as prefix to help debugging.
Change-Id: I4fbc1e984e833824b820421a03d99e3a475fad3a
diff --git a/tempest/api/compute/base.py b/tempest/api/compute/base.py
index 5e75493..27afff3 100644
--- a/tempest/api/compute/base.py
+++ b/tempest/api/compute/base.py
@@ -219,6 +219,8 @@
:param validatable: Whether the server will be pingable or sshable.
:param volume_backed: Whether the instance is volume backed or not.
"""
+ if 'name' not in kwargs:
+ kwargs['name'] = data_utils.rand_name(cls.__name__ + "-server")
tenant_network = cls.get_tenant_network()
body, servers = compute.create_test_server(
cls.os,