Merge "Revert "Refactor random naming""
This commit is contained in:
commit
0557acd998
@ -346,8 +346,10 @@ class ScenarioTest(tempest.test.BaseTestCase):
|
||||
def create_volume_type(self, client=None, name=None, backend_name=None):
|
||||
if not client:
|
||||
client = self.os_admin.volume_types_client_latest
|
||||
randomized_name = name or data_utils.rand_name(
|
||||
'volume-type-' + self.__class__.__name__)
|
||||
if not name:
|
||||
class_name = self.__class__.__name__
|
||||
name = data_utils.rand_name(class_name + '-volume-type')
|
||||
randomized_name = data_utils.rand_name('scenario-type-' + name)
|
||||
|
||||
LOG.debug("Creating a volume type: %s on backend %s",
|
||||
randomized_name, backend_name)
|
||||
|
Loading…
Reference in New Issue
Block a user