ref: refs/heads/master
commit 9c960bd79e1f7bbde632fd2631dcb128978604b4
Author: Duncan Mac-Vicar P
Date: Tue Aug 25 19:28:43 2009 +0200
these tests are covered by the testsuite, or if they test Rails parent
should be moved to a separate test, but not in system_check
---
webservice/lib/tasks/checks.rake | 28 ----------------------------
1 files changed, 0 insertions(+), 28 deletions(-)
diff --git a/webservice/lib/tasks/checks.rake b/webservice/lib/tasks/checks.rake
index 5a97e53..0fbfd37 100644
--- a/webservice/lib/tasks/checks.rake
+++ b/webservice/lib/tasks/checks.rake
@@ -175,34 +175,6 @@ EOF
errors = true
end
- #
- # plugin test. Each plugin will be tested for a "GET index" call. This call has to return "success"
- #
-
- test "all available plugins are working" do
- Dir.glob(File.join(File.dirname(__FILE__), '../../../plugins', "**/*_controller.rb")).each do |controller|
- modulename = File.basename(controller, ".rb").split("_").collect { |i| i.capitalize }.join
- modulepath = File.dirname(controller).split("/")
- # add Namespaces to the modulename.
- # They are defined as subdirectories in the controller directory
- while modulepath
- namespace = modulepath.pop
- if namespace == "controllers"
- modulepath = nil
- else
- modulename = namespace.capitalize + "::" + modulename
- end
- end
- ok = system %(cd #{File.dirname(__FILE__)}; export RAILS_PARENT=../../; ruby plugin_test/functional/plugin_index_test.rb --plugin #{modulename} > /dev/null)
- if !ok
- # puts "Trying \"GET show\" cause some plugins do not support \"GET index\"..."
- ok = system %(cd #{File.dirname(__FILE__)}; export RAILS_PARENT=../../; ruby plugin_test/functional/plugin_show_test.rb --plugin #{modulename} > /dev/null)
- end
- escape "plugin #{modulename} does not work correctly", "try 'export RAILS_PARENT=.; ruby plugin_test/functional/plugin_index_test.rb --plugin #{modulename}' and check the result" unless ok
- errors = true
- end
- end
-
if !errors
puts ""
puts "**************************************"
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org