public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
add action_web_service/test_invoke, will be used by for testing APIs in
a Rails project instance.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@830 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Leon Breedt (author)
Fri Mar 04 02:07:53 -0800 2005
commit  d43392a50b4f7023b13747a67c4a6aa85e4036c4
tree    66203f6fceae6c4d7489a10664fddc9afd9d53be
parent  b78283b3fcae6752e7f1698cc063eff6214d2104
...
1
2
 
 
 
 
3
4
5
...
1
2
3
4
5
6
7
8
9
0
@@ -1,5 +1,9 @@
0
 *0.6.0* (Unreleased)
0
 
0
+* Add action_controller/test_invoke, used for integrating AWS with the Rails testing infrastructure
0
+
0
+* Allow passing through options to the SOAP RPC driver for the SOAP client
0
+
0
 * Make the SOAP WS marshaler use #columns to decide which fields to marshal as well, avoids providing attributes brought in by associations
0
   
0
 * Add <tt>ActionWebService::API::Base.allow_active_record_expects</tt> option, with a default of false. Setting this to true will allow specifying ActiveRecord::Base model classes in <tt>:expects</tt>. API writers should take care to validate the received ActiveRecord model objects when turning it on, and/or have an authentication mechanism in place to reduce the security risk.
...
1
 
2
3
4
5
6
7
8
9
 
10
11
...
1
2
3
4
 
5
6
7
8
9
10
11
12
0
@@ -1,11 +1,12 @@
0
 = 0.7.0
0
+ - WS Test Integration
0
   - WS Scaffolding
0
   - WS Generators
0
- - WS Test Integration
0
 
0
 = 0.8.0
0
   - Consumption of WSDL services
0
   
0
 = Refactoring
0
+ - Port dispatcher tests to use test_invoke
0
   - Don't have clean way to go from SOAP Class object to the xsd:NAME type
0
     string -- NaHi possibly looking at remedying this situation
...
12
13
14
 
 
 
 
 
 
 
 
15
16
17
...
12
13
14
15
16
17
18
19
20
21
22
23
24
25
0
@@ -12,6 +12,14 @@ module ActionWebService # :nodoc:
0
       base.send(:include, ActionWebService::Dispatcher::InstanceMethods)
0
     end
0
 
0
+ def self.layered_service_name(public_method_name) # :nodoc:
0
+ if public_method_name =~ /^([^\.]+)\.(.*)$/
0
+ $1
0
+ else
0
+ nil
0
+ end
0
+ end
0
+
0
     module InstanceMethods # :nodoc:
0
       private
0
         def invoke_web_service_request(protocol_request)
...
62
63
64
65
 
66
67
68
...
62
63
64
 
65
66
67
68
0
@@ -62,7 +62,7 @@ class TC_DispatcherActionControllerSoap < Test::Unit::TestCase
0
       test_request = ActionController::TestRequest.new
0
       test_request.request_parameters['action'] = service_name(container)
0
       test_request.env['REQUEST_METHOD'] = "POST"
0
- test_request.env['HTTP_CONTENTTYPE'] = 'text/xml'
0
+ test_request.env['HTTP_CONTENT_TYPE'] = 'text/xml'
0
       test_request.env['HTTP_SOAPACTION'] = "/soap/#{service_name(container)}/#{public_method_name}"
0
       test_request.env['RAW_POST_DATA'] = body
0
       test_request
...
33
34
35
36
 
37
38
39
...
33
34
35
 
36
37
38
39
0
@@ -33,7 +33,7 @@ class TC_DispatcherActionControllerXmlRpc < Test::Unit::TestCase
0
       test_request = ActionController::TestRequest.new
0
       test_request.request_parameters['action'] = service_name(container)
0
       test_request.env['REQUEST_METHOD'] = "POST"
0
- test_request.env['HTTP_CONTENTTYPE'] = 'text/xml'
0
+ test_request.env['HTTP_CONTENT_TYPE'] = 'text/xml'
0
       test_request.env['RAW_POST_DATA'] = body
0
       test_request
0
     end

Comments

    No one has commented yet.