示例#1
0
 def setUp(self):
     super(TestDBInconsistenciesPeriodics, self).setUp()
     self.net = self._make_network(
         self.fmt, name='net1', admin_state_up=True)['network']
     self.port = self._make_port(
         self.fmt, self.net['id'], name='port1')['port']
     self.fake_ovn_client = mock.Mock()
     self.periodic = maintenance.DBInconsistenciesPeriodics(
         self.fake_ovn_client)
     self.ctx = context.get_admin_context()
示例#2
0
 def setUp(self):
     super(_TestMaintenanceHelper, self).setUp()
     self._ovn_client = self.mech_driver._ovn_client
     self._l3_ovn_client = self.l3_plugin._ovn_client
     ext_mgr = test_extraroute.ExtraRouteTestExtensionManager()
     self.ext_api = test_extensions.setup_extensions_middleware(ext_mgr)
     self.maint = maintenance.DBInconsistenciesPeriodics(self._ovn_client)
     self.context = n_context.get_admin_context()
     # Always verify inconsistencies for all objects.
     db_rev.INCONSISTENCIES_OLDER_THAN = -1