コード例 #1
0
ファイル: operation_log.py プロジェクト: openstack/smaug
 def destroy(self):
     with self.obj_as_admin():
         db.operation_log_destroy(self._context, self.id)
コード例 #2
0
 def test_operation_log_destroy(self):
     operation_log = db.operation_log_create(self.ctxt,
                                             self.fake_operation_log)
     db.operation_log_destroy(self.ctxt, operation_log['id'])
     self.assertRaises(exception.OperationLogNotFound, db.operation_log_get,
                       self.ctxt, operation_log['id'])
コード例 #3
0
 def destroy(self):
     with self.obj_as_admin():
         db.operation_log_destroy(self._context, self.id)
コード例 #4
0
ファイル: test_models.py プロジェクト: openstack/smaug
 def test_operation_log_destroy(self):
     operation_log = db.operation_log_create(self.ctxt,
                                             self.fake_operation_log)
     db.operation_log_destroy(self.ctxt, operation_log['id'])
     self.assertRaises(exception.OperationLogNotFound, db.operation_log_get,
                       self.ctxt, operation_log['id'])