From a718bcc7aaf5596af2990a2205eef3264395e9c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Antal?= Date: Tue, 21 Mar 2017 19:10:38 +0100 Subject: [PATCH] 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 --- .../test_instance.py | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/nova/tests/functional/notification_sample_tests/test_instance.py b/nova/tests/functional/notification_sample_tests/test_instance.py index 9bd4ccf6387..2fa28f86d05 100644 --- a/nova/tests/functional/notification_sample_tests/test_instance.py +++ b/nova/tests/functional/notification_sample_tests/test_instance.py @@ -74,10 +74,17 @@ def test_instance_action(self): self._test_shelve_offload_server, self._test_unshelve_server, self._test_resize_server, + self._test_revert_server, + self._test_resize_confirm_server, self._test_snapshot_server, self._test_rebuild_server, self._test_reboot_server, self._test_reboot_server_error, + self._test_trigger_crash_dump, + self._test_volume_attach_detach_server, + self._test_rescue_server, + self._test_unrescue_server, + self._test_soft_delete_server, ] for action in actions: @@ -743,3 +750,24 @@ def test_volume_swap_server_with_error(self): 'reservation_id': server['reservation_id'], 'uuid': server['id']}, actual=fake_notifier.VERSIONED_NOTIFICATIONS[3]) + + def _test_revert_server(self, server): + pass + + def _test_resize_confirm_server(self, server): + pass + + def _test_trigger_crash_dump(self, server): + pass + + def _test_volume_attach_detach_server(self, server): + pass + + def _test_rescue_server(self, server): + pass + + def _test_unrescue_server(self, server): + pass + + def _test_soft_delete_server(self, server): + pass