gridinit-jmeter 1.0.6 → 1.1.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gridinit-jmeter/dsl.rb +4 -5
- data/lib/gridinit-jmeter/version.rb +1 -1
- metadata +17 -8
- checksums.yaml +0 -15
data/lib/gridinit-jmeter/dsl.rb
CHANGED
@@ -363,19 +363,18 @@ module Gridinit
|
|
363
363
|
file = Tempfile.new(['jmeter', '.jmx'])
|
364
364
|
file.write(doc.to_xml(:indent => 2))
|
365
365
|
file.rewind
|
366
|
-
response = RestClient.post "
|
366
|
+
response = RestClient.post "#{params[:endpoint] ? params[:endpoint] : 'https://flood.io'}/api?token=#{token}",
|
367
367
|
{
|
368
|
-
:name => 'attachment',
|
369
368
|
:attachment => File.new("#{file.path}", 'rb'),
|
370
369
|
:results => (File.new("#{params[:jtl] ? params[:jtl] : 'jmeter.jtl'}", 'rb') if params[:region] == 'local'),
|
371
370
|
:multipart => true,
|
372
371
|
:content_type => 'application/octet-stream',
|
373
372
|
:started => params[:started],
|
374
373
|
:completed => params[:completed]
|
375
|
-
}
|
376
|
-
logger.info "
|
374
|
+
}.merge(params)
|
375
|
+
logger.info "Flood results at: #{JSON.parse(response)["results"]}" if response.code == 200
|
377
376
|
rescue => e
|
378
|
-
logger.fatal "
|
377
|
+
logger.fatal "Sorry there was an error: #{e.message}"
|
379
378
|
end
|
380
379
|
end
|
381
380
|
|
metadata
CHANGED
@@ -1,18 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gridinit-jmeter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.1.0.pre
|
5
|
+
prerelease: 6
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Tim Koopmans
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-23 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: rest-client
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
19
|
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
@@ -20,6 +22,7 @@ dependencies:
|
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
27
|
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
@@ -27,6 +30,7 @@ dependencies:
|
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: nokogiri
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
35
|
- - ! '>='
|
32
36
|
- !ruby/object:Gem::Version
|
@@ -34,6 +38,7 @@ dependencies:
|
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
43
|
- - ! '>='
|
39
44
|
- !ruby/object:Gem::Version
|
@@ -215,25 +220,29 @@ files:
|
|
215
220
|
- spec/stub.rb
|
216
221
|
homepage: http://github.com/altentee/gridinit-jmeter
|
217
222
|
licenses: []
|
218
|
-
metadata: {}
|
219
223
|
post_install_message:
|
220
224
|
rdoc_options: []
|
221
225
|
require_paths:
|
222
226
|
- lib
|
223
227
|
required_ruby_version: !ruby/object:Gem::Requirement
|
228
|
+
none: false
|
224
229
|
requirements:
|
225
230
|
- - ! '>='
|
226
231
|
- !ruby/object:Gem::Version
|
227
232
|
version: '0'
|
228
233
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
234
|
+
none: false
|
229
235
|
requirements:
|
230
|
-
- - ! '
|
236
|
+
- - ! '>'
|
231
237
|
- !ruby/object:Gem::Version
|
232
|
-
version:
|
238
|
+
version: 1.3.1
|
233
239
|
requirements: []
|
234
240
|
rubyforge_project:
|
235
|
-
rubygems_version:
|
241
|
+
rubygems_version: 1.8.23
|
236
242
|
signing_key:
|
237
|
-
specification_version:
|
243
|
+
specification_version: 3
|
238
244
|
summary: This is a Ruby based DSL for writing JMeter test plans
|
239
|
-
test_files:
|
245
|
+
test_files:
|
246
|
+
- spec/dsl_spec.rb
|
247
|
+
- spec/spec_helper.rb
|
248
|
+
- spec/stub.rb
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
YTdmZWFkNzRhM2YyY2E5MDc4NDcxZjljNzFmMDlhOGY2NjZhYWU3YQ==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
YmJjODI4ZjMzY2U0OTQ2NDc4YjMxZGNmZjAzMzY3ZmMyMGE4NzY0Yg==
|
7
|
-
!binary "U0hBNTEy":
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
ZmZjMDFjNWZjZjRmNWQ1MjQ1N2RjYzBjZGQwNGQ5YTViMjNhZjhlNjIwNTI5
|
10
|
-
MDRkZTlkNTcxZjMzNjZiYmUwMWU4NjJmODgyNThlZDZiMTNmNzAxMTNlNDE2
|
11
|
-
N2I4YTc4MDczZTdmZjE0N2FkOWUxNzZlNTA4NzEzNzg5MTBiMTU=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
OGUxZjYwYjNiOTI0MDFlMmZiNDY3OTFiN2JmMWJkODc2OTJkNDAzYzI4MTFh
|
14
|
-
ZDBhZjg1NmZmMmEwYmUyNjgyYzc4YmZlYzVhNjI5YTNkZWQ3MzI4YTgxNjZm
|
15
|
-
ODY5MGZhODM4NzUyZWI1YWVhYTVmOTcxODJkYWEzN2NkY2QwYTE=
|