osc_ruby 0.7.1 → 1.0.2

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.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +25 -25
  3. data/.gitignore +15 -15
  4. data/.rspec +1 -1
  5. data/.rubocop.yml +1156 -1156
  6. data/.travis.yml +9 -9
  7. data/Gemfile +3 -3
  8. data/License.txt +21 -0
  9. data/README.md +95 -242
  10. data/Rakefile +2 -2
  11. data/lib/ext/string.rb +18 -18
  12. data/lib/osc_ruby/classes/query_results.rb +40 -60
  13. data/lib/osc_ruby/client.rb +40 -40
  14. data/lib/osc_ruby/configuration.rb +14 -13
  15. data/lib/osc_ruby/connect.rb +218 -209
  16. data/lib/osc_ruby/modules/normalize_module.rb +121 -121
  17. data/lib/osc_ruby/modules/query_module.rb +69 -69
  18. data/lib/osc_ruby/modules/validations_module.rb +168 -168
  19. data/lib/osc_ruby/version.rb +2 -2
  20. data/lib/osc_ruby.rb +4 -10
  21. data/osc_ruby.gemspec +28 -29
  22. data/spec/core/client_spec.rb +96 -96
  23. data/spec/core/configuration_spec.rb +4 -4
  24. data/spec/core/connect_spec.rb +366 -364
  25. data/spec/core/query_results_spec.rb +107 -133
  26. data/spec/core/spec_helper.rb +25 -25
  27. data/tasks/rspec.rake +2 -2
  28. metadata +23 -22
  29. data/LICENSE.txt +0 -22
  30. data/lib/osc_ruby/classes/account.rb +0 -75
  31. data/lib/osc_ruby/classes/answer.rb +0 -117
  32. data/lib/osc_ruby/classes/incident.rb +0 -13
  33. data/lib/osc_ruby/classes/product_category_shared.rb +0 -118
  34. data/lib/osc_ruby/classes/service_category.rb +0 -6
  35. data/lib/osc_ruby/classes/service_class.rb +0 -66
  36. data/lib/osc_ruby/classes/service_product.rb +0 -6
  37. data/lib/osc_ruby/modules/class_factory_module.rb +0 -165
  38. data/lib/osc_ruby/modules/nested_resource_module.rb +0 -10
  39. data/spec/core/account_spec.rb +0 -497
  40. data/spec/core/answer_spec.rb +0 -545
  41. data/spec/core/service_category_spec.rb +0 -445
  42. data/spec/core/service_product_spec.rb +0 -443
