예제 #1
0
 def test_register_conductor_existing_fails(self):
     c = utils.get_test_conductor()
     self.dbapi.register_conductor(c)
     self.assertRaises(
             exception.ConductorAlreadyRegistered,
             self.dbapi.register_conductor,
             c)
예제 #2
0
 def test_register_conductor_existing_fails(self):
     c = utils.get_test_conductor()
     self.dbapi.register_conductor(c)
     self.assertRaises(
             exception.ConductorAlreadyRegistered,
             self.dbapi.register_conductor,
             c)
예제 #3
0
 def _create_test_cdr(self, **kwargs):
     c = utils.get_test_conductor(**kwargs)
     return self.dbapi.register_conductor(c)
예제 #4
0
 def test_register_conductor_override(self):
     c = utils.get_test_conductor()
     self.dbapi.register_conductor(c)
     self.dbapi.register_conductor(c, update_existing=True)
예제 #5
0
 def setUp(self):
     super(TestConductorObject, self).setUp()
     self.fake_conductor = utils.get_test_conductor(
                                     updated_at=timeutils.utcnow())
     self.dbapi = db_api.get_instance()
예제 #6
0
 def setUp(self):
     super(TestConductorObject, self).setUp()
     self.fake_conductor = (utils.get_test_conductor(
         updated_at=timeutils.utcnow()))
예제 #7
0
 def setUp(self):
     super(TestConductorObject, self).setUp()
     self.fake_conductor = (
         utils.get_test_conductor(updated_at=timeutils.utcnow()))
예제 #8
0
 def setUp(self):
     super(TestConductorObject, self).setUp()
     self.fake_conductor = utils.get_test_conductor(
         updated_at=timeutils.utcnow())
     self.dbapi = db_api.get_instance()
예제 #9
0
 def _create_test_cdr(self, **kwargs):
     c = utils.get_test_conductor(**kwargs)
     return self.dbapi.register_conductor(c)
예제 #10
0
 def test_register_conductor_override(self):
     c = utils.get_test_conductor()
     self.dbapi.register_conductor(c)
     self.dbapi.register_conductor(c, update_existing=True)