Merge "Workaround SDK bug in listing shares"

This commit is contained in:
Zuul 2022-04-13 11:57:44 +00:00 committed by Gerrit Code Review
commit f971f32781
3 changed files with 9 additions and 1 deletions

View File

@ -88,6 +88,7 @@ def manilaclient(request):
def share_list(request, search_opts=None):
search_opts = search_opts or {}
return manilaclient(request).shares.list(search_opts=search_opts)

View File

@ -33,6 +33,7 @@ class ManilaApiTests(base.APITestCase):
@ddt.data(
{},
None,
{"name": "fake_share"},
{"limit": "3"},
{"host": "fake_share_host"},
@ -44,8 +45,9 @@ class ManilaApiTests(base.APITestCase):
self.assertEqual(
self.manilaclient.shares.list.return_value, result)
expected_kwargs = kwargs or {}
self.manilaclient.shares.list.assert_called_once_with(
search_opts=kwargs)
search_opts=expected_kwargs)
def test_share_get(self):
api.share_get(self.request, self.id)

View File

@ -0,0 +1,5 @@
---
fixes:
- |
`Bug #1967312 <https://launchpad.net/bugs/1967312>`_ that caused the
shares dashboard to fail loading has now been fixed.