Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (aurum)vagrant@precise32:/opt/graphyte/aurum/aurum/tests/integration$ nosetests test_user.py --with-progressive
- /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py:475: SAWarning: Unicode type received non-unicode bind param value.
- processors[key](compiled_params[key])
- ERROR: test_user:TestRegisterUserIntegration.test_register_user_successful_write_to_database_query_is_not_none
- vi +39 test_user.py # test_register_user_successful_write_to_database_query_is_not_none
- register_user('1', self.password, self.masteru, self.masterp)
- vi +151 /opt/graphyte/aurum/aurum/user.py # register_user
- result = _add_user_to_aurum(user_id, username, password, DBSession)
- vi +40 /opt/graphyte/aurum/aurum/user.py # _add_user_to_aurum
- return {'user_id': user_id, 'shared_key': shared_key}
- vi +116 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_manager.py # __exit__
- self.commit()
- vi +107 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_manager.py # commit
- return self.get().commit()
- vi +354 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_transaction.py # commit
- reraise(t, v, tb)
- vi +345 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_transaction.py # commit
- self._commitResources()
- vi +493 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_transaction.py # _commitResources
- reraise(t, v, tb)
- vi +465 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_transaction.py # _commitResources
- rm.tpc_begin(self)
- vi +86 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/zope/sqlalchemy/datamanager.py # tpc_begin
- self.session.flush()
- vi +1583 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py # flush
- self._flush(objects)
- vi +1654 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py # _flush
- flush_context.execute()
- vi +331 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.py # execute
- rec.execute(self)
- vi +475 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.py # execute
- uow
- vi +64 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/persistence.py # save_obj
- table, insert)
- vi +558 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/persistence.py # _emit_insert_statements
- execute(statement, params)
- vi +1449 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py # execute
- params)
- vi +1584 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py # _execute_clauseelement
- compiled_sql, distilled_params
- vi +1698 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py # _execute_context
- context)
- vi +1691 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py # _execute_context
- context)
- vi +331 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py # do_execute
- cursor.execute(statement, parameters)
- IntegrityError: (IntegrityError) duplicate key value violates unique constraint "users_name_key"
- DETAIL: Key (name)=(1) already exists.
- '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'}
- -------------------- >> begin captured logging << --------------------
- txn.-1216849152: DEBUG: new transaction
- txn.-1216849152: DEBUG: abort
- txn.-1216849152: DEBUG: new transaction
- --------------------- >> end captured logging << ---------------------
- ERROR: test_user:TestRegisterUserIntegration.test_register_user_successful_write_to_database_query_user_id_match
- vi +44 test_user.py # test_register_user_successful_write_to_database_query_user_id_match
- register_user(self.username, self.password, self.masteru, self.masterp)
- vi +143 /opt/graphyte/aurum/aurum/user.py # register_user
- if user_exists(username=username):
- vi +92 /opt/graphyte/aurum/aurum/user.py # user_exists
- in_aurum = _user_exists_in_aurum(DBSession, user_id=user_id, username=username)
- vi +63 /opt/graphyte/aurum/aurum/user.py # _user_exists_in_aurum
- user = dbsession.query(User).filter_by(name=username, user_id=user_id).first()
- vi +2156 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py # first
- ret = list(self[0:1])
- vi +2023 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py # __getitem__
- return list(res)
- vi +2227 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py # __iter__
- return self._execute_and_instances(context)
- vi +2240 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py # _execute_and_instances
- close_with_result=True)
- vi +2231 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py # _connection_from_session
- **kw)
- vi +730 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py # connection
- close_with_result=close_with_result)
- vi +734 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py # _connection_for_bind
- return self.transaction._connection_for_bind(engine)
- vi +278 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py # _connection_for_bind
- self.session.dispatch.after_begin(self.session, self, conn)
- vi +291 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/event.py # __call__
- fn(*args, **kw)
- vi +221 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/zope/sqlalchemy/datamanager.py # after_begin
- join_transaction(session, self.initial_state, self.transaction_manager)
- vi +198 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/zope/sqlalchemy/datamanager.py # join_transaction
- transaction_manager.get().join(DataManager(session, initial_state, transaction_manager))
- vi +222 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_transaction.py # join
- self._prior_operation_failed() # doesn't return
- vi +216 /opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_transaction.py # _prior_operation_failed
- self._failure_traceback.getvalue())
- TransactionFailedError: An operation previously failed, with traceback:
- File "/opt/graphyte/vens/aurum/bin/nosetests", line 9, in <module>
- load_entry_point('nose==1.2.1', 'console_scripts', 'nosetests')()
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/nose/core.py", line 118, in __init__
- **extra_args)
- File "/usr/lib/python2.7/unittest/main.py", line 95, in __init__
- self.runTests()
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/nose/core.py", line 197, in runTests
- result = self.testRunner.run(self.test)
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/noseprogressive/runner.py", line 42, in run
- test(result)
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/nose/suite.py", line 176, in __call__
- return self.run(*arg, **kw)
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/nose/suite.py", line 223, in run
- test(orig)
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/nose/suite.py", line 176, in __call__
- return self.run(*arg, **kw)
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/nose/suite.py", line 223, in run
- test(orig)
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/nose/suite.py", line 176, in __call__
- return self.run(*arg, **kw)
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/nose/suite.py", line 223, in run
- test(orig)
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/nose/case.py", line 45, in __call__
- return self.run(*arg, **kwarg)
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/nose/case.py", line 133, in run
- self.runTest(result)
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/nose/case.py", line 151, in runTest
- test(result)
- File "/usr/lib/python2.7/unittest/case.py", line 391, in __call__
- return self.run(*args, **kwds)
- File "/usr/lib/python2.7/unittest/case.py", line 327, in run
- testMethod()
- File "/opt/graphyte/aurum/aurum/tests/integration/test_user.py", line 39, in test_register_user_successful_write_to_database_query_is_not_none
- register_user('1', self.password, self.masteru, self.masterp)
- File "/opt/graphyte/aurum/aurum/user.py", line 151, in register_user
- result = _add_user_to_aurum(user_id, username, password, DBSession)
- File "/opt/graphyte/aurum/aurum/user.py", line 40, in _add_user_to_aurum
- return {'user_id': user_id, 'shared_key': shared_key}
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_manager.py", line 116, in __exit__
- self.commit()
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_manager.py", line 107, in commit
- return self.get().commit()
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_transaction.py", line 352, in commit
- t, v, tb = self._saveAndGetCommitishError()
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_transaction.py", line 345, in commit
- self._commitResources()
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_transaction.py", line 493, in _commitResources
- reraise(t, v, tb)
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/transaction/_transaction.py", line 465, in _commitResources
- rm.tpc_begin(self)
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/zope/sqlalchemy/datamanager.py", line 86, in tpc_begin
- self.session.flush()
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 1583, in flush
- self._flush(objects)
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 1654, in _flush
- flush_context.execute()
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.py", line 331, in execute
- rec.execute(self)
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.py", line 475, in execute
- uow
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/persistence.py", line 64, in save_obj
- table, insert)
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/orm/persistence.py", line 558, in _emit_insert_statements
- execute(statement, params)
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1449, in execute
- params)
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1584, in _execute_clauseelement
- compiled_sql, distilled_params
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1698, in _execute_context
- context)
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1691, in _execute_context
- context)
- File "/opt/graphyte/vens/aurum/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 331, in do_execute
- cursor.execute(statement, parameters)
- IntegrityError: (IntegrityError) duplicate key value violates unique constraint "users_name_key"
- DETAIL: Key (name)=(1) already exists.
- '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'}
- 3 tests, 0 failures, 2 errors in 4.7s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement