See http://yast.suse.de:3334/job/webyast-service-head-i586/883/changes
Changes:
[Josef Reidinger] add service for granting and revoking permissions
[Josef Reidinger] add new files to spec
[Josef Reidinger] grantwebyast rights is not config
[Josef Reidinger] filter nonsuse permission only if no filter is passed
[Josef Reidinger] add granting method to permission model
[Josef Reidinger] add notes to global rake tasks so we can see notes for whole webyast
[Josef Reidinger] fix access to dbus object
[Josef Reidinger] add renewing permission if roles is changed
[Josef Reidinger] add policy file for roles
[Josef Reidinger] change operator to better fir method name
[Josef Reidinger] add permissions check for operation on roles
[Josef Reidinger] add deploy for new files
[Josef Reidinger] properly pack DBus error as backend exception
[Josef Reidinger] add to reke deploy of permissions service
[Josef Reidinger] fix typo in permission service
[Josef Reidinger] fix dbus issue
[Josef Reidinger] fix missing etc requirement and fix access to methods
[Josef Reidinger] Merge branch 'master' of gitorious.org:opensuse/yast-rest-service into role_mgmt
Conflicts:
plugins/roles/test/unit/role_test.rb
------------------------------------------
[...truncated 472 lines...]
(in /src/rest-service/plugins/roles)
* Starting syntax check...
* Done
test/unit/user_test.rb:55: warning: don't put space before argument parentheses
(in /src/rest-service/plugins/users)
* Starting syntax check...
* Done
(in /src/rest-service/plugins/network)
* Starting syntax check...
* Done
(in /src/rest-service/plugins/example_plugin)
* Starting syntax check...
* Done
(in /src/rest-service/plugins/basesystem)
* Starting syntax check...
* Done
(in /src/rest-service/plugins/system)
* Starting syntax check...
* Done
(in /src/rest-service/plugins/administrator)
* Starting syntax check...
* Done
(in /src/rest-service/plugins/registration)
* Starting syntax check...
* Done
(in /src/rest-service/plugins/firewall)
* Starting syntax check...
* Done
(in /src/rest-service/plugins/language)
* Starting syntax check...
* Done
(in /src/rest-service/plugins/software)
* Starting syntax check...
* Done
(in /src/rest-service/plugins/services)
* Starting syntax check...
* Done
(in /src/rest-service/plugins/eulas)
* Starting syntax check...
* Done
(in /src/rest-service/plugins/ntp)
* Starting syntax check...
* Done
(in /src/rest-service/plugins/status)
* Starting syntax check...
* Done
+ check_exit 0
+ '[' -z 0 ']'
+ MYEXIT=0
+ '[' 0 == 0 ']'
+ echo 'exit code: 0 ... good, lets continue'
exit code: 0 ... good, lets continue
+ return
+ export GEM_PATH=/usr/local/lib/ruby/gems/1.8/gems
+ GEM_PATH=/usr/local/lib/ruby/gems/1.8/gems
+ export CI_REPORTS=results
+ CI_REPORTS=results
+ export RAILS_ENV=test
+ RAILS_ENV=test
+ pushd webservice
/src/rest-service/webservice /src/rest-service
+ RAILS_ENV=test
+ rake db:create db:migrate
db/test.sqlite3 already exists
*** WARNING: /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
*** registering plugins ***
(in /src/rest-service/webservice)
== Accounts: migrating =======================================================
-- create_table("accounts", {:force=>true})
-> 0.0047s
== Accounts: migrated (0.0050s) ==============================================
Loaded suite /usr/bin/rake
Started
Finished in 0.000174 seconds.
0 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
+ check_exit 0
+ '[' -z 0 ']'
+ MYEXIT=0
+ '[' 0 == 0 ']'
+ echo 'exit code: 0 ... good, lets continue'
exit code: 0 ... good, lets continue
+ return
+ popd
/src/rest-service
+ '[' -d coverage ']'
+ mkdir coverage
+ [[ rest-service == \r\e\s\t\-\s\e\r\v\i\c\e ]]
+ webservice/test/dbus-launch-simple rake test
(in /src/rest-service)
*** WARNING: /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
*** registering plugins ***
/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/background_status_test.rb" "test/unit/permission_test.rb" "test/unit/base_model_test.rb" "test/unit/yast_service_test.rb" "test/unit/resource_test.rb" "test/unit/restdoc_test.rb" "test/unit/account_test.rb" "test/unit/vendor_setting_test.rb" "test/unit/yast/settings_model_test.rb" "test/unit/yast/config_file_test.rb" "test/unit/yast_roles_test.rb" "test/unit/background_manager_test.rb" "test/unit/brute_force_protection_test.rb"
(in /src/rest-service/webservice)
/usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
*** registering plugins ***
*** registering plugins ***
./test/unit/yast/../../../config/environment.rb:131: warning: already initialized constant USER_ROLES_CONFIG
Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
..................../test/unit/brute_force_protection_test.rb:33: warning: already initialized constant TIMEOUT_ON_FAIL
.../test/unit/brute_force_protection_test.rb:41: warning: already initialized constant TIMEOUT_ON_FAIL
..FEEEE........permission_check2: NoPermissionException
.permission_check2: NoPermissionException
..permission_check2: NoPermissionException
..permission_check2: NoPermissionException
...
Finished in 0.800882 seconds.
1) Failure:
test_exception_handling(PermissionTest)
[/test/unit/permission_test.rb:102:in `test_exception_handling'
activesupport (2.3.5) lib/active_support/testing/setup_and_teardown.rb:62:in `__send__'
activesupport (2.3.5) lib/active_support/testing/setup_and_teardown.rb:62:in `run']:
\"UNKNOWN\"}")> exception expected but was
Class: <NameError>
Message: <"uninitialized constant Permission::Permissions">
---Backtrace---
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:105:in `const_missing'
/src/rest-service/webservice/app/models/permission.rb:74:in `load_permissions'
/src/rest-service/webservice/app/models/permission.rb:49:in `find'
./test/unit/permission_test.rb:103:in `test_exception_handling'
./test/unit/permission_test.rb:102:in `test_exception_handling'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/testing/setup_and_teardown.rb:62:in `__send__'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/testing/setup_and_teardown.rb:62:in `run'
---------------
2) Error:
test_find_all(PermissionTest):
NameError: uninitialized constant Permission::Permissions
activesupport (2.3.5) lib/active_support/dependencies.rb:105:in `const_missing'
app/models/permission.rb:74:in `load_permissions'
app/models/permission.rb:49:in `find'
/test/unit/permission_test.rb:56:in `test_find_all'
activesupport (2.3.5) lib/active_support/testing/setup_and_teardown.rb:62:in `__send__'
activesupport (2.3.5) lib/active_support/testing/setup_and_teardown.rb:62:in `run'
3) Error:
test_find_for_user(PermissionTest):
NameError: uninitialized constant Permission::Permissions
activesupport (2.3.5) lib/active_support/dependencies.rb:105:in `const_missing'
app/models/permission.rb:74:in `load_permissions'
app/models/permission.rb:49:in `find'
/test/unit/permission_test.rb:67:in `test_find_for_user'
activesupport (2.3.5) lib/active_support/testing/setup_and_teardown.rb:62:in `__send__'
activesupport (2.3.5) lib/active_support/testing/setup_and_teardown.rb:62:in `run'
4) Error:
test_find_with_filter(PermissionTest):
NameError: uninitialized constant Permission::Permissions
activesupport (2.3.5) lib/active_support/dependencies.rb:105:in `const_missing'
app/models/permission.rb:74:in `load_permissions'
app/models/permission.rb:49:in `find'
/test/unit/permission_test.rb:80:in `test_find_with_filter'
activesupport (2.3.5) lib/active_support/testing/setup_and_teardown.rb:62:in `__send__'
activesupport (2.3.5) lib/active_support/testing/setup_and_teardown.rb:62:in `run'
5) Error:
test_serialization(PermissionTest):
NameError: uninitialized constant Permission::Permissions
activesupport (2.3.5) lib/active_support/dependencies.rb:105:in `const_missing'
app/models/permission.rb:74:in `load_permissions'
app/models/permission.rb:49:in `find'
/test/unit/permission_test.rb:91:in `test_serialization'
activesupport (2.3.5) lib/active_support/testing/setup_and_teardown.rb:62:in `__send__'
activesupport (2.3.5) lib/active_support/testing/setup_and_teardown.rb:62:in `run'
44 tests, 124 assertions, 1 failures, 4 errors, 0 pendings, 0 omissions, 0 notifications
/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/vendor_settings_controller_test.rb" "test/functional/resources_route_test.rb" "test/functional/error_controller_test.rb" "test/functional/resources_registration_test.rb" "test/functional/resources_controller_test.rb" "test/functional/sessions_controller_test.rb" "test/functional/raising_controller_test.rb" "test/functional/authenticated_system_test.rb" "test/functional/lib_session_test.rb" "test/functional/permissions_controller_test.rb" "test/functional/restdoc_controller_test.rb"
/usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
*** registering plugins ***
./test/functional/../../config/environment.rb:131: warning: already initialized constant USER_ROLES_CONFIG
Session::VERSION <2.4.0>
Session.use_spawn <false>
Session.use_open3 <false>
Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
...........FF.........does_not_exist failed to load: No such file or directory - does_not_exist
...............................
Finished in 12.547816 seconds.
1) Failure:
test_permissions_access_index_json(PermissionsControllerTest)
[actionpack (2.3.5) lib/action_controller/test_case.rb:119:in `clean_backtrace'
/test/functional/permissions_controller_test.rb:73:in `test_permissions_access_index_json'
activesupport (2.3.5) lib/active_support/testing/setup_and_teardown.rb:62:in `__send__'
activesupport (2.3.5) lib/active_support/testing/setup_and_teardown.rb:62:in `run']:
Expected response to be a <:success>, but was <500>
<"">
2) Failure:
test_permissions_access_index_xml(PermissionsControllerTest)
[actionpack (2.3.5) lib/action_controller/test_case.rb:119:in `clean_backtrace'
/test/functional/permissions_controller_test.rb:65:in `test_permissions_access_index_xml'
activesupport (2.3.5) lib/active_support/testing/setup_and_teardown.rb:62:in `__send__'
activesupport (2.3.5) lib/active_support/testing/setup_and_teardown.rb:62:in `run']:
Expected response to be a <:success>, but was <500>
<"">
53 tests, 96 assertions, 2 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
/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!
rake aborted!
Error on execute '/usr/bin/rake test' inside webservice/
/src/rest-service/Rakefile:41
(See full trace by running task with --trace)
++ error_exit 1
++ echo 'ERROR: detected exit code 1'
ERROR: detected exit code 1
++ footer_and_exit 1
++ '[' -z 1 ']'
++ MYEXIT=1
++ '[' 1 == 0 ']'
++ ascii_failed
++ cat
( )
( ) (
) _ )
( \_
_(_\ \)__
(____\___))
build failed
++ echo 'stopping dbus..'
stopping dbus..
++ /etc/init.d/dbus stop
Shutting down D-Bus daemon..done
++ exit 1
... unmounting sys
... unmounting proc
... unmounting pts
[locks-and-latches] Releasing all the locks
[locks-and-latches] All the locks released
Archiving artifacts
Build wasn't successful, skipping saikuro coverage report
Publishing rails stats report...
[workspace] $ rake --silent stats
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org