After run manila tempest the share network residue
After run manila tempest with multi-tenancy, there have
manila share network residue. This manila share network
should be deleted in clear resources.
Change-Id: Ifedc595f8c0c754355861f25f1b6af9353d644f8
Closes-Bug:#1754588
(cherry picked from commit 01c7feed86db36d0ea11ec3db75aae15a62baee8)
(cherry picked from commit 608a0450b2
)
This commit is contained in:
parent
2ae3ae7f9f
commit
6e7d1e8d8b
@ -273,6 +273,12 @@ class BaseSharesTest(test.BaseTestCase):
|
|||||||
cls.shares_v2_client, os.networks_client)
|
cls.shares_v2_client, os.networks_client)
|
||||||
cls.shares_client.share_network_id = share_network_id
|
cls.shares_client.share_network_id = share_network_id
|
||||||
cls.shares_v2_client.share_network_id = share_network_id
|
cls.shares_v2_client.share_network_id = share_network_id
|
||||||
|
resource = {
|
||||||
|
"type": "share_network",
|
||||||
|
"id": share_network_id,
|
||||||
|
"client": cls.shares_v2_client,
|
||||||
|
}
|
||||||
|
cls.class_resources.insert(0, resource)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def resource_setup(cls):
|
def resource_setup(cls):
|
||||||
@ -1059,6 +1065,13 @@ class BaseSharesMixedTest(BaseSharesTest):
|
|||||||
cls.alt_shares_client.share_network_id = alt_share_network_id
|
cls.alt_shares_client.share_network_id = alt_share_network_id
|
||||||
cls.alt_shares_v2_client.share_network_id = alt_share_network_id
|
cls.alt_shares_v2_client.share_network_id = alt_share_network_id
|
||||||
|
|
||||||
|
resource = {
|
||||||
|
"type": "share_network",
|
||||||
|
"id": alt_share_network_id,
|
||||||
|
"client": cls.alt_shares_v2_client,
|
||||||
|
}
|
||||||
|
cls.class_resources.insert(0, resource)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _create_share_type(cls, specs=None):
|
def _create_share_type(cls, specs=None):
|
||||||
name = data_utils.rand_name("unique_st_name")
|
name = data_utils.rand_name("unique_st_name")
|
||||||
|
Loading…
Reference in New Issue
Block a user