Merge "Add missing filter function in HSP driver"

This commit is contained in:
Jenkins 2016-09-02 17:57:48 +00:00 committed by Gerrit Code Review
commit 108d3b177d
3 changed files with 13 additions and 0 deletions

View File

@ -319,3 +319,6 @@ class HitachiHSPDriver(driver.ShareDriver):
"%(shr_id)s is no longer being managed."),
{'shr_path': share['export_locations'][0]['path'],
'shr_id': share['id']})
def get_default_filter_function(self):
return "share.size >= 128"

View File

@ -413,3 +413,10 @@ class HitachiHSPTestCase(test.TestCase):
rest.HSPRestBackend.get_cluster.assert_called_once_with()
mock__update_share_stats.assert_called_once_with(fakes.stats_data)
self.assertTrue(self.mock_log.info.called)
def test_get_default_filter_function(self):
expected = "share.size >= 128"
actual = self._driver.get_default_filter_function()
self.assertEqual(expected, actual)

View File

@ -0,0 +1,3 @@
---
fixes:
- Added missing default filter function on Hitachi HSP driver.