Browse Source

Merge "Fix up test_snapshot notify tests"

changes/88/680588/2
Zuul 1 week ago
parent
commit
1ffcbedc31
1 changed files with 6 additions and 3 deletions
  1. 6
    3
      cinder/tests/unit/volume/test_snapshot.py

+ 6
- 3
cinder/tests/unit/volume/test_snapshot.py View File

@@ -118,7 +118,8 @@ class SnapshotTestCase(base.BaseVolumeTestCase):
118 118
 
119 119
         self.assert_notify_called(mock_notify,
120 120
                                   (['INFO', 'volume.create.start'],
121
-                                   ['INFO', 'volume.create.end']))
121
+                                   ['INFO', 'volume.create.end']),
122
+                                  any_order=True)
122 123
 
123 124
         snapshot = create_snapshot(volume['id'], size=volume['size'])
124 125
         snapshot_id = snapshot.id
@@ -131,7 +132,8 @@ class SnapshotTestCase(base.BaseVolumeTestCase):
131 132
                                   (['INFO', 'volume.create.start'],
132 133
                                    ['INFO', 'volume.create.end'],
133 134
                                    ['INFO', 'snapshot.create.start'],
134
-                                   ['INFO', 'snapshot.create.end']))
135
+                                   ['INFO', 'snapshot.create.end']),
136
+                                  any_order=True)
135 137
 
136 138
         self.volume.delete_snapshot(self.context, snapshot)
137 139
         self.assert_notify_called(mock_notify,
@@ -140,7 +142,8 @@ class SnapshotTestCase(base.BaseVolumeTestCase):
140 142
                                    ['INFO', 'snapshot.create.start'],
141 143
                                    ['INFO', 'snapshot.create.end'],
142 144
                                    ['INFO', 'snapshot.delete.start'],
143
-                                   ['INFO', 'snapshot.delete.end']))
145
+                                   ['INFO', 'snapshot.delete.end']),
146
+                                  any_order=True)
144 147
 
145 148
         snap = objects.Snapshot.get_by_id(context.get_admin_context(
146 149
             read_deleted='yes'), snapshot_id)

Loading…
Cancel
Save