Replace display_name by name in scenario manager
'display_name' attribute has been used when calling create_volume
and create_volume_snapshot methods instead of the 'name' which
is the current attribute name based on the current documentation.
[1] https://docs.openstack.org/api-ref/block-storage/v3/
?expanded=create-a-volume-detail#create-a-volume
[2] https://docs.openstack.org/api-ref/block-storage/v3/
?expanded=create-a-snapshot-detail#volume-snapshots-snapshots
Change-Id: Ie22ac7214e77c95ccd03935ffb230241218c08f1
diff --git a/tempest/scenario/manager.py b/tempest/scenario/manager.py
index ff860d5..d2f2c44 100644
--- a/tempest/scenario/manager.py
+++ b/tempest/scenario/manager.py
@@ -326,7 +326,7 @@
size = max(size, min_disk)
if name is None:
name = data_utils.rand_name(self.__class__.__name__ + "-volume")
- kwargs = {'display_name': name,
+ kwargs = {'name': name,
'snapshot_id': snapshot_id,
'imageRef': imageRef,
'volume_type': volume_type,
@@ -422,7 +422,7 @@
snapshot = self.snapshots_client.create_snapshot(
volume_id=volume_id,
force=force,
- display_name=name,
+ name=name,
description=description,
metadata=metadata)['snapshot']