See http://yast.suse.de:3334/job/webyast-service-head-i586/326/changes
Changes:
[Klaus K??mpf] Replace strings with class constants
[Klaus K??mpf] Sample code to access PackageKit via D-Bus
This is meant to test availability of PackageKit on a running system.
[Klaus K??mpf] Factor out and rewrite PackageKit mocking
[Klaus K??mpf] Give variables readable names
[Klaus K??mpf] Provide constants and comments
[Klaus K??mpf] Pass the correct object to DBus::ProxyObjectInterface.new
[Klaus K??mpf] Expect ruby-dbus as a gem
[Klaus K??mpf] Deduce the proxy object from the interface
[Klaus K??mpf] Make PackageKit mocking complete
This commit completes the mocking of PackageKit via D-Bus.
It introduces a PackageKitStub class and a PackageKitResult class.
PackageKitStub covers the complete D-Bus communication, PackageKitResult
the expected results from a function call (i.e. "GetUpdates").
The mocking is complete up to and including the socket level. The
results are sent to the socket and then processed through ruby-dbus,
making it completely transparent to the application.
[Klaus K??mpf] Full SearchName test for PackageKit/D-Bus
This uses PackageKitStub and PackageKitResult to test the 'execute'
method of app/models/resolvables.
[Klaus K??mpf] Add comment on implementation complexity
[Klaus K??mpf] Merge remote branch 'origin/master' into patch_refactor
[Klaus K??mpf] Add full D-Bus mocking
[Klaus K??mpf] Make basesystem.yml optional (bnc#542445)
Additionally, don't make assumptions on how YaST::ConfigFile assembles
the file name.
[Klaus K??mpf] Add details to exceptions if policy cannot be obtained
[Klaus K??mpf] Don't hide SCR D-Bus exceptions
[Klaus K??mpf] Clean up and more logging
[Klaus K??mpf] Fix resource name (bnc#542169)
------------------------------------------
[...truncated 776 lines...]
from /src/rest-service/webservice/lib/tasks/plugin_test/test_helper.rb:12:in `require'
from /src/rest-service/webservice/lib/tasks/plugin_test/test_helper.rb:12
from plugin_test/functional/plugin_show_test.rb:22:in `require'
from plugin_test/functional/plugin_show_test.rb:22
*** ERROR: plugin NtpController does not work correctly
Please try 'export RAILS_PARENT=.; ruby plugin_test/functional/plugin_index_test.rb --plugin NtpController' and check the result
***RAILS_ENV environment variable isn't set !
/usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:365:in `read': No such file or directory - /src/rest-service/webservice/config/environments/.rb (Errno::ENOENT)
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:365:in `load_environment'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:358:in `load_environment'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:137:in `process'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `send'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `run'
from /src/rest-service/webservice/config/environment.rb:22
from /src/rest-service/webservice/lib/tasks/plugin_test/test_helper.rb:12:in `require'
from /src/rest-service/webservice/lib/tasks/plugin_test/test_helper.rb:12
from plugin_test/functional/plugin_index_test.rb:22:in `require'
from plugin_test/functional/plugin_index_test.rb:22
***RAILS_ENV environment variable isn't set !
/usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:365:in `read': No such file or directory - /src/rest-service/webservice/config/environments/.rb (Errno::ENOENT)
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:365:in `load_environment'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:358:in `load_environment'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:137:in `process'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `send'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `run'
from /src/rest-service/webservice/config/environment.rb:22
from /src/rest-service/webservice/lib/tasks/plugin_test/test_helper.rb:12:in `require'
from /src/rest-service/webservice/lib/tasks/plugin_test/test_helper.rb:12
from plugin_test/functional/plugin_show_test.rb:22:in `require'
from plugin_test/functional/plugin_show_test.rb:22
*** ERROR: plugin LogsController does not work correctly
Please try 'export RAILS_PARENT=.; ruby plugin_test/functional/plugin_index_test.rb --plugin LogsController' and check the result
***RAILS_ENV environment variable isn't set !
/usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:365:in `read': No such file or directory - /src/rest-service/webservice/config/environments/.rb (Errno::ENOENT)
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:365:in `load_environment'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:358:in `load_environment'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:137:in `process'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `send'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `run'
from /src/rest-service/webservice/config/environment.rb:22
from /src/rest-service/webservice/lib/tasks/plugin_test/test_helper.rb:12:in `require'
from /src/rest-service/webservice/lib/tasks/plugin_test/test_helper.rb:12
from plugin_test/functional/plugin_index_test.rb:22:in `require'
from plugin_test/functional/plugin_index_test.rb:22
***RAILS_ENV environment variable isn't set !
/usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:365:in `read': No such file or directory - /src/rest-service/webservice/config/environments/.rb (Errno::ENOENT)
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:365:in `load_environment'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:358:in `load_environment'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:137:in `process'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `send'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `run'
from /src/rest-service/webservice/config/environment.rb:22
from /src/rest-service/webservice/lib/tasks/plugin_test/test_helper.rb:12:in `require'
from /src/rest-service/webservice/lib/tasks/plugin_test/test_helper.rb:12
from plugin_test/functional/plugin_show_test.rb:22:in `require'
from plugin_test/functional/plugin_show_test.rb:22
*** ERROR: plugin MetricsController does not work correctly
Please try 'export RAILS_PARENT=.; ruby plugin_test/functional/plugin_index_test.rb --plugin MetricsController' and check the result
***RAILS_ENV environment variable isn't set !
/usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:365:in `read': No such file or directory - /src/rest-service/webservice/config/environments/.rb (Errno::ENOENT)
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:365:in `load_environment'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:358:in `load_environment'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:137:in `process'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `send'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `run'
from /src/rest-service/webservice/config/environment.rb:22
from /src/rest-service/webservice/lib/tasks/plugin_test/test_helper.rb:12:in `require'
from /src/rest-service/webservice/lib/tasks/plugin_test/test_helper.rb:12
from plugin_test/functional/plugin_index_test.rb:22:in `require'
from plugin_test/functional/plugin_index_test.rb:22
***RAILS_ENV environment variable isn't set !
/usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:365:in `read': No such file or directory - /src/rest-service/webservice/config/environments/.rb (Errno::ENOENT)
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:365:in `load_environment'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:358:in `load_environment'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:137:in `process'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `send'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `run'
from /src/rest-service/webservice/config/environment.rb:22
from /src/rest-service/webservice/lib/tasks/plugin_test/test_helper.rb:12:in `require'
from /src/rest-service/webservice/lib/tasks/plugin_test/test_helper.rb:12
from plugin_test/functional/plugin_show_test.rb:22:in `require'
from plugin_test/functional/plugin_show_test.rb:22
*** ERROR: plugin StatusController does not work correctly
Please try 'export RAILS_PARENT=.; ruby plugin_test/functional/plugin_index_test.rb --plugin StatusController' and check the result
*******************************************************
Please, fix the above errors before running the service
*******************************************************
exit code: 0 ... good, lets continue
/src/rest-service
(in /src/rest-service)
(in /src/rest-service/webservice)
* Starting syntax check...
* Done
(in /src/rest-service/plugins/time)
* Starting syntax check...
* Done
(in /src/rest-service/plugins/commandline)
* Starting syntax check...
* Done
(in /src/rest-service/plugins/patches)
* Starting syntax check...
* Done
(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/basesystem)
* Starting syntax check...
* Done
(in /src/rest-service/plugins/samba_server)
* 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/securities)
* Starting syntax check...
* Done
(in /src/rest-service/plugins/language)
* Starting syntax check...
* Done
(in /src/rest-service/plugins/services)
* Starting syntax check...
* Done
(in /src/rest-service/plugins/ntp)
* Starting syntax check...
* Done
(in /src/rest-service/plugins/status)
* Starting syntax check...
* Done
exit code: 0 ... good, lets continue
/src/rest-service/webservice /src/rest-service
*** registering plugins ***
(in /src/rest-service/webservice)
== Accounts: migrating =======================================================
-- create_table("accounts", {:force=>true})
-> 0.0020s
== Accounts: migrated (0.0021s) ==============================================
Loaded suite /usr/bin/rake
Started
Finished in 7.1e-05 seconds.
0 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
exit code: 0 ... good, lets continue
/src/rest-service
(in /src/rest-service)
*** 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/permission_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"
(in /src/rest-service/webservice)
*** registering plugins ***
Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
.......permission_check2: NoPermissionException
.permission_check2: NoPermissionException
..permission_check2: NoPermissionException
..permission_check2: NoPermissionException
..
Finished in 0.278387 seconds.
14 tests, 36 assertions, 0 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" "test/functional/vendor_settings_controller_test.rb" "test/functional/resources_route_test.rb" "test/functional/resources_registration_test.rb" "test/functional/scr_test.rb" "test/functional/resources_controller_test.rb" "test/functional/sessions_controller_test.rb" "test/functional/lib_session_test.rb" "test/functional/permissions_controller_test.rb"
*** registering plugins ***
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
........permission_check1: PolicyKit user 'test_user' does not exist, #