def test_port_update_event_on_data_plane_status(self):
     expect_notify = set(['port.update.start',
                          'port.update.end'])
     with self.port(name='port1') as port:
         self._update(port_def.COLLECTION_NAME, port['port']['id'],
                      {'port': {dps_lib.DATA_PLANE_STATUS:
                                constants.ACTIVE}})
         notify = set(n['event_type'] for n in fake_notifier.NOTIFICATIONS)
         duplicated_notify = expect_notify & notify
         self.assertEqual(expect_notify, duplicated_notify)
         fake_notifier.reset()
 def test_port_update_event_on_data_plane_status(self):
     expect_notify = set(['port.update.start',
                          'port.update.end'])
     with self.port(name='port1') as port:
         self._update(attrs.PORTS, port['port']['id'],
                      {'port': {dps_lib.DATA_PLANE_STATUS:
                                constants.ACTIVE}})
         notify = set(n['event_type'] for n in fake_notifier.NOTIFICATIONS)
         duplicated_notify = expect_notify & notify
         self.assertEqual(expect_notify, duplicated_notify)
         fake_notifier.reset()
 def setUp(self, core_plugin=None, dm_plugin=None, ext_mgr=None):
     super(HostingDeviceConfigAgentNotifierTestCase, self).setUp(
         core_plugin, dm_plugin, ext_mgr)
     fake_notifier.reset()
Esempio n. 4
0
 def setUp(self):
     super(TestFirewallPluginBase, self).setUp(fw_plugin=FW_PLUGIN_KLASS)
     fake_notifier.reset()
 def setUp(self):
     super(TestFirewallPluginBasev2, self).setUp(fw_plugin=FW_PLUGIN_KLASS)
     fake_notifier.reset()
     mock.patch.object(self.plugin,
                       '_is_supported_by_fw_l2_driver',
                       return_value=True).start()
Esempio n. 6
0
    def _test_notification_report(self, expect_notify):
        notify = set(n['event_type'] for n in fake_notifier.NOTIFICATIONS)
        duplicated_notify = expect_notify & notify
        self.assertEqual(expect_notify, duplicated_notify)

        fake_notifier.reset()
Esempio n. 7
0
    def _test_notification_report(self, expect_notify):
        notify = set(n['event_type'] for n in fake_notifier.NOTIFICATIONS)
        duplicated_notify = expect_notify & notify
        self.assertEqual(expect_notify, duplicated_notify)

        fake_notifier.reset()
 def setUp(self, core_plugin=None, dm_plugin=None, ext_mgr=None):
     super(HostingDeviceConfigAgentNotifierTestCase, self).setUp(core_plugin, dm_plugin, ext_mgr)
     fake_notifier.reset()
 def setUp(self):
     super(TestFirewallPluginBase, self).setUp(fw_plugin=FW_PLUGIN_KLASS)
     fake_notifier.reset()