Remove volume v1 API service client usage
Volume v1 API has been gone since long and Tempest also marked their deprecation since Juno - https://review.openstack.org/#/c/446238/ Now Tempest is removing the deprecated config option and alias for voluem v1 service client in - https://review.openstack.org/#/c/573135/ Before the Tempest patch gets merged, we need to remove all usage of volume v1 things. Change-Id: I1f7e2744816f19a87296206a41b815748cc7273d Needed-By: https://review.openstack.org/#/c/573135/
This commit is contained in:
parent
59d7ba6834
commit
f657712db4
|
@ -72,13 +72,10 @@ class ScenarioTest(tempest.test.BaseTestCase):
|
|||
cls.security_group_rules_client = (
|
||||
cls.os_admin.security_group_rules_client)
|
||||
|
||||
if CONF.volume_feature_enabled.api_v2:
|
||||
cls.volumes_client = cls.os_admin.volumes_v2_client
|
||||
cls.snapshots_client = cls.os_admin.snapshots_v2_client
|
||||
|
||||
if CONF.volume_feature_enabled.api_v1:
|
||||
cls.volumes_client = cls.os_admin.volumes_client
|
||||
cls.snapshots_client = cls.os_admin.snapshots_client
|
||||
if (CONF.volume_feature_enabled.api_v2 or
|
||||
CONF.volume_feature_enabled.api_v3):
|
||||
cls.volumes_client = cls.os_admin.volumes_client_latest
|
||||
cls.snapshots_client = cls.os_admin.snapshots_client_latest
|
||||
|
||||
# ## Test functions library
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue