wasabi 3.2.2 → 3.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,7 +15,7 @@ describe Wasabi::Document do
15
15
 
16
16
  its(:operations) do
17
17
  should == {
18
- :authenticate => { :input => "authenticate", :output => "authenticate", :action => "authenticate", :namespace_identifier => "tns" }
18
+ :authenticate => { :input => "authenticate", :output => "authenticateResponse", :action => "authenticate", :namespace_identifier => "tns" }
19
19
  }
20
20
  end
21
21
 
@@ -14,7 +14,7 @@ describe Wasabi::Document do
14
14
  it { should have(1).operations }
15
15
 
16
16
  its(:operations) do
17
- should == { :save => { :input => "Save", :output=>"Save", :action => "http://example.com/actions.Save", :namespace_identifier => "actions", :parameters => { :article => { :name => "article", :type => "Article" } } } }
17
+ should == { :save => { :input => "Save", :output=>"SaveResponse", :action => "http://example.com/actions.Save", :namespace_identifier => "actions", :parameters => { :article => { :name => "article", :type => "Article" } } } }
18
18
  end
19
19
 
20
20
  its(:type_namespaces) do
@@ -15,9 +15,9 @@ describe Wasabi::Document do
15
15
 
16
16
  its(:operations) do
17
17
  should include(
18
- { :delete_client => { :input => "DeleteClient", :output => "DeleteClient", :action => "http://api.example.com/api/Client.Delete", :namespace_identifier => "tns" } },
19
- { :get_clients => { :input => "GetClients", :output => "GetClients", :action => "http://api.example.com/api/User.GetClients", :namespace_identifier => "tns" } },
20
- { :get_api_key => { :input => "GetApiKey", :output => "GetApiKey", :action => "http://api.example.com/api/User.GetApiKey", :namespace_identifier => "tns" } }
18
+ { :delete_client => { :input => "Client.Delete", :output => "Client.DeleteResponse", :action => "http://api.example.com/api/Client.Delete", :namespace_identifier => "tns" } },
19
+ { :get_clients => { :input => "User.GetClients", :output => "User.GetClientsResponse", :action => "http://api.example.com/api/User.GetClients", :namespace_identifier => "tns" } },
20
+ { :get_api_key => { :input => "User.GetApiKey", :output => "User.GetApiKeyResponse", :action => "http://api.example.com/api/User.GetApiKey", :namespace_identifier => "tns" } }
21
21
  )
22
22
  end
23
23
 
@@ -0,0 +1,17 @@
1
+ require 'spec_helper'
2
+
3
+ describe Wasabi::Parser do
4
+ context 'with: marketo.wsdl' do
5
+ subject do
6
+ parser = Wasabi::Parser.new Nokogiri::XML(xml)
7
+ parser.parse
8
+ parser
9
+ end
10
+
11
+ let(:xml) { fixture(:marketo).read }
12
+
13
+ it 'parses the operations' do
14
+ subject.operations[:get_lead][:input].should == 'paramsGetLead'
15
+ end
16
+ end
17
+ end
@@ -16,7 +16,7 @@ describe Wasabi::Parser do
16
16
  subject.operations[:save][:input].should == 'Save'
17
17
 
18
18
  # Operation's output has part element in the message, so using part element's type.
19
- subject.operations[:save][:output].should == 'Save'
19
+ subject.operations[:save][:output].should == 'SaveResponse'
20
20
  end
21
21
 
22
22
  it 'falls back to using the namespace ID in the port element' do
@@ -0,0 +1,17 @@
1
+ require 'spec_helper'
2
+
3
+ describe Wasabi::Parser do
4
+ context 'with: tradetracker.wsdl' do
5
+ subject do
6
+ parser = Wasabi::Parser.new Nokogiri::XML(xml)
7
+ parser.parse
8
+ parser
9
+ end
10
+
11
+ let(:xml) { fixture(:tradetracker).read }
12
+
13
+ it 'parses the operations' do
14
+ subject.operations[:get_feeds][:input].should == 'getFeeds'
15
+ end
16
+ end
17
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wasabi
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.2
4
+ version: 3.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Harrington
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-09 00:00:00.000000000 Z
11
+ date: 2013-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpi
@@ -109,6 +109,7 @@ files:
109
109
  - spec/fixtures/inherited.wsdl