@@ -1,365 +1,367 @@
1
- require 'core/spec_helper'
2
- require 'json'
3
- require 'uri'
4
-
5
- describe OSCRuby::Connect do
6
-
7
- subject { connect }
8
-
9
- let(:client) {
10
-
11
- OSCRuby::Client.new do |config|
12
-
13
- config.interface = ENV['OSC_TEST1_SITE']
14
-
15
- config.username = ENV['OSC_ADMIN']
16
-
17
- config.password = ENV['OSC_PASSWORD']
18
-
19
- config.suppress_rules = true
20
-
21
- end
22
- }
23
-
24
- context '#generate_url_and_config' do
25
-
26
- it 'should take at least a config parameter that is an instance of an OSCRuby::Client' do
27
-
28
- expect(client).to be_an(OSCRuby::Client)
29
-
30
- expect do
31
-
32
- OSCRuby::Connect.generate_url_and_config(client)
33
-
34
- end.not_to raise_error
35
- end
36
-
37
- it 'should take an optional resource_url parameter' do
38
-
39
- expect do
40
-
41
- OSCRuby::Connect.generate_url_and_config(client, 'serviceProducts')
42
-
43
- end.not_to raise_error
44
- end
45
-
46
- it 'should change the final configured url if the resource_url parameter is specified' do
47
-
48
- test = OSCRuby::Connect.generate_url_and_config(client, 'serviceProducts')
49
-
50
- interface = client.config.interface
51
-
52
- expect(test['site_url']).to eq(URI("https://#{interface}.custhelp.com/services/rest/connect/v1.3/serviceProducts"))
53
-
54
- expect(test['site_url']).to be_an(URI::HTTPS)
55
- end
56
-
57
- it 'should raise an error if client is nil' do
58
-
59
- expect do
60
-
61
- client = nil
62
-
63
- OSCRuby::Connect.generate_url_and_config(client)
64
-
65
- end.to raise_error("Client must have some configuration set; please create an instance of OSCRuby::Client with configuration settings")
66
-
67
- end
68
-
69
- it 'should raise an error if client.config is nil' do
70
-
71
- expect do
72
-
73
- client.config = nil
74
-
75
- OSCRuby::Connect.generate_url_and_config(client)
76
-
77
- end.to raise_error("Client configuration cannot be nil or blank")
78
-
79
- end
80
-
81
- it 'should raise an error if client interface is absent' do
82
-
83
- expect do
84
-
85
- client.config.interface = nil
86
-
87
- OSCRuby::Connect.generate_url_and_config(client)
88
-
89
- end.to raise_error("The configured client interface cannot be nil or blank")
90
-
91
- end
92
-
93
- it 'should raise an error if client username is absent' do
94
-
95
- expect do
96
-
97
- client.config.username = nil
98
-
99
- OSCRuby::Connect.generate_url_and_config(client)
100
-
101
- end.to raise_error("The configured client username cannot be nil or blank")
102
-
103
- end
104
-
105
- it 'should raise an error if client password is absent' do
106
-
107
- expect do
108
-
109
- client.config.password = nil
110
-
111
- OSCRuby::Connect.generate_url_and_config(client)
112
-
113
- end.to raise_error("The configured client password cannot be nil or blank")
114
-
115
- end
116
-
117
-
118
- it 'should create an Hash object with a site_url, username, password properties' do
119
-
120
- final_config = OSCRuby::Connect.generate_url_and_config(client)
121
-
122
- expect(final_config).to be_an(Hash)
123
-
124
- expect(final_config['site_url']).to be_an(URI::HTTPS)
125
-
126
- expect(final_config['username']).to eq(ENV['OSC_ADMIN'])
127
-
128
- expect(final_config['password']).to eq(ENV['OSC_PASSWORD'])
129
-
130
- end
131
-
132
- end
133
-
134
- let(:json_content){
135
- {:test => 'content'}
136
- }
137
-
138
- context '#post_or_patch' do
139
-
140
- it 'should take at least a config parameter that is an instance of an OSCRuby::Client', :vcr do
141
-
142
- expect(client).to be_an(OSCRuby::Client)
143
-
144
- expect do
145
-
146
- OSCRuby::Connect.post_or_patch(client,'serviceProducts',json_content)
147
-
148
- end.not_to raise_error
149
- end
150
-
151
- it 'should raise an error if client is nil' do
152
-
153
- expect do
154
-
155
- client = nil
156
-
157
- OSCRuby::Connect.post_or_patch(client,'serviceProducts',json_content)
158
-
159
- end.to raise_error("Client must have some configuration set; please create an instance of OSCRuby::Client with configuration settings")
160
-
161
- end
162
-
163
- it 'should raise an error if resource_url is nil' do
164
-
165
- expect do
166
-
167
- OSCRuby::Connect.post_or_patch(client, nil, json_content)
168
-
169
- end.to raise_error("There is no URL resource provided; please specify a URL resource that you would like to send a POST or PATCH request to")
170
-
171
- end
172
-
173
- it 'should raise an error if json_content is nil' do
174
-
175
- expect do
176
-
177
- OSCRuby::Connect.post_or_patch(client,'serviceProducts')
178
-
179
- end.to raise_error("There is no json content provided; please specify json content that you would like to send a POST or PATCH request with")
180
-
181
- end
182
-
183
- it 'should produce a Net::HTTPResponse, should produce a 201 response code, and should produce a JSON Response form the response body', :vcr do
184
-
185
- names = []
186
-
187
- names[0] = {:labelText => 'PRODUCT-TEST', :language => {:id => 1}}
188
- names[1] = {:labelText => 'PRODUCT-TEST', :language => {:id => 11}}
189
-
190
- parent = {:id => 102}
191
-
192
- displayOrder = {:id => 4}
193
-
194
- admin_user_visible_interfaces = []
195
- admin_user_visible_interfaces[0] = {:id => 1}
196
-
197
- end_user_visible_interfaces = []
198
- end_user_visible_interfaces[0] = {:id => 1}
199
-
200
- new_prod = []
201
- new_prod[0] = {:names => names,
202
- :parent => parent,
203
- :adminVisibleInterfaces => admin_user_visible_interfaces,
204
- :endUserVisibleInterfaces => end_user_visible_interfaces}
205
-
206
- test = OSCRuby::Connect.post_or_patch(client,'serviceProducts',new_prod[0])
207
-
208
- expect(test).to be_an(Net::HTTPResponse)
209
-
210
- expect(test.code).to eq("201")
211
-
212
- expect(test.body).to be_an(String)
213
-
214
- expect{JSON.parse(test.body)}.not_to raise_error
215
-
216
- end
217
-
218
- end
219
-
220
- context '#get' do
221
-
222
- it 'should take at least a config parameter that is an instance of an OSCRuby::Client', :vcr do
223
-
224
- expect(client).to be_an(OSCRuby::Client)
225
-
226
- expect do
227
-
228
- OSCRuby::Connect.get(client)
229
-
230
- end.not_to raise_error
231
- end
232
-
233
-
234
- it 'should raise an error if client is nil' do
235
-
236
- expect do
237
-
238
- client = nil
239
-
240
- OSCRuby::Connect.get(client)
241
-
242
- end.to raise_error("Client must have some configuration set; please create an instance of OSCRuby::Client with configuration settings")
243
-
244
- end
245
-
246
- it 'should produce a Net::HTTPResponse', :vcr do
247
-
248
- test = OSCRuby::Connect.get(client)
249
-
250
- expect(test).to be_an(Net::HTTPResponse)
251
-
252
- end
253
-
254
- it 'should produce a 200 response code', :vcr do
255
-
256
- test = OSCRuby::Connect.get(client)
257
-
258
- expect(test.code).to eq("200")
259
-
260
- end
261
-
262
- it 'should produce a JSON Response from the response body', :vcr do
263
-
264
- test = OSCRuby::Connect.get(client)
265
-
266
- expect(test.body).to be_an(String)
267
-
268
- expect{JSON.parse(test.body)}.not_to raise_error
269
- end
270
-
271
- end
272
-
273
-
274
- context '#post_or_patch' do
275
-
276
- it 'should take an optional parameter to allow PATCH request; it should produce a Net::HTTPResponse, should produce a 200 code', :vcr do
277
-
278
- resource = URI.escape("queryResults/?query=select id from serviceproducts where lookupname = 'PRODUCT-TEST';")
279
-
280
- product_test = OSCRuby::Connect.get(client,resource)
281
-
282
- prod_json = JSON.parse(product_test.body).to_hash
283
-
284
- product_test_id = prod_json['items'][0]['rows'][0][0].to_i
285
-
286
- names = []
287
-
288
- names[0] = {:labelText => 'PRODUCT-TEST-updated', :language => {:id => 1}}
289
- names[1] = {:labelText => 'PRODUCT-TEST-updated', :language => {:id => 11}}
290
-
291
- parent = {:id => 102}
292
-
293
- displayOrder = {:id => 4}
294
-
295
- admin_user_visible_interfaces = []
296
- admin_user_visible_interfaces[0] = {:id => 1}
297
-
298
- end_user_visible_interfaces = []
299
- end_user_visible_interfaces[0] = {:id => 1}
300
-
301
- new_prod = []
302
- new_prod[0] = {:names => names,
303
- :parent => parent,
304
- :adminVisibleInterfaces => admin_user_visible_interfaces,
305
- :endUserVisibleInterfaces => end_user_visible_interfaces}
306
-
307
- test = OSCRuby::Connect.post_or_patch(client,"serviceProducts/#{product_test_id}",new_prod[0],true)
308
-
309
- expect(test).to be_an(Net::HTTPResponse)
310
-
311
- expect(test.body).to eq("")
312
-
313
- expect(test.code).to eq("200")
314
-
315
- end
316
-
317
- end
318
-
319
- context '#delete' do
320
-
321
- it 'should raise an error if client is nil' do
322
-
323
- expect do
324
-
325
- client = nil
326
-
327
- OSCRuby::Connect.delete(client)
328
-
329
- end.to raise_error("Client must have some configuration set; please create an instance of OSCRuby::Client with configuration settings")
330
-
331
- end
332
-
333
- it 'should raise an error if the resource_url is not specified' do
334
-
335
- expect do
336
-
337
- OSCRuby::Connect.delete(client)
338
-
339
- end.to raise_error("There is no URL resource provided; please specify a URL resource that you would like to send a POST or PATCH request to")
340
-
341
- end
342
-
343
- it 'it should produce a Net::HTTPResponse, should produce a 200 code', :vcr do
344
-
345
- resource = URI.escape("queryResults/?query=select id from serviceproducts where lookupname = 'PRODUCT-TEST-updated';")
346
-
347
- product_test_updated = OSCRuby::Connect.get(client,resource)
348
-
349
- prod_json = JSON.parse(product_test_updated.body).to_hash
350
-
351
- product_test_updated_id = prod_json['items'][0]['rows'][0][0].to_i
352
-
353
- test = OSCRuby::Connect.delete(client,"serviceProducts/#{product_test_updated_id}")
354
-
355
- expect(test).to be_an(Net::HTTPResponse)
356
-
357
- expect(test.body).to eq("")
358
-
359
- expect(test.code).to eq("200")
360
-
361
- end
362
-
363
- end
364
-
1
+ require 'core/spec_helper'
2
+ require 'json'
3
+ require 'uri'
4
+
5
+ describe OSCRuby::Connect do
6
+
7
+ subject { connect }
8
+
9
+ let(:client) {
10
+
11
+ OSCRuby::Client.new do |config|
12
+
13
+ config.interface = ENV['OSC_SITE']
14
+
15
+ config.username = ENV['OSC_ADMIN']
16
+
17
+ config.password = ENV['OSC_PASSWORD']
18
+
19
+ config.suppress_rules = true
20
+
21
+ config.demo_site = true
22
+
23
+ end
24
+ }
25
+
26
+
27
+ context '#generate_url_and_config' do
28
+
29
+ it 'should take at least a config parameter that is an instance of an OSCRuby::Client' do
30
+
31
+ expect(client).to be_an(OSCRuby::Client)
32
+
33
+ expect do
34
+
35
+ OSCRuby::Connect.generate_url_and_config(client)
36
+
37
+ end.not_to raise_error
38
+ end
39
+
40
+ it 'should take an optional resource_url parameter' do
41
+
42
+ expect do
43
+
44
+ OSCRuby::Connect.generate_url_and_config(client, 'serviceProducts')
45
+
46
+ end.not_to raise_error
47
+ end
48
+
49
+ it 'should change the final configured url if the resource_url parameter is specified' do
50
+
51
+ test = OSCRuby::Connect.generate_url_and_config(client, 'serviceProducts')
52
+
53
+ interface = client.config.interface
54
+
55
+ expect(test['site_url']).to eq(URI("https://#{interface}.rightnowdemo.com/services/rest/connect/v1.3/serviceProducts"))
56
+
57
+ expect(test['site_url']).to be_an(URI::HTTPS)
58
+ end
59
+
60
+ it 'should raise an error if client is nil' do
61
+
62
+ expect do
63
+
64
+ client = nil
65
+
66
+ OSCRuby::Connect.generate_url_and_config(client)
67
+
68
+ end.to raise_error("Client must have some configuration set; please create an instance of OSCRuby::Client with configuration settings")
69
+
70
+ end
71
+
72
+ it 'should raise an error if client.config is nil' do
73
+
74
+ expect do
75
+
76
+ client.config = nil
77
+
78
+ OSCRuby::Connect.generate_url_and_config(client)
79
+
80
+ end.to raise_error("Client configuration cannot be nil or blank")
81
+
82
+ end
83
+
84
+ it 'should raise an error if client interface is absent' do
85
+
86
+ expect do
87
+
88
+ client.config.interface = nil
89
+
90
+ OSCRuby::Connect.generate_url_and_config(client)
91
+
92
+ end.to raise_error("The configured client interface cannot be nil or blank")
93
+
94
+ end
95
+
96
+ it 'should raise an error if client username is absent' do
97
+
98
+ expect do
99
+
100
+ client.config.username = nil
101
+
102
+ OSCRuby::Connect.generate_url_and_config(client)
103
+
104
+ end.to raise_error("The configured client username cannot be nil or blank")
105
+
106
+ end
107
+
108
+ it 'should raise an error if client password is absent' do
109
+
110
+ expect do
111
+
112
+ client.config.password = nil
113
+
114
+ OSCRuby::Connect.generate_url_and_config(client)
115
+
116
+ end.to raise_error("The configured client password cannot be nil or blank")
117
+
118
+ end
119
+
120
+
121
+ it 'should create an Hash object with a site_url, username, password properties' do
122
+
123
+ final_config = OSCRuby::Connect.generate_url_and_config(client)
124
+
125
+ expect(final_config).to be_an(Hash)
126
+
127
+ expect(final_config['site_url']).to be_an(URI::HTTPS)
128
+
129
+ expect(final_config['username']).to eq(ENV['OSC_ADMIN'])
130
+
131
+ expect(final_config['password']).to eq(ENV['OSC_PASSWORD'])
132
+
133
+ end
134
+
135
+ end
136
+
137
+ let(:json_content){
138
+ {:test => 'content'}
139
+ }
140
+
141
+ context '#post_or_patch' do
142
+
143
+ it 'should take at least a config parameter that is an instance of an OSCRuby::Client', :vcr do
144
+
145
+ expect(client).to be_an(OSCRuby::Client)
146
+
147
+ expect do
148
+
149
+ OSCRuby::Connect.post_or_patch(client,'serviceProducts',json_content)
150
+
151
+ end.not_to raise_error
152
+ end
153
+
154
+ it 'should raise an error if client is nil' do
155
+
156
+ expect do
157
+
158
+ client = nil
159
+
160
+ OSCRuby::Connect.post_or_patch(client,'serviceProducts',json_content)
161
+
162
+ end.to raise_error("Client must have some configuration set; please create an instance of OSCRuby::Client with configuration settings")
163
+
164
+ end
165
+
166
+ it 'should raise an error if resource_url is nil' do
167
+
168
+ expect do
169
+
170
+ OSCRuby::Connect.post_or_patch(client, nil, json_content)
171
+
172
+ end.to raise_error("There is no URL resource provided; please specify a URL resource that you would like to send a POST or PATCH request to")
173
+
174
+ end
175
+
176
+ it 'should raise an error if json_content is nil' do
177
+
178
+ expect do
179
+
180
+ OSCRuby::Connect.post_or_patch(client,'serviceProducts')
181
+
182
+ end.to raise_error("There is no json content provided; please specify json content that you would like to send a POST or PATCH request with")
183
+
184
+ end
185
+
186
+ it 'should produce a Net::HTTPResponse, should produce a 201 response code, and should produce a JSON Response form the response body', :vcr do
187
+
188
+ names = []
189
+
190
+ names[0] = {:labelText => 'PRODUCT-TEST', :language => {:id => 1}}
191
+ # names[1] = {:labelText => 'PRODUCT-TEST', :language => {:id => 11}}
192
+
193
+ # parent = {:id => 102}
194
+
195
+ displayOrder = {:id => 4}
196
+
197
+ admin_user_visible_interfaces = []
198
+ admin_user_visible_interfaces[0] = {:id => 1}
199
+
200
+ end_user_visible_interfaces = []
201
+ end_user_visible_interfaces[0] = {:id => 1}
202
+
203
+ new_prod = []
204
+ new_prod[0] = {:names => names,
205
+ :adminVisibleInterfaces => admin_user_visible_interfaces,
206
+ :endUserVisibleInterfaces => end_user_visible_interfaces}
207
+
208
+ test = OSCRuby::Connect.post_or_patch(client,'serviceProducts',new_prod[0])
209
+
210
+ expect(test).to be_an(Net::HTTPResponse)
211
+
212
+ expect(test.code).to eq("201")
213
+
214
+ expect(test.body).to be_an(String)
215
+
216
+ expect{JSON.parse(test.body)}.not_to raise_error
217
+
218
+ end
219
+
220
+ end
221
+
222
+ context '#get' do
223
+
224
+ it 'should take at least a config parameter that is an instance of an OSCRuby::Client', :vcr do
225
+
226
+ expect(client).to be_an(OSCRuby::Client)
227
+
228
+ expect do
229
+
230
+ OSCRuby::Connect.get(client)
231
+
232
+ end.not_to raise_error
233
+ end
234
+
235
+
236
+ it 'should raise an error if client is nil' do
237
+
238
+ expect do
239
+
240
+ client = nil
241
+
242
+ OSCRuby::Connect.get(client)
243
+
244
+ end.to raise_error("Client must have some configuration set; please create an instance of OSCRuby::Client with configuration settings")
245
+
246
+ end
247
+
248
+ it 'should produce a Net::HTTPResponse', :vcr do
249
+
250
+ test = OSCRuby::Connect.get(client)
251
+
252
+ expect(test).to be_an(Net::HTTPResponse)
253
+
254
+ end
255
+
256
+ it 'should produce a 200 response code', :vcr do
257
+
258
+ test = OSCRuby::Connect.get(client)
259
+
260
+ expect(test.code).to eq("200")
261
+
262
+ end
263
+
264
+ it 'should produce a JSON Response from the response body', :vcr do
265
+
266
+ test = OSCRuby::Connect.get(client)
267
+
268
+ expect(test.body).to be_an(String)
269
+
270
+ expect{JSON.parse(test.body)}.not_to raise_error
271
+ end
272
+
273
+ end
274
+
275
+
276
+ context '#post_or_patch' do
277
+
278
+ it 'should take an optional parameter to allow PATCH request; it should produce a Net::HTTPResponse, should produce a 200 code', :vcr do
279
+
280
+ resource = URI.escape("queryResults/?query=select id from serviceproducts where lookupname = 'PRODUCT-TEST';")
281
+
282
+ product_test = OSCRuby::Connect.get(client,resource)
283
+
284
+ prod_json = JSON.parse(product_test.body).to_hash
285
+
286
+ product_test_id = prod_json['items'][0]['rows'][0][0].to_i
287
+
288
+ names = []
289
+
290
+ names[0] = {:labelText => 'PRODUCT-TEST-updated', :language => {:id => 1}}
291
+ # names[1] = {:labelText => 'PRODUCT-TEST-updated', :language => {:id => 11}}
292
+
293
+ # parent = {:id => 102}
294
+
295
+ displayOrder = {:id => 4}
296
+
297
+ admin_user_visible_interfaces = []
298
+ admin_user_visible_interfaces[0] = {:id => 1}
299
+
300
+ end_user_visible_interfaces = []
301
+ end_user_visible_interfaces[0] = {:id => 1}
302
+
303
+ new_prod = []
304
+ new_prod[0] = {:names => names,
305
+ # :parent => parent,
306
+ :adminVisibleInterfaces => admin_user_visible_interfaces,
307
+ :endUserVisibleInterfaces => end_user_visible_interfaces}
308
+
309
+ test = OSCRuby::Connect.post_or_patch(client,"serviceProducts/#{product_test_id}",new_prod[0],true)
310
+
311
+ expect(test).to be_an(Net::HTTPResponse)
312
+
313
+ expect(test.body).to eq("")
314
+
315
+ expect(test.code).to eq("200")
316
+
317
+ end
318
+
319
+ end
320
+
321
+ context '#delete' do
322
+
323
+ it 'should raise an error if client is nil' do
324
+
325
+ expect do
326
+
327
+ client = nil
328
+
329
+ OSCRuby::Connect.delete(client)
330
+
331
+ end.to raise_error("Client must have some configuration set; please create an instance of OSCRuby::Client with configuration settings")
332
+
333
+ end
334
+
335
+ it 'should raise an error if the resource_url is not specified' do
336
+
337
+ expect do
338
+
339
+ OSCRuby::Connect.delete(client)
340
+
341
+ end.to raise_error("There is no URL resource provided; please specify a URL resource that you would like to send a POST or PATCH request to")
342
+
343
+ end
344
+
345
+ it 'it should produce a Net::HTTPResponse, should produce a 200 code', :vcr do
346
+
347
+ resource = URI.escape("queryResults/?query=select id from serviceproducts where lookupname = 'PRODUCT-TEST-updated';")
348
+
349
+ product_test_updated = OSCRuby::Connect.get(client,resource)
350
+
351
+ prod_json = JSON.parse(product_test_updated.body).to_hash
352
+
353
+ product_test_updated_id = prod_json['items'][0]['rows'][0][0].to_i
354
+
355
+ test = OSCRuby::Connect.delete(client,"serviceProducts/#{product_test_updated_id}")
356
+
357
+ expect(test).to be_an(Net::HTTPResponse)
358
+
359
+ expect(test.body).to eq("")
360
+
361
+ expect(test.code).to eq("200")
362
+
363
+ end
364
+
365
+ end
366
+
365
367
  end