Change test manage share server with invalid id

Changes Tempest test according to Manila manager change 857960 to
prevent a share server to be managed only if its identifier is a
suffix of any existing identifier.

Closes-bug: #1982429
Change-Id: I14df0c9c7326ac49274699dc0ef1adb99570784b
This commit is contained in:
Raffaela Cunha 2022-09-16 20:42:57 +00:00 committed by Felipe Rodrigues
parent 045dd282fa
commit f59050e162
1 changed files with 2 additions and 1 deletions

View File

@ -333,7 +333,8 @@ class ManageShareServersNegativeTest(base.BaseSharesAdminTest):
invalid_params)
# try with part of the identifier
invalid_params['identifier'] = share_server['identifier'].split("-")[2]
invalid_params['identifier'] = (
share_server['identifier'].split("-")[-1])
self.assertRaises(
lib_exc.BadRequest,