Guest User

Untitled

a guest
Jan 20th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.07 KB | None | 0 0
  1. database authenticates existing account objects - uses passwords to authenticate
  2. + asserts bad password raises Database::Account::PasswordMismatchError
  3. ! asserts good password validates: SQLite3::ConstraintException: account_fields.account_id may not be NULL
  4. Sequel::DatabaseError occurred
  5. SQLite3::ConstraintException: account_fields.account_id may not be NULL
  6. at test/database/core_test.rb:230:in `block (4 levels) in <main>'
  7. at /home/sycobuny/Dropbox/Sources/play/ruby/kythera/lib/kythera/database/account.rb:350:in `authenticate'
  8. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1148:in `update'
  9. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1564:in `update_restricted'
  10. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1494:in `set_restricted'
  11. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1494:in `each'
  12. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1497:in `block in set_restricted'
  13. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:574:in `failed_logins='
  14. at /home/sycobuny/Dropbox/Sources/play/ruby/kythera/lib/kythera/database/account.rb:473:in `[]='
  15. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1148:in `update'
  16. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1565:in `update_restricted'
  17. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1070:in `save_changes'
  18. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1057:in `save'
  19. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1445:in `checked_save_failure'
  20. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1057:in `block in save'
  21. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1457:in `checked_transaction'
  22. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/database/query.rb:208:in `transaction'
  23. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/database/connecting.rb:226:in `synchronize'
  24. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/connection_pool/threaded.rb:84:in `hold'
  25. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/database/query.rb:210:in `block in transaction'
  26. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/database/query.rb:231:in `_transaction'
  27. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1457:in `block in checked_transaction'
  28. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1057:in `block (2 levels) in save'
  29. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1310:in `_save'
  30. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:715:in `around_save'
  31. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1315:in `block in _save'
  32. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:715:in `around_create'
  33. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1318:in `block (2 levels) in _save'
  34. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1264:in `_insert'
  35. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/model/base.rb:1282:in `_insert_raw'
  36. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/dataset/actions.rb:283:in `insert'
  37. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/dataset/actions.rb:560:in `execute_insert'
  38. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/adapters/sqlite.rb:103:in `execute_insert'
  39. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/adapters/sqlite.rb:117:in `_execute'
  40. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/database/connecting.rb:226:in `synchronize'
  41. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/connection_pool/threaded.rb:71:in `hold'
  42. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/adapters/sqlite.rb:127:in `block in _execute'
  43. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/database/logging.rb:28:in `log_yield'
  44. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sequel-3.26.0/lib/sequel/adapters/sqlite.rb:127:in `block (2 levels) in _execute'
  45. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sqlite3-1.3.4/lib/sqlite3/database.rb:134:in `execute'
  46. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sqlite3-1.3.4/lib/sqlite3/database.rb:97:in `prepare'
  47. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sqlite3-1.3.4/lib/sqlite3/database.rb:97:in `ensure in prepare'
  48. at /home/sycobuny/.rvm/gems/ruby-1.9.2-p290@kythera/gems/sqlite3-1.3.4/lib/sqlite3/database.rb:97:in `close'
  49. - asserts cannot re-authenticate - bad pass: expected to raise Database::Account::AlreadyAuthenticatedError, not Sequel::DatabaseError (on line 233 in test/database/core_test.rb)
  50. - asserts cannot re-authenticate - good pass: expected to raise Database::Account::AlreadyAuthenticatedError, not Sequel::DatabaseError (on line 237 in test/database/core_test.rb)
  51.  
  52. 24 passes, 2 failures, 1 errors in 2.016106 seconds
Add Comment
Please, Sign In to add comment