예제 #1
0
 def sb_idl_transaction(self,
                        fake_api,
                        check_error=False,
                        log_errors=True,
                        **kwargs):
     return impl_idl.Transaction(fake_api, self.monitor_sb_idl_con, 60,
                                 check_error, log_errors)
예제 #2
0
 def test_commit_raises_exception_on_timeout(self):
     with mock.patch.object(queue, 'Queue') as mock_queue:
         transaction = impl_idl.Transaction(mock.sentinel, mock.Mock(), 0)
         mock_queue.return_value.get.side_effect = queue.Empty
         with testtools.ExpectedException(api.TimeoutException):
             transaction.commit()
예제 #3
0
 def transaction(self, check_error=False, log_errors=True, **kwargs):
     return impl_idl.Transaction(self, OvsdbNbOvnIdl.ovsdb_connection,
                                 self.ovsdb_timeout, check_error,
                                 log_errors)
예제 #4
0
 def transaction(self, check_error=False, log_errors=True, **kwargs):
     return impl_idl.Transaction(self, self.ovsdb, self.timeout,
                                 check_error, log_errors)