Merge "Tests: Fix up test_volume notify tests"

This commit is contained in:
Zuul 2019-04-09 21:20:47 +00:00 committed by Gerrit Code Review
commit e125e57f1f

View File

@ -319,7 +319,8 @@ class VolumeTestCase(base.BaseVolumeTestCase):
self.assert_notify_called(mock_notify,
(['INFO', 'volume.create.start'],
['INFO', 'volume.create.end']))
['INFO', 'volume.create.end']),
any_order=True)
self.assertEqual({'_pool0': {'allocated_capacity_gb': 1}},
self.volume.stats['pools'])
@ -332,7 +333,8 @@ class VolumeTestCase(base.BaseVolumeTestCase):
(['INFO', 'volume.create.start'],
['INFO', 'volume.create.end'],
['INFO', 'volume.delete.start'],
['INFO', 'volume.delete.end']))
['INFO', 'volume.delete.end']),
any_order=True)
self.assertEqual({'_pool0': {'allocated_capacity_gb': 0}},
self.volume.stats['pools'])