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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 772ee2dfcf52c692ffec45df1b2e60606a956a0d
4
- data.tar.gz: e0ac22cc8dc878b602e4fd3d04f7fb31fa5290d3
3
+ metadata.gz: 0154d7de05f20976f59d4bcc0fedd22bf90d97b8
4
+ data.tar.gz: 64c43a74aeb7d37b0c0872a5a2fdbcf485d1dd3c
5
5
  SHA512:
6
- metadata.gz: 0f62a829fbb77d6c9cee1ed96604d77c46e1db689f687981041ff3b193f82b36bfeb1cfc8da228b6a48477266c320e33c8869b5f909101b92f4e98129a4d2340
7
- data.tar.gz: b1759f5c5aefcaeab0b450f3be90a5b9f49d2093e98edd242400ee33790d6527717487f9a6a49024fcbd2ddf46d3c6ef5011a520824a6ddd6448c3ced644e393
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)
@@ -20,6 +20,8 @@ module RubyJmeter
20
20
  )
21
21
  end
22
22
  end
23
+
24
+ attach_node(node, &block)
23
25
  end
24
26
  end
25
27
  end
@@ -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],
@@ -1,3 +1,3 @@
1
1
  module RubyJmeter
2
- VERSION = '3.0.4'
2
+ VERSION = '3.0.5'
3
3
  end
@@ -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
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-08-31 00:00:00.000000000 Z
11
+ date: 2016-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client