Tests: Fix up test_volume notify tests
Search for notify calls in a way that ignores extra notifications. Partial-Bug: #1803648 Change-Id: Id9c7991669ee0997c754da61d1f60d3a656606de
This commit is contained in:
parent
6912b5f246
commit
d4c8a792da
@ -319,7 +319,8 @@ class VolumeTestCase(base.BaseVolumeTestCase):
|
|||||||
|
|
||||||
self.assert_notify_called(mock_notify,
|
self.assert_notify_called(mock_notify,
|
||||||
(['INFO', 'volume.create.start'],
|
(['INFO', 'volume.create.start'],
|
||||||
['INFO', 'volume.create.end']))
|
['INFO', 'volume.create.end']),
|
||||||
|
any_order=True)
|
||||||
self.assertEqual({'_pool0': {'allocated_capacity_gb': 1}},
|
self.assertEqual({'_pool0': {'allocated_capacity_gb': 1}},
|
||||||
self.volume.stats['pools'])
|
self.volume.stats['pools'])
|
||||||
|
|
||||||
@ -332,7 +333,8 @@ class VolumeTestCase(base.BaseVolumeTestCase):
|
|||||||
(['INFO', 'volume.create.start'],
|
(['INFO', 'volume.create.start'],
|
||||||
['INFO', 'volume.create.end'],
|
['INFO', 'volume.create.end'],
|
||||||
['INFO', 'volume.delete.start'],
|
['INFO', 'volume.delete.start'],
|
||||||
['INFO', 'volume.delete.end']))
|
['INFO', 'volume.delete.end']),
|
||||||
|
any_order=True)
|
||||||
self.assertEqual({'_pool0': {'allocated_capacity_gb': 0}},
|
self.assertEqual({'_pool0': {'allocated_capacity_gb': 0}},
|
||||||
self.volume.stats['pools'])
|
self.volume.stats['pools'])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user