110
110
  - spec/fixtures/juniper.wsdl
111
111
  - spec/fixtures/lower_camel.wsdl
112
+ - spec/fixtures/marketo.wsdl
112
113
  - spec/fixtures/multiple_namespaces.wsdl
113
114
  - spec/fixtures/multiple_types.wsdl
114
115
  - spec/fixtures/namespaced_actions.wsdl
@@ -117,6 +118,7 @@ files:
117
118
  - spec/fixtures/savon295.wsdl
118
119
  - spec/fixtures/soap12.wsdl
119
120
  - spec/fixtures/symbolic_endpoint.wsdl
121
+ - spec/fixtures/tradetracker.wsdl
120
122
  - spec/fixtures/two_bindings.wsdl
121
123
  - spec/spec_helper.rb
122
124
  - spec/support/fixture.rb
@@ -137,11 +139,13 @@ files:
137
139
  - spec/wasabi/parser/get_servicename_spec.rb
138
140
  - spec/wasabi/parser/import_port_types_spec.rb
139
141
  - spec/wasabi/parser/juniper_spec.rb
142
+ - spec/wasabi/parser/marketo_spec.rb
140
143
  - spec/wasabi/parser/multiple_namespaces_spec.rb
141
144
  - spec/wasabi/parser/no_message_parts_spec.rb
142
145
  - spec/wasabi/parser/no_namespace_spec.rb
143
146
  - spec/wasabi/parser/no_target_namespace_spec.rb
144
147
  - spec/wasabi/parser/symbolic_endpoint_spec.rb
148
+ - spec/wasabi/parser/tradetracker_spec.rb
145
149
  - spec/wasabi/resolver_spec.rb
146
150
  - spec/wasabi/wasabi_spec.rb
147
151
  - wasabi.gemspec
@@ -178,6 +182,7 @@ test_files:
178
182
  - spec/fixtures/inherited.wsdl
179
183
  - spec/fixtures/juniper.wsdl
180
184
  - spec/fixtures/lower_camel.wsdl
185
+ - spec/fixtures/marketo.wsdl
181
186
  - spec/fixtures/multiple_namespaces.wsdl
182
187
  - spec/fixtures/multiple_types.wsdl
183
188
  - spec/fixtures/namespaced_actions.wsdl
@@ -186,6 +191,7 @@ test_files:
186
191
  - spec/fixtures/savon295.wsdl
187
192
  - spec/fixtures/soap12.wsdl
188
193
  - spec/fixtures/symbolic_endpoint.wsdl
194
+ - spec/fixtures/tradetracker.wsdl
189
195
  - spec/fixtures/two_bindings.wsdl
190
196
  - spec/spec_helper.rb
191
197
  - spec/support/fixture.rb
@@ -206,10 +212,12 @@ test_files:
206
212
  - spec/wasabi/parser/get_servicename_spec.rb
207
213
  - spec/wasabi/parser/import_port_types_spec.rb
208
214
  - spec/wasabi/parser/juniper_spec.rb
215
+ - spec/wasabi/parser/marketo_spec.rb
209
216
  - spec/wasabi/parser/multiple_namespaces_spec.rb
210
217
  - spec/wasabi/parser/no_message_parts_spec.rb
211
218
  - spec/wasabi/parser/no_namespace_spec.rb
212
219
  - spec/wasabi/parser/no_target_namespace_spec.rb
213
220
  - spec/wasabi/parser/symbolic_endpoint_spec.rb
221
+ - spec/wasabi/parser/tradetracker_spec.rb
214
222
  - spec/wasabi/resolver_spec.rb
215
223
  - spec/wasabi/wasabi_spec.rb