Skip to content

Commit a718bcc

Browse files
committed
Pre-add functional tests stub to notification testing
Every time a transformed notification merged, other ones are getting merge conflict mainly because of [1]. In this patchset, method calls and method stubs are added in order to avoid merge conflicts in the future. In this patchset, the currently in-queue notifications are added. [1]: https://github.com/openstack/nova/blob/896ee40d27539b3d9de01700176f5ed253d69c83/nova/tests/functional/notification_sample_tests/test_instance.py#L66 Change-Id: I2fed82ca3cd023194b81814ec609c2d2df5e0c03 Implements: bp versioned-notification-transformation-pike
1 parent 1edeef1 commit a718bcc

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

nova/tests/functional/notification_sample_tests/test_instance.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,17 @@ def test_instance_action(self):
7474
self._test_shelve_offload_server,
7575
self._test_unshelve_server,
7676
self._test_resize_server,
77+
self._test_revert_server,
78+
self._test_resize_confirm_server,
7779
self._test_snapshot_server,
7880
self._test_rebuild_server,
7981
self._test_reboot_server,
8082
self._test_reboot_server_error,
83+
self._test_trigger_crash_dump,
84+
self._test_volume_attach_detach_server,
85+
self._test_rescue_server,
86+
self._test_unrescue_server,
87+
self._test_soft_delete_server,
8188
]
8289

8390
for action in actions:
@@ -743,3 +750,24 @@ def test_volume_swap_server_with_error(self):
743750
'reservation_id': server['reservation_id'],
744751
'uuid': server['id']},
745752
actual=fake_notifier.VERSIONED_NOTIFICATIONS[3])
753+
754+
def _test_revert_server(self, server):
755+
pass
756+
757+
def _test_resize_confirm_server(self, server):
758+
pass
759+
760+
def _test_trigger_crash_dump(self, server):
761+
pass
762+
763+
def _test_volume_attach_detach_server(self, server):
764+
pass
765+
766+
def _test_rescue_server(self, server):
767+
pass
768+
769+
def _test_unrescue_server(self, server):
770+
pass
771+
772+
def _test_soft_delete_server(self, server):
773+
pass

0 commit comments

Comments
 (0)