Merge "Add missing filter function in HSP driver"
This commit is contained in:
commit
108d3b177d
@ -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"
|
||||
|
@ -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)
|
||||
|
@ -0,0 +1,3 @@
|
||||
---
|
||||
fixes:
|
||||
- Added missing default filter function on Hitachi HSP driver.
|
Loading…
Reference in New Issue
Block a user