ruby-jmeter 3.0.4 → 3.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby-jmeter/extend/config_elements/http_request_defaults.rb +11 -0
- data/lib/ruby-jmeter/extend/controllers/foreach_controller.rb +2 -0
- data/lib/ruby-jmeter/extend/misc/flood.rb +2 -1
- data/lib/ruby-jmeter/version.rb +1 -1
- data/spec/http_request_defaults_spec.rb +11 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0154d7de05f20976f59d4bcc0fedd22bf90d97b8
|
4
|
+
data.tar.gz: 64c43a74aeb7d37b0c0872a5a2fdbcf485d1dd3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7c38420938a8fbb9927a4fa0c4f57ed4a351a2428caa6fb149c3fbb202302e15b66fd20a60e57516be8acb7ed3bacfa79a9057cbc2c217a6a045c35d4321661
|
7
|
+
data.tar.gz: 5c831a2f1c8b5775efe4fdf4486bbe0b140feb6caeea8938ccae9a4c4aa1f90ed708876b040ece6a96ef0d5484bf5268a086ca8e7013c5519f69c8c70ee24b4b
|
@@ -18,6 +18,17 @@ module RubyJmeter
|
|
18
18
|
EOS
|
19
19
|
) if params[:md5]
|
20
20
|
|
21
|
+
node.doc.children.first.add_child (
|
22
|
+
Nokogiri::XML(<<-EOS.strip_heredoc).children
|
23
|
+
<stringProp name="HTTPSampler.proxyHost">#{params[:proxy_host]}</stringProp>
|
24
|
+
EOS
|
25
|
+
) if params[:proxy_host]
|
26
|
+
|
27
|
+
node.doc.children.first.add_child (
|
28
|
+
Nokogiri::XML(<<-EOS.strip_heredoc).children
|
29
|
+
<stringProp name="HTTPSampler.proxyPort">#{params[:proxy_port]}</stringProp>
|
30
|
+
EOS
|
31
|
+
) if params[:proxy_port]
|
21
32
|
end
|
22
33
|
|
23
34
|
attach_node(node, &block)
|
@@ -29,7 +29,8 @@ module RubyJmeter
|
|
29
29
|
duration: params[:duration],
|
30
30
|
override_parameters: params[:override_parameters],
|
31
31
|
started: params[:started],
|
32
|
-
stopped: params[:stopped]
|
32
|
+
stopped: params[:stopped],
|
33
|
+
privacy_flag: params[:privacy_flag] || 'private',
|
33
34
|
},
|
34
35
|
flood_files: flood_files,
|
35
36
|
region: params[:region],
|
data/lib/ruby-jmeter/version.rb
CHANGED
@@ -9,7 +9,9 @@ describe 'regular_expression_extractor' do
|
|
9
9
|
implementation: 'HttpClient3.1',
|
10
10
|
download_resources: true,
|
11
11
|
use_concurrent_pool: 5,
|
12
|
-
urls_must_match: 'http.+?example.com'
|
12
|
+
urls_must_match: 'http.+?example.com',
|
13
|
+
proxy_host: 'proxy',
|
14
|
+
proxy_port: 8080
|
13
15
|
end.to_doc
|
14
16
|
end
|
15
17
|
|
@@ -43,5 +45,13 @@ describe 'regular_expression_extractor' do
|
|
43
45
|
it 'matches on embedded url regex' do
|
44
46
|
expect(config_fragment.search(".//stringProp[@name='HTTPSampler.embedded_url_re']").text).to eq 'http.+?example.com'
|
45
47
|
end
|
48
|
+
|
49
|
+
it 'matches on proxy_host' do
|
50
|
+
expect(config_fragment.search(".//stringProp[@name='HTTPSampler.proxyHost']").text).to eq 'proxy'
|
51
|
+
end
|
52
|
+
|
53
|
+
it 'matches on proxy_port' do
|
54
|
+
expect(config_fragment.search(".//stringProp[@name='HTTPSampler.proxyPort']").text).to eq '8080'
|
55
|
+
end
|
46
56
|
end
|
47
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-jmeter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Koopmans
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|