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.
- checksums.yaml +4 -4
- data/lib/rspec/spec_helper.rb +12 -0
- 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: 36374897cf2bdbf0928f6a8f49e86b1086df49b1
|
4
|
+
data.tar.gz: 5830db301c4892e5bbdc9d4631ddc3a3fba63c7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c22f32ecc7ad20e78f6cd361daecb0167404400599620d3eb532f67eac2e1c1eacda59f775cc78fe7573e25c6a36924544dc5830bb95a310a23dd6399d9032a6
|
7
|
+
data.tar.gz: 08e0594fb5f3b50b2e0568886865be063203a97f1ebc878b9229ddbe23f5a6bd3321f243479af3e56f78534d330ac315b33e170aac2ddd05222e8c2bb16f8de9
|
data/lib/rspec/spec_helper.rb
CHANGED
@@ -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.
|
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:
|
11
|
+
date: 2016-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|