- rake test
- (in /home/olevy/git/foreman)
- /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"
- /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
- /home/olevy/git/foreman/app/helpers/common_parameters_helper.rb:7: warning: parenthesize argument(s) for future version
- ./test/unit/role_test.rb:23: warning: parenthesize argument(s) for future version
- ./test/unit/role_test.rb:26: warning: parenthesize argument(s) for future version
- ./test/unit/role_test.rb:27: warning: parenthesize argument(s) for future version
- Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
- Started
- .......................................................................................................................................E.......................................
- Finished in 4.090701 seconds.
- 1) Error:
- test: Role should name have a valid format. (RoleTest):
- NoMethodError: undefined method `size' for /^[\w\s\'\-]*$/i:Regexp
- /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?'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/active_record/matchers/allow_value_matcher.rb:43:in `matches?'
- /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'
- /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?'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/assertions.rb:53:in `assert_accepts'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:324:in `__bind_1283933795_87256'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
- /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. '
- 175 tests, 289 assertions, 0 failures, 1 errors
- /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"
- /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
- /home/olevy/git/foreman/app/helpers/common_parameters_helper.rb:7: warning: parenthesize argument(s) for future version
- Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
- Started
- F.........E...F.........F...............F.........F............F.........F.F.F.F.F.......................F.......F.........F.........F............FFF..........F.........E...............EEEE......F.........F.........
- Finished in 10.392229 seconds.
- 1) Failure:
- test: user with viewer rights should fail to edit an architecture. (ArchitecturesControllerTest)
- [/test/functional/architectures_controller_test.rb:58:in `__bind_1283933798_184158'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
- /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. ']:
- <false> is not true.
- 2) Error:
- test: user with viewer rights should fail to edit audit. (AuditsControllerTest):
- ActionController::UnknownAction: No action responded to edit. Actions: authorize, deny_access, fact_selected, import_environments, index, per_page, per_page=, and show
- /test/functional/audits_controller_test.rb:21:in `__bind_1283933798_505529'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
- /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. '
- 3) Failure:
- test: user with viewer rights should fail to an edit authentication source. (AuthSourceLdapsControllerTest)
- [/test/functional/auth_source_ldaps_controller_test.rb:58:in `__bind_1283933798_594005'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
- /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. ']:
- <false> is not true.
- 4) Failure:
- test: user with viewer rights should fail to edit a common parameter. (CommonParametersControllerTest)
- [/test/functional/common_parameters_controller_test.rb:58:in `__bind_1283933798_983463'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
- /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. ']:
- <false> is not true.
- 5) Failure:
- test: user with viewer rights should fail to edit a domain. (DomainsControllerTest)
- [/test/functional/domains_controller_test.rb:59:in `__bind_1283933799_522325'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
- /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. ']:
- <false> is not true.
- 6) Failure:
- test: user with viewer rights should fail to edit an environment. (EnvironmentsControllerTest)
- [/test/functional/environments_controller_test.rb:62:in `__bind_1283933799_861435'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
- /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. ']:
- <false> is not true.
- 7) Failure:
- test: user with viewer rights should fail to edit a hostgroup . (HostgroupsControllerTest)
- [/test/functional/hostgroups_controller_test.rb:59:in `__bind_1283933800_362978'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
- /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 . ']:
- <false> is not true.
- 8) Failure:
- test: user with edit my host rights and domain is set should fail to view host2. (HostsControllerTest)
- [/test/functional/hosts_controller_test.rb:214:in `__bind_1283933800_876215'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
- /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. ']:
- <false> is not true.
- 9) Failure:
- test: user with edit my host rights and facts are set should fail to view host2. (HostsControllerTest)
- [/test/functional/hosts_controller_test.rb:261:in `__bind_1283933801_141254'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
- /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. ']:
- <false> is not true.
- 10) Failure:
- test: user with edit my host rights and hostgroup is set should fail to view host2. (HostsControllerTest)
- [/test/functional/hosts_controller_test.rb:239:in `__bind_1283933801_394455'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
- /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. ']:
- <false> is not true.
- 11) Failure:
- test: user with edit my host rights and ownership is set should fail to view host2. (HostsControllerTest)
- [/test/functional/hosts_controller_test.rb:189:in `__bind_1283933801_669966'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
- /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. ']:
- <false> is not true.
- 12) Failure:
- test: user with viewer rights should fail to edit a host. (HostsControllerTest)
- [/test/functional/hosts_controller_test.rb:274:in `__bind_1283933801_915935'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
- /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. ']:
- <false> is not true.
- 13) Failure:
- test: user with viewer rights should fail to edit an external variable. (LookupKeysControllerTest)
- [/test/functional/lookup_keys_controller_test.rb:50:in `__bind_1283933803_444944'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
- /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. ']:
- <false> is not true.
- 14) Failure:
- test: user with viewer rights should fail to edit a media. (MediasControllerTest)
- [/test/functional/medias_controller_test.rb:58:in `__bind_1283933803_727555'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
- /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. ']:
- <false> is not true.
- 15) Failure:
- test: user with viewer rights should fail to edit a model. (ModelsControllerTest)
- [/test/functional/models_controller_test.rb:58:in `__bind_1283933804_41263'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
- /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. ']:
- <false> is not true.
- 16) Failure:
- test: user with viewer rights should fail to edit an operating system. (OperatingsystemsControllerTest)
- [/test/functional/operatingsystems_controller_test.rb:61:in `__bind_1283933804_433918'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
- /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. ']:
- <false> is not true.
- 17) Failure:
- test: user with viewer rights should fail to create a partition table. (PtablesControllerTest)
- [/test/functional/ptables_controller_test.rb:74:in `__bind_1283933804_973530'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
- /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. ']:
- <false> is not true.
- 18) Failure:
- test: user with viewer rights should fail to delete a partition table. (PtablesControllerTest)
- [/test/functional/ptables_controller_test.rb:69:in `__bind_1283933804_988620'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
- /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. ']:
- <false> is not true.
- 19) Failure:
- test: user with viewer rights should fail to edit a partition table. (PtablesControllerTest)
- [/test/functional/ptables_controller_test.rb:64:in `__bind_1283933805_3157'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
- /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. ']:
- <false> is not true.
- 20) Failure:
- test: user with viewer rights should fail to edit a puppetclass. (PuppetclassesControllerTest)
- [/test/functional/puppetclasses_controller_test.rb:58:in `__bind_1283933805_324694'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
- /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. ']:
- <false> is not true.
- 21) Error:
- test: user with viewer rights should fail to edit a report. (ReportsControllerTest):
- ActionController::UnknownAction: No action responded to edit. Actions: authorize, create, deny_access, destroy, fact_selected, import_environments, index, per_page, per_page=, and show
- /test/functional/reports_controller_test.rb:84:in `__bind_1283933805_794311'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
- /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. '
- 22) Error:
- test_move_higher(RolesControllerTest):
- ActiveRecord::UnknownAttributeError: unknown attribute: move_to
- app/controllers/roles_controller.rb:48:in `edit'
- /test/functional/roles_controller_test.rb:131:in `test_move_higher'
- 23) Error:
- test_move_highest(RolesControllerTest):
- ActiveRecord::UnknownAttributeError: unknown attribute: move_to
- app/controllers/roles_controller.rb:48:in `edit'
- /test/functional/roles_controller_test.rb:124:in `test_move_highest'
- 24) Error:
- test_move_lower(RolesControllerTest):
- ActiveRecord::UnknownAttributeError: unknown attribute: move_to
- app/controllers/roles_controller.rb:48:in `edit'
- /test/functional/roles_controller_test.rb:138:in `test_move_lower'
- 25) Error:
- test_move_lowest(RolesControllerTest):
- ActiveRecord::UnknownAttributeError: unknown attribute: move_to
- app/controllers/roles_controller.rb:48:in `edit'
- /test/functional/roles_controller_test.rb:144:in `test_move_lowest'
- 26) Failure:
- test: user with viewer rights should fail to edit a usergroup. (UsergroupsControllerTest)
- [/test/functional/usergroups_controller_test.rb:58:in `__bind_1283933807_428173'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
- /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. ']:
- <false> is not true.
- 27) Failure:
- test: user with viewer rights should fail to edit a user. (UsersControllerTest)
- [/test/functional/users_controller_test.rb:96:in `__bind_1283933807_869894'
- /usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.11.1/lib/shoulda/context.rb:382:in `call'
- /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. ']:
- <false> is not true.
- 215 tests, 297 assertions, 21 failures, 6 errors
- /usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb"
- Errors running test:units and test:functionals!