kapilt / contentmirror

Automatically exported from code.google.com/p/contentmirror
1 stars 0 forks source link

unit tests fail on 0.6 #76

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. plone 3.3.4 buildout, include contentmirror 0.6 rc3
2. run buildout
3. bin/instance test -s ore.contentmirror

What is the expected output? What do you see instead?
Running tests at level 1
Running unit tests:
  Running:
................................................................................
................................
  Ran 112 tests with 0 failures and 0 errors in 10.816 seconds.
Running ore.contentmirror.ptests.layer.MirrorLayer tests:
/home/bryan/tmp/plone/buildout-cache/eggs/ore.alchemist-0.6.0-py2.4.egg/ore/alch
emist/session.py:49: SADeprecationWarning: The 'transactional' argument to 
sessionmaker() is deprecated; use autocommit=True|False instead.
  transactional=True ) ) )
/home/bryan/tmp/plone/src/collective.solr/src/collective/solr/attributes.py:31: 
DeprecationWarning: The registerIndexableAttribute hook has been deprecated and 
will be
removed in Plone 4.0. Please use the following pattern instead:
  >>> from plone.indexer.decorator import indexer
  >>> @indexer(Interface)
  ... def my_indexer(object):
  ...     return <some value>
 Then register the indexer as an adapter in ZCML:
     <adapter factory='.indexers.my_indexer' name='my_attribute' />
Note that you can (and should) use a more specific interface for your
indexer to ensure that it only applies to a particular content type.

  registerIndexableAttribute('physicalPath', physicalPath)
/home/bryan/tmp/plone/src/collective.solr/src/collective/solr/attributes.py:32: 
DeprecationWarning: The registerIndexableAttribute hook has been deprecated and 
will be
removed in Plone 4.0. Please use the following pattern instead:
  >>> from plone.indexer.decorator import indexer
  >>> @indexer(Interface)
  ... def my_indexer(object):
  ...     return <some value>
 Then register the indexer as an adapter in ZCML:
     <adapter factory='.indexers.my_indexer' name='my_attribute' />
Note that you can (and should) use a more specific interface for your
indexer to ensure that it only applies to a particular content type.

  registerIndexableAttribute('physicalDepth', physicalDepth)
/home/bryan/tmp/plone/src/collective.solr/src/collective/solr/attributes.py:33: 
DeprecationWarning: The registerIndexableAttribute hook has been deprecated and 
will be
removed in Plone 4.0. Please use the following pattern instead:
  >>> from plone.indexer.decorator import indexer
  >>> @indexer(Interface)
  ... def my_indexer(object):
  ...     return <some value>
 Then register the indexer as an adapter in ZCML:
     <adapter factory='.indexers.my_indexer' name='my_attribute' />
Note that you can (and should) use a more specific interface for your
indexer to ensure that it only applies to a particular content type.

  registerIndexableAttribute('parentPaths', parentPaths)
/home/bryan/tmp/plone/buildout-cache/eggs/ore.alchemist-0.6.0-py2.4.egg/ore/alch
emist/introspector.py:22: SADeprecationWarning: the information_schema module 
is deprecated.
  from sqlalchemy.databases import information_schema
/home/bryan/tmp/plone/parts/zope2/lib/python/zope/configuration/xmlconfig.py:323
: DeprecationWarning: zope.app.annotation has moved to zope.annotation. Import 
of zope.app.annotation will become unsupported in Zope 3.5
  __import__(arguments[0])
  Set up Products.PloneTestCase.layer.ZCML in 6.850 seconds.
/home/bryan/tmp/plone/buildout-cache/eggs/Products.PlonePAS-3.12-py2.4.egg/Produ
cts/PlonePAS/setuphandlers.py:39: DeprecationWarning: portal_groups.getGroupIds 
is deprecated and will be removed in Plone 4.0. Use PAS searchGroups instead
  existing = gtool.listGroupIds()
  Set up Products.PloneTestCase.layer.PloneSite
