Advertisement
Guest User

Untitled

a guest
Feb 13th, 2013
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 12.37 KB | None | 0 0
  1. (aurum)vagrant@precise32:/opt/graphyte/aurum/aurum/tests/integration$ nosetests test_user.py --with-progressive
  2. /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py:475: SAWarning: Unicode type received non-unicode bind param value.
  3.   processors[key](compiled_params[key])
  4.  
  5. ERROR: test_user:TestRegisterUserIntegration.test_register_user_successful_write_to_database_query_is_not_none
  6.   vi +39   test_user.py  # test_register_user_successful_write_to_database_query_is_not_none
  7.     register_user('1', self.password, self.masteru, self.masterp)
  8.   vi +151  /opt/graphyte/aurum/aurum/user.py  # register_user
  9.     result = _add_user_to_aurum(user_id, username, password, DBSession)
  10.   vi +40   /opt/graphyte/aurum/aurum/user.py  # _add_user_to_aurum
  11.     return {'user_id': user_id, 'shared_key': shared_key}
  12.   vi +116  /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_manager.py  # __exit__
  13.     self.commit()
  14.   vi +107  /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_manager.py  # commit
  15.     return self.get().commit()
  16.   vi +354  /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_transaction.py  # commit
  17.     reraise(t, v, tb)
  18.   vi +345  /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_transaction.py  # commit
  19.     self._commitResources()
  20.   vi +493  /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_transaction.py  # _commitResources
  21.     reraise(t, v, tb)
  22.   vi +465  /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_transaction.py  # _commitResources
  23.     rm.tpc_begin(self)
  24.   vi +86   /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/zope/sqlalchemy/datamanager.py  # tpc_begin
  25.     self.session.flush()
  26.   vi +1583 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py  # flush
  27.     self._flush(objects)
  28.   vi +1654 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py  # _flush
  29.     flush_context.execute()
  30.   vi +331  /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.py  # execute
  31.     rec.execute(self)
  32.   vi +475  /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.py  # execute
  33.     uow
  34.   vi +64   /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/persistence.py  # save_obj
  35.     table, insert)
  36.   vi +558  /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/persistence.py  # _emit_insert_statements
  37.     execute(statement, params)
  38.   vi +1449 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py  # execute
  39.     params)
  40.   vi +1584 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py  # _execute_clauseelement
  41.     compiled_sql, distilled_params
  42.   vi +1698 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py  # _execute_context
  43.     context)
  44.   vi +1691 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py  # _execute_context
  45.     context)
  46.   vi +331  /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py  # do_execute
  47.     cursor.execute(statement, parameters)
  48. IntegrityError: (IntegrityError) duplicate key value violates unique constraint "users_name_key"
  49. DETAIL:  Key (name)=(1) already exists.
  50.  'INSERT INTO users (user_id, name, hash_key, shared_key, init_vector, is_active) VALUES (%(user_id)s, %(name)s, %(hash_key)s, %(shared_key)s, %(init_vector)s, %(is_active)s) RETURNING users.id' {'user_id': 'uid1234827', 'name': '1', 'is_active': True, 'shared_key': 'f33ff2fedb15ef377a1f4ae6ded0688e', 'init_vector': '7c57f33b0ef063e4b52afdf9f316e0ca', 'hash_key': '3d8fdae28caf983ae6cc'}
  51. -------------------- >> begin captured logging << --------------------
  52. txn.-1216849152: DEBUG: new transaction
  53. txn.-1216849152: DEBUG: abort
  54. txn.-1216849152: DEBUG: new transaction
  55. --------------------- >> end captured logging << ---------------------
  56.  
  57. ERROR: test_user:TestRegisterUserIntegration.test_register_user_successful_write_to_database_query_user_id_match
  58.   vi +44   test_user.py  # test_register_user_successful_write_to_database_query_user_id_match
  59.     register_user(self.username, self.password, self.masteru, self.masterp)
  60.   vi +143  /opt/graphyte/aurum/aurum/user.py  # register_user
  61.     if user_exists(username=username):
  62.   vi +92   /opt/graphyte/aurum/aurum/user.py  # user_exists
  63.     in_aurum = _user_exists_in_aurum(DBSession, user_id=user_id, username=username)
  64.   vi +63   /opt/graphyte/aurum/aurum/user.py  # _user_exists_in_aurum
  65.     user = dbsession.query(User).filter_by(name=username, user_id=user_id).first()
  66.   vi +2156 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py  # first
  67.     ret = list(self[0:1])
  68.   vi +2023 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py  # __getitem__
  69.     return list(res)
  70.   vi +2227 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py  # __iter__
  71.     return self._execute_and_instances(context)
  72.   vi +2240 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py  # _execute_and_instances
  73.     close_with_result=True)
  74.   vi +2231 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py  # _connection_from_session
  75.     **kw)
  76.   vi +730  /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py  # connection
  77.     close_with_result=close_with_result)
  78.   vi +734  /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py  # _connection_for_bind
  79.     return self.transaction._connection_for_bind(engine)
  80.   vi +278  /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py  # _connection_for_bind
  81.     self.session.dispatch.after_begin(self.session, self, conn)
  82.   vi +291  /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/event.py  # __call__
  83.     fn(*args, **kw)
  84.   vi +221  /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/zope/sqlalchemy/datamanager.py  # after_begin
  85.     join_transaction(session, self.initial_state, self.transaction_manager)
  86.   vi +198  /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/zope/sqlalchemy/datamanager.py  # join_transaction
  87.     transaction_manager.get().join(DataManager(session, initial_state, transaction_manager))
  88.   vi +222  /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_transaction.py  # join
  89.     self._prior_operation_failed() # doesn't return
  90.   vi +216  /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_transaction.py  # _prior_operation_failed
  91.     self._failure_traceback.getvalue())
  92. TransactionFailedError: An operation previously failed, with traceback:
  93.  
  94.   File "/opt/graphyte/vens/aurum/bin/nosetests", line 9, in <module>
  95.     load_entry_point('nose==1.2.1', 'console_scripts', 'nosetests')()
  96.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/nose/core.py", line 118, in __init__
  97.     **extra_args)
  98.   File "/usr/lib/python2.7/unittest/main.py", line 95, in __init__
  99.     self.runTests()
  100.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/nose/core.py", line 197, in runTests
  101.     result = self.testRunner.run(self.test)
  102.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/noseprogressive/runner.py", line 42, in run
  103.     test(result)
  104.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/nose/suite.py", line 176, in __call__
  105.     return self.run(*arg, **kw)
  106.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/nose/suite.py", line 223, in run
  107.     test(orig)
  108.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/nose/suite.py", line 176, in __call__
  109.     return self.run(*arg, **kw)
  110.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/nose/suite.py", line 223, in run
  111.     test(orig)
  112.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/nose/suite.py", line 176, in __call__
  113.     return self.run(*arg, **kw)
  114.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/nose/suite.py", line 223, in run
  115.     test(orig)
  116.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/nose/case.py", line 45, in __call__
  117.     return self.run(*arg, **kwarg)
  118.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/nose/case.py", line 133, in run
  119.     self.runTest(result)
  120.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/nose/case.py", line 151, in runTest
  121.     test(result)
  122.   File "/usr/lib/python2.7/unittest/case.py", line 391, in __call__
  123.     return self.run(*args, **kwds)
  124.   File "/usr/lib/python2.7/unittest/case.py", line 327, in run
  125.     testMethod()
  126.   File "/opt/graphyte/aurum/aurum/tests/integration/test_user.py", line 39, in test_register_user_successful_write_to_database_query_is_not_none
  127.     register_user('1', self.password, self.masteru, self.masterp)
  128.   File "/opt/graphyte/aurum/aurum/user.py", line 151, in register_user
  129.     result = _add_user_to_aurum(user_id, username, password, DBSession)
  130.   File "/opt/graphyte/aurum/aurum/user.py", line 40, in _add_user_to_aurum
  131.     return {'user_id': user_id, 'shared_key': shared_key}
  132.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_manager.py", line 116, in __exit__
  133.     self.commit()
  134.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_manager.py", line 107, in commit
  135.     return self.get().commit()
  136.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_transaction.py", line 352, in commit
  137.     t, v, tb = self._saveAndGetCommitishError()
  138.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_transaction.py", line 345, in commit
  139.     self._commitResources()
  140.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_transaction.py", line 493, in _commitResources
  141.     reraise(t, v, tb)
  142.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_transaction.py", line 465, in _commitResources
  143.     rm.tpc_begin(self)
  144.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/zope/sqlalchemy/datamanager.py", line 86, in tpc_begin
  145.     self.session.flush()
  146.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 1583, in flush
  147.     self._flush(objects)
  148.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 1654, in _flush
  149.     flush_context.execute()
  150.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.py", line 331, in execute
  151.     rec.execute(self)
  152.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.py", line 475, in execute
  153.     uow
  154.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/persistence.py", line 64, in save_obj
  155.     table, insert)
  156.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/persistence.py", line 558, in _emit_insert_statements
  157.     execute(statement, params)
  158.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1449, in execute
  159.     params)
  160.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1584, in _execute_clauseelement
  161.     compiled_sql, distilled_params
  162.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1698, in _execute_context
  163.     context)
  164.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1691, in _execute_context
  165.     context)
  166.   File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 331, in do_execute
  167.     cursor.execute(statement, parameters)
  168. IntegrityError: (IntegrityError) duplicate key value violates unique constraint "users_name_key"
  169. DETAIL:  Key (name)=(1) already exists.
  170.  'INSERT INTO users (user_id, name, hash_key, shared_key, init_vector, is_active) VALUES (%(user_id)s, %(name)s, %(hash_key)s, %(shared_key)s, %(init_vector)s, %(is_active)s) RETURNING users.id' {'user_id': 'uid1234827', 'name': '1', 'is_active': True, 'shared_key': 'f33ff2fedb15ef377a1f4ae6ded0688e', 'init_vector': '7c57f33b0ef063e4b52afdf9f316e0ca', 'hash_key': '3d8fdae28caf983ae6cc'}
  171.  
  172.  
  173. 3 tests, 0 failures, 2 errors in 4.7s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement