On Tue, 14 Jan 2014 23:40:01 -0500, Olemis Lang <[email protected]>
wrote :

> On 1/14/14, Saint Germain <[email protected]> wrote:
> > On Tue, 14 Jan 2014 16:14:06 +0100, Andrej Golcov
> > <[email protected]> wrote :
> >
> [...]
> > I also intend to manually test the search features of Bloodhound in
> > the next days to check if anything is broken by this Whoosh upgrade
> 
> It'd be helpful if you could describe what you did by hand to verify
> the system and document the steps somewhere (in the ticket:741 ?) so
> that we can take the sequence as a reference to complement your patch
> with test cases .
> 

Hello,

I've done some simple tests and add a brief description in the ticket.
I'll try to understand the test structure and code the tests myself
(that would be easier for everybody).

Currently on trunk I got a lot of similar mistakes when running the
test on bloodhound_search like this one:

======================================================================
ERROR: test_admin_granted_in_product_should_not_have_access 
(bhsearch.tests.security.MultiProductSecurityTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/home/user/project/bloodhound/bloodhound_search/bhsearch/tests/security.py", 
line 61, in setUp
    self._setup_multiproduct()
  File 
"/home/user/project/bloodhound/bloodhound_search/bhsearch/tests/security.py", 
line 71, in _setup_multiproduct
    .upgrade_environment(self.env.db_transaction)
  File 
"/home/user/project/bloodhound/bloodhound_multiproduct/multiproduct/api.py", 
line 216, in upgrade_environment
    self._add_column_product_to_ticket(db)
  File 
"/home/user/project/bloodhound/bloodhound_multiproduct/multiproduct/api.py", 
line 260, in _add_column_product_to_ticket
    db("ALTER TABLE ticket ADD COLUMN product TEXT")
  File 
"/home/user/project/bloodhound/bloodhound_multiproduct/multiproduct/dbcursor.py",
 line 120, in execute
    return self.connection.execute(query, params=params)
  File "/home/user/project/bloodhound/trac/trac/db/util.py", line 121, in 
execute
    cursor.execute(query, params)
  File 
"/home/user/project/bloodhound/bloodhound_multiproduct/multiproduct/dbcursor.py",
 line 85, in execute
    return super(BloodhoundIterableCursor, 
self).execute(translate_sql(self.env, sql), args=args)
  File "/home/user/project/bloodhound/trac/trac/db/util.py", line 56, in execute
    r = self.cursor.execute(sql)
  File "/home/user/project/bloodhound/trac/trac/db/sqlite_backend.py", line 78, 
in execute
    result = PyFormatCursor.execute(self, *args)
  File "/home/user/project/bloodhound/trac/trac/db/sqlite_backend.py", line 56, 
in execute
    args or [])
  File "/home/user/project/bloodhound/trac/trac/db/sqlite_backend.py", line 48, 
in _rollback_on_error
    return function(self, *args, **kwargs)
OperationalError: duplicate column name: product

Does that ring a bell to someone ?

Reply via email to