Traceback (most recent call last):
  File "bin/instance", line 146, in ?
    plone.recipe.zope2instance.ctl.main(
  File "/home/bryan/tmp/plone/buildout-cache/eggs/plone.recipe.zope2instance-3.6-py2.4.egg/plone/recipe/zope2instance/ctl.py", line 347, in main
    c.onecmd(" ".join(options.args))
  File "/usr/lib/python2.4/cmd.py", line 219, in onecmd
    return func(arg)
  File "/home/bryan/tmp/plone/buildout-cache/eggs/plone.recipe.zope2instance-3.6-py2.4.egg/plone/recipe/zope2instance/ctl.py", line 314, in do_test
    zope.testing.testrunner.run(defaults, args)
  File "/home/bryan/tmp/plone/parts/zope2/lib/python/zope/testing/testrunner.py", line 271, in run
    failed = not run_with_options(options)
  File "/home/bryan/tmp/plone/parts/zope2/lib/python/zope/testing/testrunner.py", line 433, in run_with_options
    setup_layers, failures, errors)
  File "/home/bryan/tmp/plone/parts/zope2/lib/python/zope/testing/testrunner.py", line 604, in run_layer
    setup_layer(layer, setup_layers)
  File "/home/bryan/tmp/plone/parts/zope2/lib/python/zope/testing/testrunner.py", line 688, in setup_layer
    setup_layer(base, setup_layers)
  File "/home/bryan/tmp/plone/parts/zope2/lib/python/zope/testing/testrunner.py", line 692, in setup_layer
    layer.setUp()
  File "/home/bryan/tmp/plone/buildout-cache/eggs/Products.PloneTestCase-0.9.9-py2.4.egg/Products/PloneTestCase/layer.py", line 33, in setUp
    func(*args, **kw)
  File "/home/bryan/tmp/plone/buildout-cache/eggs/Products.PloneTestCase-0.9.9-py2.4.egg/Products/PloneTestCase/setup.py", line 164, in setupPloneSite
    base_profile, extension_profiles).run()
  File "/home/bryan/tmp/plone/buildout-cache/eggs/Products.PloneTestCase-0.9.9-py2.4.egg/Products/PloneTestCase/setup.py", line 204, in run
    self._setupPloneSite()
  File "/home/bryan/tmp/plone/buildout-cache/eggs/Products.PloneTestCase-0.9.9-py2.4.egg/Products/PloneTestCase/setup.py", line 227, in _setupPloneSite
    self._setupPloneSite_with_genericsetup()
  File "/home/bryan/tmp/plone/buildout-cache/eggs/Products.PloneTestCase-0.9.9-py2.4.egg/Products/PloneTestCase/setup.py", line 246, in _setupPloneSite_with_genericsetup
    self._commit()
  File "/home/bryan/tmp/plone/buildout-cache/eggs/Products.PloneTestCase-0.9.9-py2.4.egg/Products/PloneTestCase/setup.py", line 363, in _commit
    transaction.commit()
  File "/home/bryan/tmp/plone/buildout-cache/eggs/transaction-1.1.1-py2.4.egg/transaction/_manager.py", line 89, in commit
    return self.get().commit()
  File "/home/bryan/tmp/plone/buildout-cache/eggs/transaction-1.1.1-py2.4.egg/transaction/_transaction.py", line 323, in commit
    self._callBeforeCommitHooks()
  File "/home/bryan/tmp/plone/buildout-cache/eggs/transaction-1.1.1-py2.4.egg/transaction/_transaction.py", line 393, in _callBeforeCommitHooks
    hook(*args, **kws)
  File "/home/bryan/tmp/plone/buildout-cache/eggs/ore.contentmirror-0.6.0_rc3-py2.4.egg/ore/contentmirror/operation.py", line 205, in flush
    Session().flush()
  File "/home/bryan/tmp/plone/buildout-cache/eggs/SQLAlchemy-0.5.8-py2.4.egg/sqlalchemy/orm/session.py", line 1354, in flush
    self._flush(objects)
  File "/home/bryan/tmp/plone/buildout-cache/eggs/SQLAlchemy-0.5.8-py2.4.egg/sqlalchemy/orm/session.py", line 1432, in _flush
    flush_context.execute()
  File "/home/bryan/tmp/plone/buildout-cache/eggs/SQLAlchemy-0.5.8-py2.4.egg/sqlalchemy/orm/unitofwork.py", line 261, in execute
    UOWExecutor().execute(self, tasks)
  File "/home/bryan/tmp/plone/buildout-cache/eggs/SQLAlchemy-0.5.8-py2.4.egg/sqlalchemy/orm/unitofwork.py", line 753, in execute
    self.execute_save_steps(trans, task)
  File "/home/bryan/tmp/plone/buildout-cache/eggs/SQLAlchemy-0.5.8-py2.4.egg/sqlalchemy/orm/unitofwork.py", line 773, in execute_save_steps
    self.execute_cyclical_dependencies(trans, task, False)
  File "/home/bryan/tmp/plone/buildout-cache/eggs/SQLAlchemy-0.5.8-py2.4.egg/sqlalchemy/orm/unitofwork.py", line 789, in execute_cyclical_dependencies
    self.execute(trans, [t], isdelete)
  File "/home/bryan/tmp/plone/buildout-cache/eggs/SQLAlchemy-0.5.8-py2.4.egg/sqlalchemy/orm/unitofwork.py", line 753, in execute
    self.execute_save_steps(trans, task)
  File "/home/bryan/tmp/plone/buildout-cache/eggs/SQLAlchemy-0.5.8-py2.4.egg/sqlalchemy/orm/unitofwork.py", line 768, in execute_save_steps
    self.save_objects(trans, task)
  File "/home/bryan/tmp/plone/buildout-cache/eggs/SQLAlchemy-0.5.8-py2.4.egg/sqlalchemy/orm/unitofwork.py", line 759, in save_objects
    task.mapper._save_obj(task.polymorphic_tosave_objects, trans)
  File "/home/bryan/tmp/plone/buildout-cache/eggs/SQLAlchemy-0.5.8-py2.4.egg/sqlalchemy/orm/mapper.py", line 1428, in _save_obj
    c = connection.execute(statement.values(value_params), params)
  File "/home/bryan/tmp/plone/buildout-cache/eggs/SQLAlchemy-0.5.8-py2.4.egg/sqlalchemy/engine/base.py", line 824, in execute
    return Connection.executors[c](self, object, multiparams, params)
  File "/home/bryan/tmp/plone/buildout-cache/eggs/SQLAlchemy-0.5.8-py2.4.egg/sqlalchemy/engine/base.py", line 874, in _execute_clauseelement
    return self.__execute_context(context)
  File "/home/bryan/tmp/plone/buildout-cache/eggs/SQLAlchemy-0.5.8-py2.4.egg/sqlalchemy/engine/base.py", line 896, in __execute_context
    self._cursor_execute(context.cursor, context.statement, context.parameters[0], context=context)
  File "/home/bryan/tmp/plone/buildout-cache/eggs/SQLAlchemy-0.5.8-py2.4.egg/sqlalchemy/engine/base.py", line 950, in _cursor_execute
    self._handle_dbapi_exception(e, statement, parameters, cursor, context)
  File "/home/bryan/tmp/plone/buildout-cache/eggs/SQLAlchemy-0.5.8-py2.4.egg/sqlalchemy/engine/base.py", line 931, in _handle_dbapi_exception
    raise exc.DBAPIError.instance(statement, parameters, e, connection_invalidated=is_disconnect)
