[stable/ocata ONLY] Fix functional tests

Closes-Bug: #1793915
Change-Id: Icd0a420731663dd15ce584b481f4d85d50c943a2
Needed-By: https://review.openstack.org/#/c/516926/
This commit is contained in:
Goutham Pacha Ravi 2018-09-23 13:58:59 -07:00 committed by Tom Barron
parent f4f960b9ac
commit ca15a645a1
3 changed files with 2 additions and 7 deletions

View File

@ -78,9 +78,6 @@ class SharesAdminQuotasUpdateTest(base.BaseSharesAdminTest):
# create share type
cls.share_type = cls._create_share_type()
cls.share_type_id = cls.share_type['id']
# create share group type
cls.share_group_type = cls._create_share_group_type()
cls.share_group_type_id = cls.share_group_type['id']
def setUp(self):
super(self.__class__, self).setUp()

View File

@ -39,9 +39,6 @@ class SharesAdminQuotasNegativeTest(base.BaseSharesAdminTest):
# create share type
cls.share_type = cls._create_share_type()
cls.share_type_id = cls.share_type['id']
# create share group type
cls.share_group_type = cls._create_share_group_type()
cls.share_group_type_id = cls.share_group_type['id']
@tc.attr(base.TAG_NEGATIVE, base.TAG_API)
def test_get_quotas_with_empty_tenant_id(self):

View File

@ -1012,7 +1012,8 @@ class BaseSharesAdminTest(BaseSharesTest):
def setup_clients(cls):
super(BaseSharesAdminTest, cls).setup_clients()
# Initialise share clients
cls.admin_shares_v2_client = cls.os_admin.share_v2.SharesV2Client()
cls.admin_shares_v2_client = shares_v2_client.SharesV2Client(
cls.os_admin.auth_provider)
@classmethod
def _create_share_type(cls, specs=None):