Browse Source

[stable/ocata ONLY] Fix functional tests

Closes-Bug: #1793915
Change-Id: Icd0a420731663dd15ce584b481f4d85d50c943a2
Needed-By: https://review.openstack.org/#/c/516926/
tags/4.0.2
Goutham Pacha Ravi 8 months ago
parent
commit
ca15a645a1

+ 0
- 3
manila_tempest_tests/tests/api/admin/test_quotas.py View File

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

+ 0
- 3
manila_tempest_tests/tests/api/admin/test_quotas_negative.py View File

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

+ 2
- 1
manila_tempest_tests/tests/api/base.py View File

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

Loading…
Cancel
Save