summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-06-19 19:09:26 +0000
committerGerrit Code Review <review@openstack.org>2017-06-19 19:09:26 +0000
commit92985a8f27bc723ca1e0dea2d02f85f6155f64bb (patch)
tree745ab9f7b338164bc678957fb23a8fabb9f1ce76
parentc0369ce7e171bc98ed428a4c3dd726c89b1a4a8b (diff)
parent1df940ebdbf13c6fb80d73be4a6a61c323350f26 (diff)
Merge "Fix test_volume_migrate_attached to retype as admin"
-rw-r--r--tempest/scenario/test_volume_migrate_attached.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tempest/scenario/test_volume_migrate_attached.py b/tempest/scenario/test_volume_migrate_attached.py
index 63dc23d..81b71b1 100644
--- a/tempest/scenario/test_volume_migrate_attached.py
+++ b/tempest/scenario/test_volume_migrate_attached.py
@@ -41,6 +41,7 @@ class TestVolumeMigrateRetypeAttached(manager.ScenarioTest):
41 def setup_clients(cls): 41 def setup_clients(cls):
42 super(TestVolumeMigrateRetypeAttached, cls).setup_clients() 42 super(TestVolumeMigrateRetypeAttached, cls).setup_clients()
43 cls.admin_volume_types_client = cls.os_admin.volume_types_v2_client 43 cls.admin_volume_types_client = cls.os_admin.volume_types_v2_client
44 cls.admin_volumes_client = cls.os_admin.volumes_v2_client
44 45
45 @classmethod 46 @classmethod
46 def skip_checks(cls): 47 def skip_checks(cls):
@@ -82,7 +83,7 @@ class TestVolumeMigrateRetypeAttached(manager.ScenarioTest):
82 83
83 def _volume_retype_with_migration(self, volume_id, new_volume_type): 84 def _volume_retype_with_migration(self, volume_id, new_volume_type):
84 migration_policy = 'on-demand' 85 migration_policy = 'on-demand'
85 self.volumes_client.retype_volume( 86 self.admin_volumes_client.retype_volume(
86 volume_id, new_type=new_volume_type, 87 volume_id, new_type=new_volume_type,
87 migration_policy=migration_policy) 88 migration_policy=migration_policy)
88 waiters.wait_for_volume_retype(self.volumes_client, 89 waiters.wait_for_volume_retype(self.volumes_client,