Browse Source

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

tags/18.2.2
Zuul 1 month ago
parent
commit
77eb9ce035
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

@@ -752,6 +752,7 @@ class TestInstanceNotificationSample(
752 752
 
753 753
         self.api.post_server_action(server['id'], {'unshelve': None})
754 754
         self._wait_for_state_change(self.api, server, 'ACTIVE')
755
+        self._wait_for_notification('instance.unshelve.end')
755 756
 
756 757
     def _test_unshelve_server(self, server):
757 758
         # setting the shelved_offload_time to 0 should set the
@@ -769,6 +770,7 @@ class TestInstanceNotificationSample(
769 770
         post = {'unshelve': None}
770 771
         self.api.post_server_action(server['id'], post)
771 772
         self._wait_for_state_change(self.admin_api, server, 'ACTIVE')
773
+        self._wait_for_notification('instance.unshelve.end')
772 774
         self.assertEqual(7, len(fake_notifier.VERSIONED_NOTIFICATIONS))
773 775
         self._verify_notification(
774 776
             'instance-unshelve-start',

Loading…
Cancel
Save