Mailinglist Archive: yast-commit (2114 mails)

< Previous Next >
[yast-commit] <rest-service> resource-restfull : modify test to match the new interface
  • From: Martin Kudlvasr <mkudlvasr@xxxxxxx>
  • Date: Tue, 15 Sep 2009 17:20:45 +0200
  • Message-id: <E1MnZqw-0007oe-Kk@xxxxxxxxxxxxxxxx>
ref: refs/heads/resource-restfull
commit 64e568c763623c2a781bf69780c9e3914cbb3f6a
Author: Martin Kudlvasr <mkudlvasr@xxxxxxx>
Date: Tue Sep 15 17:20:45 2009 +0200

modify test to match the new interface
btw, the test passed even before the change
---
.../test/functional/resources_controller_test.rb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/webservice/test/functional/resources_controller_test.rb
b/webservice/test/functional/resources_controller_test.rb
index 4662534..75e37df 100644
--- a/webservice/test/functional/resources_controller_test.rb
+++ b/webservice/test/functional/resources_controller_test.rb
@@ -33,7 +33,7 @@ class ResourcesControllerTest < ActionController::TestCase
end

test "resources index with interface" do
- get :index, :interface => "org.opensuse.test"
+ get :index, :id => "org.opensuse.test"
assert_response :success
end

@@ -51,7 +51,7 @@ class ResourcesControllerTest < ActionController::TestCase

test "resources by interfaces query" do
ResourceRegistration.resources.each do |interface,implementations|
- get :index, :params => { "interface" => interface }
+ get :index, :params => { "id" => interface }
assert_response :success
end
end
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages