testbeat 0.5.3 → 0.5.4

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rspec/spec_helper.rb +12 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b6a1a1bff9f304ad415f6f0dd6dbd2c8dc77708
4
- data.tar.gz: f4cc66b06ca8e10bab9840b2ac94e967fce1c7bb
3
+ metadata.gz: 36374897cf2bdbf0928f6a8f49e86b1086df49b1
4
+ data.tar.gz: 5830db301c4892e5bbdc9d4631ddc3a3fba63c7d
5
5
  SHA512:
6
- metadata.gz: 917fb4fc8c734704bc3a9fb1ac4d13c980b00e0d77cfc1ea06358eb807ae0bfd000b0c6b307999e8e7eab03a60346770b5f6c82730b948eb032ccd36d9987c84
7
- data.tar.gz: ab0c68bea8921801d34e94c64b69a2788915ec3f7f3c43974a8671c0ba2a8b3f23452fccc06f021080aa50af2b623abdeb299c3e6df5df0077de95694704efd8
6
+ metadata.gz: c22f32ecc7ad20e78f6cd361daecb0167404400599620d3eb532f67eac2e1c1eacda59f775cc78fe7573e25c6a36924544dc5830bb95a310a23dd6399d9032a6
7
+ data.tar.gz: 08e0594fb5f3b50b2e0568886865be063203a97f1ebc878b9229ddbe23f5a6bd3321f243479af3e56f78534d330ac315b33e170aac2ddd05222e8c2bb16f8de9
@@ -273,6 +273,14 @@ class TestbeatContext
273
273
  @method
274
274
  end
275
275
 
276
+ def port
277
+ @rest_port
278
+ end
279
+
280
+ def port?
281
+ !!port
282
+ end
283
+
276
284
  def headers
277
285
  @rest_headers
278
286
  end
@@ -343,6 +351,9 @@ class TestbeatContext
343
351
  if example_group[:headers]
344
352
  @rest_headers = example_group[:headers]
345
353
  end
354
+ if example_group[:port]
355
+ @rest_port = example_group[:port]
356
+ end
346
357
  end
347
358
 
348
359
  end
@@ -397,6 +408,7 @@ class TestbeatRestRequest
397
408
  end
398
409
  # If there's no built in auth support in Net::HTTP we can check for 401 here and re-run the request with auth header
399
410
  Net::HTTP.start(@node.host,
411
+ @testbeat.port,
400
412
  :use_ssl => !@testbeat.unencrypted?,
401
413
  :verify_mode => OpenSSL::SSL::VERIFY_NONE, # Ideally verify should be enabled for non-labs hosts (anything with a FQDN including dots)
402
414
  :open_timeout => @timeout,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testbeat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Staffan Olsson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-10 00:00:00.000000000 Z
11
+ date: 2016-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec