Opened 12 years ago

Closed 12 years ago

#487 closed defect (fixed)

submission tests fail

Reported by: Will Kahn-Greene Owned by:
Priority: major Milestone: 0.3.1
Component: programming Keywords:
Cc: Parent Tickets:

Description

I started with a clean environment. Then I do the following:

  1. apt-get install the packages required
  2. clone the repository
  3. checkout the master branch
  4. build a virtual environment and install packages
  5. run gmg dbupdate
  6. run runtests.sh

I get a bunch of failures with test_submission:

willg@mercury:~/projects/mediagoblin/mediagoblin$ ./runtests.sh 
Using ./bin/nosetests
..............................................EE.EEEEE..............
======================================================================
ERROR: mediagoblin.tests.test_submission.TestSubmission.test_evil_jpg
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_submission.py", line 236, in test_evil_jpg
    self.check_false_image(u'Malicious Upload 2', EVIL_JPG)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_submission.py", line 227, in check_false_image
    **self.upload_data(filename))
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_submission.py", line 76, in do_post
    response = self.test_app.post(url, data, **kwargs)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/app.py", line 803, in post
    content_type=content_type)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/app.py", line 783, in _gen_request
    expect_errors=expect_errors)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/app.py", line 1043, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebOb-1.1.1-py2.7.egg/webob/request.py", line 1082, in get_response
    application, catch_exc_info=True)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebOb-1.1.1-py2.7.egg/webob/request.py", line 1055, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/lint.py", line 174, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/urlmap.py", line 203, in __call__
    return app(environ, start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/Beaker-1.6.4-py2.7.egg/beaker/middleware.py", line 155, in __call__
    return self.wrap_app(environ, session_start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/app.py", line 215, in __call__
    return self.call_backend(environ, start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/app.py", line 202, in call_backend
    response = controller(request)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/decorators.py", line 42, in new_controller_func
    return controller(request, *args, **kwargs)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/submit/views.py", line 120, in submit_start
    process_media = registry.tasks[ProcessMedia.name]
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/celery-3.0.6-py2.7.egg/celery/local.py", line 196, in <lambda>
    __getitem__ = lambda x, i: x._get_current_object()[i]
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/celery-3.0.6-py2.7.egg/celery/app/registry.py", line 20, in __missing__
    raise self.NotRegistered(key)
NotRegistered: '\'mediagoblin.processing.task.ProcessMedia\'\n-------------------- >> begin captured stdout << ---------------------\n-> Initializing main mediagoblin tables... done.\n-> Initializing media type "mediagoblin.media_types.image"... done.\n\n--------------------- >> end captured stdout << ----------------------\n-------------------- >> begin captured logging << --------------------\nmediagoblin.app: INFO: GNU MediaGoblin 0.3.1.dev main server starting\nmediagoblin.app: DEBUG: Using config file /home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_mgoblin_app.ini\nmediagoblin.app: INFO: Setting up plugins.\nmediagoblin.init.plugins: INFO: No plugins to load\nmediagoblin.db.sql.open: DEBUG: Loading mediagoblin.media_types.image.models\nbeaker.container: DEBUG: data file /home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_user_dev/beaker/sessions/data/container_file/7/78/78229c709d00406c9365247aa8e76c8f.cache\nbeaker.container: DEBUG: data file /home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_user_dev/beaker/sessions/data/container_file/7/78/78229c709d00406c9365247aa8e76c8f.cache\n--------------------- >> end captured logging << ---------------------'

======================================================================
ERROR: mediagoblin.tests.test_submission.TestSubmission.test_evil_png
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_submission.py", line 241, in test_evil_png
    self.check_false_image(u'Malicious Upload 3', EVIL_PNG)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_submission.py", line 227, in check_false_image
    **self.upload_data(filename))
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_submission.py", line 76, in do_post
    response = self.test_app.post(url, data, **kwargs)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/app.py", line 803, in post
    content_type=content_type)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/app.py", line 783, in _gen_request
    expect_errors=expect_errors)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/app.py", line 1043, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebOb-1.1.1-py2.7.egg/webob/request.py", line 1082, in get_response
    application, catch_exc_info=True)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebOb-1.1.1-py2.7.egg/webob/request.py", line 1055, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/lint.py", line 174, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/urlmap.py", line 203, in __call__
    return app(environ, start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/Beaker-1.6.4-py2.7.egg/beaker/middleware.py", line 155, in __call__
    return self.wrap_app(environ, session_start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/app.py", line 215, in __call__
    return self.call_backend(environ, start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/app.py", line 202, in call_backend
    response = controller(request)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/decorators.py", line 42, in new_controller_func
    return controller(request, *args, **kwargs)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/submit/views.py", line 120, in submit_start
    process_media = registry.tasks[ProcessMedia.name]
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/celery-3.0.6-py2.7.egg/celery/local.py", line 196, in <lambda>
    __getitem__ = lambda x, i: x._get_current_object()[i]
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/celery-3.0.6-py2.7.egg/celery/app/registry.py", line 20, in __missing__
    raise self.NotRegistered(key)
NotRegistered: '\'mediagoblin.processing.task.ProcessMedia\'\n-------------------- >> begin captured stdout << ---------------------\n-> Initializing main mediagoblin tables... done.\n-> Initializing media type "mediagoblin.media_types.image"... done.\n\n--------------------- >> end captured stdout << ----------------------\n-------------------- >> begin captured logging << --------------------\nmediagoblin.app: INFO: GNU MediaGoblin 0.3.1.dev main server starting\nmediagoblin.app: DEBUG: Using config file /home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_mgoblin_app.ini\nmediagoblin.app: INFO: Setting up plugins.\nmediagoblin.init.plugins: INFO: No plugins to load\nmediagoblin.db.sql.open: DEBUG: Loading mediagoblin.media_types.image.models\nbeaker.container: DEBUG: data file /home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_user_dev/beaker/sessions/data/container_file/2/2b/2bcd59f6337f4ecba34b05ea4b5baed9.cache\nbeaker.container: DEBUG: data file /home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_user_dev/beaker/sessions/data/container_file/2/2b/2bcd59f6337f4ecba34b05ea4b5baed9.cache\n--------------------- >> end captured logging << ---------------------'

======================================================================
ERROR: mediagoblin.tests.test_submission.TestSubmission.test_normal_jpg
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_submission.py", line 119, in test_normal_jpg
    self.check_normal_upload(u'Normal upload 1', GOOD_JPG)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_submission.py", line 107, in check_normal_upload
    **self.upload_data(filename))
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_submission.py", line 76, in do_post
    response = self.test_app.post(url, data, **kwargs)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/app.py", line 803, in post
    content_type=content_type)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/app.py", line 783, in _gen_request
    expect_errors=expect_errors)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/app.py", line 1043, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebOb-1.1.1-py2.7.egg/webob/request.py", line 1082, in get_response
    application, catch_exc_info=True)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebOb-1.1.1-py2.7.egg/webob/request.py", line 1055, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/lint.py", line 174, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/urlmap.py", line 203, in __call__
    return app(environ, start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/Beaker-1.6.4-py2.7.egg/beaker/middleware.py", line 155, in __call__
    return self.wrap_app(environ, session_start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/app.py", line 215, in __call__
    return self.call_backend(environ, start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/app.py", line 202, in call_backend
    response = controller(request)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/decorators.py", line 42, in new_controller_func
    return controller(request, *args, **kwargs)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/submit/views.py", line 120, in submit_start
    process_media = registry.tasks[ProcessMedia.name]
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/celery-3.0.6-py2.7.egg/celery/local.py", line 196, in <lambda>
    __getitem__ = lambda x, i: x._get_current_object()[i]
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/celery-3.0.6-py2.7.egg/celery/app/registry.py", line 20, in __missing__
    raise self.NotRegistered(key)
NotRegistered: '\'mediagoblin.processing.task.ProcessMedia\'\n-------------------- >> begin captured stdout << ---------------------\n-> Initializing main mediagoblin tables... done.\n-> Initializing media type "mediagoblin.media_types.image"... done.\n\n--------------------- >> end captured stdout << ----------------------\n-------------------- >> begin captured logging << --------------------\nmediagoblin.app: INFO: GNU MediaGoblin 0.3.1.dev main server starting\nmediagoblin.app: DEBUG: Using config file /home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_mgoblin_app.ini\nmediagoblin.app: INFO: Setting up plugins.\nmediagoblin.init.plugins: INFO: No plugins to load\nmediagoblin.db.sql.open: DEBUG: Loading mediagoblin.media_types.image.models\nbeaker.container: DEBUG: data file /home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_user_dev/beaker/sessions/data/container_file/7/7f/7f92991f65de4ede9c96d3e479fa8bc8.cache\nbeaker.container: DEBUG: data file /home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_user_dev/beaker/sessions/data/container_file/7/7f/7f92991f65de4ede9c96d3e479fa8bc8.cache\n--------------------- >> end captured logging << ---------------------'

======================================================================
ERROR: mediagoblin.tests.test_submission.TestSubmission.test_normal_png
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_submission.py", line 122, in test_normal_png
    self.check_normal_upload(u'Normal upload 2', GOOD_PNG)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_submission.py", line 107, in check_normal_upload
    **self.upload_data(filename))
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_submission.py", line 76, in do_post
    response = self.test_app.post(url, data, **kwargs)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/app.py", line 803, in post
    content_type=content_type)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/app.py", line 783, in _gen_request
    expect_errors=expect_errors)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/app.py", line 1043, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebOb-1.1.1-py2.7.egg/webob/request.py", line 1082, in get_response
    application, catch_exc_info=True)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebOb-1.1.1-py2.7.egg/webob/request.py", line 1055, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/lint.py", line 174, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/urlmap.py", line 203, in __call__
    return app(environ, start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/Beaker-1.6.4-py2.7.egg/beaker/middleware.py", line 155, in __call__
    return self.wrap_app(environ, session_start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/app.py", line 215, in __call__
    return self.call_backend(environ, start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/app.py", line 202, in call_backend
    response = controller(request)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/decorators.py", line 42, in new_controller_func
    return controller(request, *args, **kwargs)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/submit/views.py", line 120, in submit_start
    process_media = registry.tasks[ProcessMedia.name]
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/celery-3.0.6-py2.7.egg/celery/local.py", line 196, in <lambda>
    __getitem__ = lambda x, i: x._get_current_object()[i]
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/celery-3.0.6-py2.7.egg/celery/app/registry.py", line 20, in __missing__
    raise self.NotRegistered(key)
NotRegistered: '\'mediagoblin.processing.task.ProcessMedia\'\n-------------------- >> begin captured stdout << ---------------------\n-> Initializing main mediagoblin tables... done.\n-> Initializing media type "mediagoblin.media_types.image"... done.\n\n--------------------- >> end captured stdout << ----------------------\n-------------------- >> begin captured logging << --------------------\nmediagoblin.app: INFO: GNU MediaGoblin 0.3.1.dev main server starting\nmediagoblin.app: DEBUG: Using config file /home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_mgoblin_app.ini\nmediagoblin.app: INFO: Setting up plugins.\nmediagoblin.init.plugins: INFO: No plugins to load\nmediagoblin.db.sql.open: DEBUG: Loading mediagoblin.media_types.image.models\nbeaker.container: DEBUG: data file /home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_user_dev/beaker/sessions/data/container_file/9/99/9978f99213034a1d92be1a9b24dfd017.cache\nbeaker.container: DEBUG: data file /home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_user_dev/beaker/sessions/data/container_file/9/99/9978f99213034a1d92be1a9b24dfd017.cache\n--------------------- >> end captured logging << ---------------------'

======================================================================
ERROR: mediagoblin.tests.test_submission.TestSubmission.test_processing
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_submission.py", line 246, in test_processing
    **self.upload_data(BIG_BLUE))
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_submission.py", line 76, in do_post
    response = self.test_app.post(url, data, **kwargs)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/app.py", line 803, in post
    content_type=content_type)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/app.py", line 783, in _gen_request
    expect_errors=expect_errors)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/app.py", line 1043, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebOb-1.1.1-py2.7.egg/webob/request.py", line 1082, in get_response
    application, catch_exc_info=True)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebOb-1.1.1-py2.7.egg/webob/request.py", line 1055, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/lint.py", line 174, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/urlmap.py", line 203, in __call__
    return app(environ, start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/Beaker-1.6.4-py2.7.egg/beaker/middleware.py", line 155, in __call__
    return self.wrap_app(environ, session_start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/app.py", line 215, in __call__
    return self.call_backend(environ, start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/app.py", line 202, in call_backend
    response = controller(request)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/decorators.py", line 42, in new_controller_func
    return controller(request, *args, **kwargs)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/submit/views.py", line 120, in submit_start
    process_media = registry.tasks[ProcessMedia.name]
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/celery-3.0.6-py2.7.egg/celery/local.py", line 196, in <lambda>
    __getitem__ = lambda x, i: x._get_current_object()[i]
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/celery-3.0.6-py2.7.egg/celery/app/registry.py", line 20, in __missing__
    raise self.NotRegistered(key)
NotRegistered: '\'mediagoblin.processing.task.ProcessMedia\'\n-------------------- >> begin captured stdout << ---------------------\n-> Initializing main mediagoblin tables... done.\n-> Initializing media type "mediagoblin.media_types.image"... done.\n\n--------------------- >> end captured stdout << ----------------------\n-------------------- >> begin captured logging << --------------------\nmediagoblin.app: INFO: GNU MediaGoblin 0.3.1.dev main server starting\nmediagoblin.app: DEBUG: Using config file /home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_mgoblin_app.ini\nmediagoblin.app: INFO: Setting up plugins.\nmediagoblin.init.plugins: INFO: No plugins to load\nmediagoblin.db.sql.open: DEBUG: Loading mediagoblin.media_types.image.models\nbeaker.container: DEBUG: data file /home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_user_dev/beaker/sessions/data/container_file/0/04/04870647df6d4dc2b8a4bd199d13cb25.cache\nbeaker.container: DEBUG: data file /home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_user_dev/beaker/sessions/data/container_file/0/04/04870647df6d4dc2b8a4bd199d13cb25.cache\n--------------------- >> end captured logging << ---------------------'

======================================================================
ERROR: Test sniffing mechanism to assert that regular uploads work as intended
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_submission.py", line 209, in test_sniffing
    'file', GOOD_JPG)])
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/app.py", line 803, in post
    content_type=content_type)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/app.py", line 783, in _gen_request
    expect_errors=expect_errors)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/app.py", line 1043, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebOb-1.1.1-py2.7.egg/webob/request.py", line 1082, in get_response
    application, catch_exc_info=True)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebOb-1.1.1-py2.7.egg/webob/request.py", line 1055, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/lint.py", line 174, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/urlmap.py", line 203, in __call__
    return app(environ, start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/Beaker-1.6.4-py2.7.egg/beaker/middleware.py", line 155, in __call__
    return self.wrap_app(environ, session_start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/app.py", line 215, in __call__
    return self.call_backend(environ, start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/app.py", line 202, in call_backend
    response = controller(request)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/decorators.py", line 42, in new_controller_func
    return controller(request, *args, **kwargs)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/submit/views.py", line 120, in submit_start
    process_media = registry.tasks[ProcessMedia.name]
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/celery-3.0.6-py2.7.egg/celery/local.py", line 196, in <lambda>
    __getitem__ = lambda x, i: x._get_current_object()[i]
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/celery-3.0.6-py2.7.egg/celery/app/registry.py", line 20, in __missing__
    raise self.NotRegistered(key)
NotRegistered: '\'mediagoblin.processing.task.ProcessMedia\'\n-------------------- >> begin captured stdout << ---------------------\n-> Initializing main mediagoblin tables... done.\n-> Initializing media type "mediagoblin.media_types.image"... done.\n\n--------------------- >> end captured stdout << ----------------------\n-------------------- >> begin captured logging << --------------------\nmediagoblin.app: INFO: GNU MediaGoblin 0.3.1.dev main server starting\nmediagoblin.app: DEBUG: Using config file /home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_mgoblin_app.ini\nmediagoblin.app: INFO: Setting up plugins.\nmediagoblin.init.plugins: INFO: No plugins to load\nmediagoblin.db.sql.open: DEBUG: Loading mediagoblin.media_types.image.models\nbeaker.container: DEBUG: data file /home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_user_dev/beaker/sessions/data/container_file/8/80/80182035b7104da3b2400be3de742e44.cache\nbeaker.container: DEBUG: data file /home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_user_dev/beaker/sessions/data/container_file/8/80/80182035b7104da3b2400be3de742e44.cache\n--------------------- >> end captured logging << ---------------------'

======================================================================
ERROR: mediagoblin.tests.test_submission.TestSubmission.test_tags
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_submission.py", line 138, in test_tags
    **self.upload_data(GOOD_JPG))
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_submission.py", line 76, in do_post
    response = self.test_app.post(url, data, **kwargs)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/app.py", line 803, in post
    content_type=content_type)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/app.py", line 783, in _gen_request
    expect_errors=expect_errors)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/app.py", line 1043, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebOb-1.1.1-py2.7.egg/webob/request.py", line 1082, in get_response
    application, catch_exc_info=True)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebOb-1.1.1-py2.7.egg/webob/request.py", line 1055, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/WebTest-1.3.4-py2.7.egg/webtest/lint.py", line 174, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/urlmap.py", line 203, in __call__
    return app(environ, start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/Beaker-1.6.4-py2.7.egg/beaker/middleware.py", line 155, in __call__
    return self.wrap_app(environ, session_start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/app.py", line 215, in __call__
    return self.call_backend(environ, start_response)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/app.py", line 202, in call_backend
    response = controller(request)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/decorators.py", line 42, in new_controller_func
    return controller(request, *args, **kwargs)
  File "/home/willg/projects/mediagoblin/mediagoblin/mediagoblin/submit/views.py", line 120, in submit_start
    process_media = registry.tasks[ProcessMedia.name]
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/celery-3.0.6-py2.7.egg/celery/local.py", line 196, in <lambda>
    __getitem__ = lambda x, i: x._get_current_object()[i]
  File "/home/willg/projects/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/celery-3.0.6-py2.7.egg/celery/app/registry.py", line 20, in __missing__
    raise self.NotRegistered(key)
NotRegistered: '\'mediagoblin.processing.task.ProcessMedia\'\n-------------------- >> begin captured stdout << ---------------------\n-> Initializing main mediagoblin tables... done.\n-> Initializing media type "mediagoblin.media_types.image"... done.\n\n--------------------- >> end captured stdout << ----------------------\n-------------------- >> begin captured logging << --------------------\nmediagoblin.app: INFO: GNU MediaGoblin 0.3.1.dev main server starting\nmediagoblin.app: DEBUG: Using config file /home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_mgoblin_app.ini\nmediagoblin.app: INFO: Setting up plugins.\nmediagoblin.init.plugins: INFO: No plugins to load\nmediagoblin.db.sql.open: DEBUG: Loading mediagoblin.media_types.image.models\nbeaker.container: DEBUG: data file /home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_user_dev/beaker/sessions/data/container_file/8/8e/8e14d3c34ceb43d2898eaf9c3a27985d.cache\nbeaker.container: DEBUG: data file /home/willg/projects/mediagoblin/mediagoblin/mediagoblin/tests/test_user_dev/beaker/sessions/data/container_file/8/8e/8e14d3c34ceb43d2898eaf9c3a27985d.cache\n--------------------- >> end captured logging << ---------------------'

----------------------------------------------------------------------
Ran 68 tests in 85.621s

FAILED (errors=7)

Change History (1)

comment:1 by Christopher Allan Webber, 12 years ago

Resolution: fixed
Status: newclosed

"Fixed" by setting mediagoblin's requirements at very specific celery & kombu versions.

Note: See TracTickets for help on using tickets.