Add prefix 'test' to test name in test_shares

TrivialFix
Change-Id: I5fdf6d89d0b6c7fa182ddfaac60989bc6c0fc2a6
This commit is contained in:
zhongjun 2017-07-07 14:23:54 +08:00
parent 02e79edb9b
commit dadf6efea2
1 changed files with 4 additions and 5 deletions

View File

@ -1613,7 +1613,9 @@ class ShareAPITest(test.TestCase):
{'use_admin_context': True, 'version': '2.4'},
{'use_admin_context': True, 'version': '2.35'},
{'use_admin_context': False, 'version': '2.35'})
def _share_list_detail_with_search_opts(self, use_admin_context, version):
@ddt.unpack
def test_share_list_detail_with_search_opts(self, use_admin_context,
version):
search_opts = {
'name': 'fake_name',
'status': constants.STATUS_AVAILABLE,
@ -1652,6 +1654,7 @@ class ShareAPITest(test.TestCase):
'share_network_id': 'fake_share_network_id',
'share_type_id': 'fake_share_type_id',
},
'has_replicas': False,
},
{'id': 'id3', 'display_name': 'n3'},
]
@ -1707,10 +1710,6 @@ class ShareAPITest(test.TestCase):
self.assertEqual(
shares[1]['instance']['share_network_id'],
result['shares'][0]['share_network_id'])
if (api_version.APIVersionRequest(version) >=
api_version.APIVersionRequest('2.35')):
self.assertEqual(shares[1]['export_location'],
result['shares'][0]['export_location'])
def _list_detail_common_expected(self, admin=False):
share_dict = {