sqlalchemy.exc.OperationalError: (OperationalError) no such table: content 
u'INSERT INTO content (id, content_uid, object_type, status, portal_type, 
folder_position, container_id, path, relative_path, title, description, 
subject, location, contributors, creators, creation_date, modification_date, 
effectivedate, expirationdate, language, rights, excludefromnav) VALUES (?, ?, 
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' ['news', 
'711f59a62b687f0cf0775f7a243abb41', 'ATBTreeFolderPeer', 'published', 'Large 
Plone Folder', 61, None, '/plone/news', 'news', 'News', 'Site News', '', '', 
'', 'portal_owner', '2010-10-21 22:21:23.760000', '2010-10-21 22:21:23.844000', 
None, None, '', '', 0]

What version of the product are you using? On what operating system?
0.6.0 rc3, plone 3.3.4, Linux ptr-www 2.6.18-128.1.1.el5 #1 SMP Mon Jan 26 
13:59:00 EST 2009 i686 i686 i386 GNU/Linux

Please provide any additional information below.
tests are not included in 0.6.0 release, so I had to downgrade to rc3 to test

Original issue reported on code.google.com by bry...@pdq.net on 22 Oct 2010 at 4:34

Attachments:

GoogleCodeExporter commented 9 years ago
tested on 0.6.1 with the same result

Original comment by bry...@pdq.net on 29 Oct 2010 at 3:29