Full response for VolumeTypesClient methods
Provide the entire response object for all methods of the
VolumeTypesClient
partially implements: blueprint method-return-value-and-move-service-clients-to-lib
Change-Id: Ie7bc81c0a9c668020797454428757095d7f396d3
diff --git a/tempest/scenario/manager.py b/tempest/scenario/manager.py
index 89b0842..3cfff4d 100644
--- a/tempest/scenario/manager.py
+++ b/tempest/scenario/manager.py
@@ -1281,7 +1281,7 @@
randomized_name = data_utils.rand_name('scenario-type-' + name)
LOG.debug("Creating a volume type: %s", randomized_name)
body = client.create_volume_type(
- randomized_name)
+ randomized_name)['volume_type']
self.assertIn('id', body)
self.addCleanup(client.delete_volume_type, body['id'])
return body
@@ -1297,7 +1297,7 @@
LOG.debug("Creating an encryption type for volume type: %s", type_id)
client.create_encryption_type(
type_id, provider=provider, key_size=key_size, cipher=cipher,
- control_location=control_location)
+ control_location=control_location)['encryption']
class SwiftScenarioTest(ScenarioTest):