Browse Source

Merge "Stabilize unshelve notification sample tests" into stable/queens

tags/17.0.12
Zuul 1 month ago
parent
commit
b81ac378d3
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      nova/tests/functional/notification_sample_tests/test_instance.py

+ 2
- 0
nova/tests/functional/notification_sample_tests/test_instance.py View File

@@ -631,6 +631,7 @@ class TestInstanceNotificationSample(
631 631
 
632 632
         self.api.post_server_action(server['id'], {'unshelve': None})
633 633
         self._wait_for_state_change(self.api, server, 'ACTIVE')
634
+        self._wait_for_notification('instance.unshelve.end')
634 635
 
635 636
     def _test_unshelve_server(self, server):
636 637
         # setting the shelved_offload_time to 0 should set the
@@ -648,6 +649,7 @@ class TestInstanceNotificationSample(
648 649
         post = {'unshelve': None}
649 650
         self.api.post_server_action(server['id'], post)
650 651
         self._wait_for_state_change(self.admin_api, server, 'ACTIVE')
652
+        self._wait_for_notification('instance.unshelve.end')
651 653
         self.assertEqual(6, len(fake_notifier.VERSIONED_NOTIFICATIONS))
652 654
         self._verify_notification(
653 655
             'instance-unshelve-start',

Loading…
Cancel
Save