Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 14th, 2012  |  syntax: None  |  size: 18.02 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. rake test
  2. (in /home/olevy/git/foreman)
  3. /usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/domain_parameter_test.rb" "test/unit/user_fact_test.rb" "test/unit/operatingsystem_test.rb" "test/unit/environment_test.rb" "test/unit/puppetclass_test.rb" "test/unit/usergroup_test.rb" "test/unit/media_test.rb" "test/unit/lookup_key_test.rb" "test/unit/common_parameter_test.rb" "test/unit/report_observer_test.rb" "test/unit/architecture_test.rb" "test/unit/auth_source_test.rb" "test/unit/domain_test.rb" "test/unit/ptable_test.rb" "test/unit/helpers/parameters_helper_test.rb" "test/unit/helpers/statistics_helper_test.rb" "test/unit/helpers/auth_sources_helper_test.rb" "test/unit/helpers/host_groups_helper_test.rb" "test/unit/helpers/puppetclasses_helper_test.rb" "test/unit/helpers/environments_helper_test.rb" "test/unit/helpers/usergroups_helper_test.rb" "test/unit/helpers/dashboard_helper_test.rb" "test/unit/helpers/users_helper_test.rb" "test/unit/helpers/lookup_keys_helper_test.rb" "test/unit/helpers/fact_values_helper_test.rb" "test/unit/helpers/domain_helper_test.rb" "test/unit/helpers/ptables_helper_test.rb" "test/unit/helpers/media_helper_test.rb" "test/unit/helpers/operatingsystem_helper_test.rb" "test/unit/helpers/audit_helper_test.rb" "test/unit/helpers/reports_helper_test.rb" "test/unit/helpers/model_helper_test.rb" "test/unit/helpers/architecture_helper_test.rb" "test/unit/helpers/unattended_helper_test.rb" "test/unit/helpers/home_helper_test.rb" "test/unit/helpers/hosts_helper_test.rb" "test/unit/role_test.rb" "test/unit/subnet_test.rb" "test/unit/parameter_test.rb" "test/unit/report_test.rb" "test/unit/settings_test.rb" "test/unit/user_test.rb" "test/unit/auth_source_ldap_test.rb" "test/unit/host_parameter_test.rb" "test/unit/host_observer_test.rb" "test/unit/host_mailer_test.rb" "test/unit/group_parameter_test.rb" "test/unit/hostgroup_test.rb" "test/unit/fact_value_test.rb" "test/unit/host_test.rb" "test/unit/model_test.rb"
  4. /home/olevy/git/foreman/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010.  Use #requirement
  5. /home/olevy/git/foreman/app/helpers/common_parameters_helper.rb:7: warning: parenthesize argument(s) for future version
  6. ./test/unit/role_test.rb:23: warning: parenthesize argument(s) for future version
  7. ./test/unit/role_test.rb:26: warning: parenthesize argument(s) for future version
  8. ./test/unit/role_test.rb:27: warning: parenthesize argument(s) for future version
  9. Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
  10. Started
  11. .......................................................................................................................................E.......................................
  12. Finished in 4.090701 seconds.
  13.  
  14.   1) Error:
  15. test: Role should name have a valid format. (RoleTest):
  16. NoMethodError: undefined method `size' for /^[\w\s\'\-]*$/i:Regexp
  17.     /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/active_record/matchers/allow_value_matcher.rb:61:in `errors_match?'
  18.     /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/active_record/matchers/allow_value_matcher.rb:43:in `matches?'
  19.     /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/active_record/matchers/validation_matcher.rb:29:in `allows_value_of'
  20.     /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/active_record/matchers/validate_format_of_matcher.rb:54:in `matches?'
  21.     /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/assertions.rb:53:in `assert_accepts'
  22.     /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:324:in `__bind_1283933795_87256'
  23.     /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
  24.     /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `test: Role should name have a valid format. '
  25.  
  26. 175 tests, 289 assertions, 0 failures, 1 errors
  27. /usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/functional/ptables_controller_test.rb" "test/functional/operatingsystems_controller_test.rb" "test/functional/dashboard_controller_test.rb" "test/functional/hosts_controller_test.rb" "test/functional/audits_controller_test.rb" "test/functional/home_controller_test.rb" "test/functional/fact_values_controller_test.rb" "test/functional/medias_controller_test.rb" "test/functional/auth_source_ldaps_controller_test.rb" "test/functional/statistics_controller_test.rb" "test/functional/common_parameters_controller_test.rb" "test/functional/domains_controller_test.rb" "test/functional/unattended_controller_test.rb" "test/functional/usergroups_controller_test.rb" "test/functional/puppetclasses_controller_test.rb" "test/functional/roles_controller_test.rb" "test/functional/lookup_keys_controller_test.rb" "test/functional/architectures_controller_test.rb" "test/functional/reports_controller_test.rb" "test/functional/environments_controller_test.rb" "test/functional/hostgroups_controller_test.rb" "test/functional/users_controller_test.rb" "test/functional/models_controller_test.rb"
  28. /home/olevy/git/foreman/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010.  Use #requirement
  29. /home/olevy/git/foreman/app/helpers/common_parameters_helper.rb:7: warning: parenthesize argument(s) for future version
  30. Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
  31. Started
  32. F.........E...F.........F...............F.........F............F.........F.F.F.F.F.......................F.......F.........F.........F............FFF..........F.........E...............EEEE......F.........F.........
  33. Finished in 10.392229 seconds.
  34.  
  35.   1) Failure:
  36. test: user with viewer rights should fail to edit an architecture. (ArchitecturesControllerTest)
  37.     [/test/functional/architectures_controller_test.rb:58:in `__bind_1283933798_184158'
  38.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
  39.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `test: user with viewer rights should fail to edit an architecture. ']:
  40. <false> is not true.
  41.  
  42.   2) Error:
  43. test: user with viewer rights should fail to edit audit. (AuditsControllerTest):
  44. ActionController::UnknownAction: No action responded to edit. Actions: authorize, deny_access, fact_selected, import_environments, index, per_page, per_page=, and show
  45.     /test/functional/audits_controller_test.rb:21:in `__bind_1283933798_505529'
  46.     /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
  47.     /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `test: user with viewer rights should fail to edit audit. '
  48.  
  49.   3) Failure:
  50. test: user with viewer rights should fail to an edit authentication source. (AuthSourceLdapsControllerTest)
  51.     [/test/functional/auth_source_ldaps_controller_test.rb:58:in `__bind_1283933798_594005'
  52.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
  53.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `test: user with viewer rights should fail to an edit authentication source. ']:
  54. <false> is not true.
  55.  
  56.   4) Failure:
  57. test: user with viewer rights should fail to edit a common parameter. (CommonParametersControllerTest)
  58.     [/test/functional/common_parameters_controller_test.rb:58:in `__bind_1283933798_983463'
  59.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
  60.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `test: user with viewer rights should fail to edit a common parameter. ']:
  61. <false> is not true.
  62.  
  63.   5) Failure:
  64. test: user with viewer rights should fail to edit a domain. (DomainsControllerTest)
  65.     [/test/functional/domains_controller_test.rb:59:in `__bind_1283933799_522325'
  66.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
  67.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `test: user with viewer rights should fail to edit a domain. ']:
  68. <false> is not true.
  69.  
  70.   6) Failure:
  71. test: user with viewer rights should fail to edit an environment. (EnvironmentsControllerTest)
  72.     [/test/functional/environments_controller_test.rb:62:in `__bind_1283933799_861435'
  73.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
  74.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `test: user with viewer rights should fail to edit an environment. ']:
  75. <false> is not true.
  76.  
  77.   7) Failure:
  78. test: user with viewer rights should fail to edit a hostgroup . (HostgroupsControllerTest)
  79.     [/test/functional/hostgroups_controller_test.rb:59:in `__bind_1283933800_362978'
  80.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
  81.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `test: user with viewer rights should fail to edit a hostgroup . ']:
  82. <false> is not true.
  83.  
  84.   8) Failure:
  85. test: user with edit my host rights and domain is set should fail to view host2. (HostsControllerTest)
  86.     [/test/functional/hosts_controller_test.rb:214:in `__bind_1283933800_876215'
  87.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
  88.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `test: user with edit my host rights and domain is set should fail to view host2. ']:
  89. <false> is not true.
  90.  
  91.   9) Failure:
  92. test: user with edit my host rights and facts are set should fail to view host2. (HostsControllerTest)
  93.     [/test/functional/hosts_controller_test.rb:261:in `__bind_1283933801_141254'
  94.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
  95.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `test: user with edit my host rights and facts are set should fail to view host2. ']:
  96. <false> is not true.
  97.  
  98.  10) Failure:
  99. test: user with edit my host rights and hostgroup is set should fail to view host2. (HostsControllerTest)
  100.     [/test/functional/hosts_controller_test.rb:239:in `__bind_1283933801_394455'
  101.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
  102.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `test: user with edit my host rights and hostgroup is set should fail to view host2. ']:
  103. <false> is not true.
  104.  
  105.  11) Failure:
  106. test: user with edit my host rights and ownership is set should fail to view host2. (HostsControllerTest)
  107.     [/test/functional/hosts_controller_test.rb:189:in `__bind_1283933801_669966'
  108.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
  109.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `test: user with edit my host rights and ownership is set should fail to view host2. ']:
  110. <false> is not true.
  111.  
  112.  12) Failure:
  113. test: user with viewer rights should fail to edit a host. (HostsControllerTest)
  114.     [/test/functional/hosts_controller_test.rb:274:in `__bind_1283933801_915935'
  115.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
  116.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `test: user with viewer rights should fail to edit a host. ']:
  117. <false> is not true.
  118.  
  119.  13) Failure:
  120. test: user with viewer rights should fail to edit an external variable. (LookupKeysControllerTest)
  121.     [/test/functional/lookup_keys_controller_test.rb:50:in `__bind_1283933803_444944'
  122.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
  123.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `test: user with viewer rights should fail to edit an external variable. ']:
  124. <false> is not true.
  125.  
  126.  14) Failure:
  127. test: user with viewer rights should fail to edit a media. (MediasControllerTest)
  128.     [/test/functional/medias_controller_test.rb:58:in `__bind_1283933803_727555'
  129.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
  130.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `test: user with viewer rights should fail to edit a media. ']:
  131. <false> is not true.
  132.  
  133.  15) Failure:
  134. test: user with viewer rights should fail to edit a model. (ModelsControllerTest)
  135.     [/test/functional/models_controller_test.rb:58:in `__bind_1283933804_41263'
  136.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
  137.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `test: user with viewer rights should fail to edit a model. ']:
  138. <false> is not true.
  139.  
  140.  16) Failure:
  141. test: user with viewer rights should fail to edit an operating system. (OperatingsystemsControllerTest)
  142.     [/test/functional/operatingsystems_controller_test.rb:61:in `__bind_1283933804_433918'
  143.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
  144.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `test: user with viewer rights should fail to edit an operating system. ']:
  145. <false> is not true.
  146.  
  147.  17) Failure:
  148. test: user with viewer rights should fail to create a partition table. (PtablesControllerTest)
  149.     [/test/functional/ptables_controller_test.rb:74:in `__bind_1283933804_973530'
  150.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
  151.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `test: user with viewer rights should fail to create a partition table. ']:
  152. <false> is not true.
  153.  
  154.  18) Failure:
  155. test: user with viewer rights should fail to delete a partition table. (PtablesControllerTest)
  156.     [/test/functional/ptables_controller_test.rb:69:in `__bind_1283933804_988620'
  157.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
  158.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `test: user with viewer rights should fail to delete a partition table. ']:
  159. <false> is not true.
  160.  
  161.  19) Failure:
  162. test: user with viewer rights should fail to edit a partition table. (PtablesControllerTest)
  163.     [/test/functional/ptables_controller_test.rb:64:in `__bind_1283933805_3157'
  164.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
  165.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `test: user with viewer rights should fail to edit a partition table. ']:
  166. <false> is not true.
  167.  
  168.  20) Failure:
  169. test: user with viewer rights should fail to edit a puppetclass. (PuppetclassesControllerTest)
  170.     [/test/functional/puppetclasses_controller_test.rb:58:in `__bind_1283933805_324694'
  171.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
  172.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `test: user with viewer rights should fail to edit a puppetclass. ']:
  173. <false> is not true.
  174.  
  175.  21) Error:
  176. test: user with viewer rights should fail to edit a report. (ReportsControllerTest):
  177. ActionController::UnknownAction: No action responded to edit. Actions: authorize, create, deny_access, destroy, fact_selected, import_environments, index, per_page, per_page=, and show
  178.     /test/functional/reports_controller_test.rb:84:in `__bind_1283933805_794311'
  179.     /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
  180.     /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `test: user with viewer rights should fail to edit a report. '
  181.  
  182.  22) Error:
  183. test_move_higher(RolesControllerTest):
  184. ActiveRecord::UnknownAttributeError: unknown attribute: move_to
  185.     app/controllers/roles_controller.rb:48:in `edit'
  186.     /test/functional/roles_controller_test.rb:131:in `test_move_higher'
  187.  
  188.  23) Error:
  189. test_move_highest(RolesControllerTest):
  190. ActiveRecord::UnknownAttributeError: unknown attribute: move_to
  191.     app/controllers/roles_controller.rb:48:in `edit'
  192.     /test/functional/roles_controller_test.rb:124:in `test_move_highest'
  193.  
  194.  24) Error:
  195. test_move_lower(RolesControllerTest):
  196. ActiveRecord::UnknownAttributeError: unknown attribute: move_to
  197.     app/controllers/roles_controller.rb:48:in `edit'
  198.     /test/functional/roles_controller_test.rb:138:in `test_move_lower'
  199.  
  200.  25) Error:
  201. test_move_lowest(RolesControllerTest):
  202. ActiveRecord::UnknownAttributeError: unknown attribute: move_to
  203.     app/controllers/roles_controller.rb:48:in `edit'
  204.     /test/functional/roles_controller_test.rb:144:in `test_move_lowest'
  205.  
  206.  26) Failure:
  207. test: user with viewer rights should fail to edit a usergroup. (UsergroupsControllerTest)
  208.     [/test/functional/usergroups_controller_test.rb:58:in `__bind_1283933807_428173'
  209.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
  210.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `test: user with viewer rights should fail to edit a usergroup. ']:
  211. <false> is not true.
  212.  
  213.  27) Failure:
  214. test: user with viewer rights should fail to edit a user. (UsersControllerTest)
  215.     [/test/functional/users_controller_test.rb:96:in `__bind_1283933807_869894'
  216.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
  217.      /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `test: user with viewer rights should fail to edit a user. ']:
  218. <false> is not true.
  219.  
  220. 215 tests, 297 assertions, 21 failures, 6 errors
  221. /usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb"  
  222. Errors running test:units and test:functionals!