Mailinglist Archive: yast-commit (1771 mails)

< Previous Next >
[yast-commit] <rest-service> network : these tests are covered by the testsuite, or if they test Rails parent
  • From: Duncan Mac-Vicar P <dmacvicar@xxxxxxx>
  • Date: Tue, 25 Aug 2009 19:28:43 +0200
  • Message-id: <E1MiTqN-0006gM-Op@xxxxxxxxxxxxxxxx>
ref: refs/heads/network
commit 9c960bd79e1f7bbde632fd2631dcb128978604b4
Author: Duncan Mac-Vicar P <dmacvicar@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages