roqua-healthy 1.5.7 → 1.5.8
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 +5 -5
- data/lib/roqua/healthy/errors.rb +3 -0
- data/lib/roqua/healthy/version.rb +1 -1
- data/spec/unit/a19/response_validator_spec.rb +8 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: a7726826aeb7ed397e96265164cfd6e3dfa1658b
|
|
4
|
+
data.tar.gz: b8cde751338d1edce71741669c1e1dd0c425d480
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c016d088616694bb7898579e72669afe500f7f37f55e0c20285682204e4d23f961c0c8c23e3498c5fc7ef39b813e823ab932cefef516ce09a336aa7ed0484fdd
|
|
7
|
+
data.tar.gz: 6dfddbeb4a7bd39cc303a41be2d6017563223d56fc4374a28a0fdb69b575a47445ae680fbc7dbf5a8df60117fa2ba241c437cd8699f999376b1d188cf0829133
|
data/lib/roqua/healthy/errors.rb
CHANGED
|
@@ -9,6 +9,7 @@ module Roqua
|
|
|
9
9
|
class Timeout < ConnectionError; end
|
|
10
10
|
class HostUnreachable < ConnectionError; end
|
|
11
11
|
class ConnectionRefused < ConnectionError; end
|
|
12
|
+
class NoRouteToHost < ConnectionError; end
|
|
12
13
|
|
|
13
14
|
class UnknownFailure < Error; end
|
|
14
15
|
class PatientIdNotInRemote < Error; end
|
|
@@ -46,6 +47,8 @@ module Roqua
|
|
|
46
47
|
::Roqua::Healthy::ConnectionRefused,
|
|
47
48
|
'ERROR: ConnectException: Connection refused' =>
|
|
48
49
|
::Roqua::Healthy::ConnectionRefused,
|
|
50
|
+
'ERROR: NoRouteToHostException: No route to host' =>
|
|
51
|
+
::Roqua::Healthy::NoRouteToHost,
|
|
49
52
|
"ERROR: NACK sent from receiver. (Rejected)" =>
|
|
50
53
|
::Roqua::Healthy::NACK,
|
|
51
54
|
"ERROR: NACK sent from receiver. (Error)" => # ie. Patient not found
|
|
@@ -31,17 +31,23 @@ describe Roqua::Healthy::A19::ResponseValidator do
|
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
context "Unable to connect to destination\tConnectException\tConnection refused" do
|
|
34
|
-
it 'raises ::Roqua::Healthy::
|
|
34
|
+
it 'raises ::Roqua::Healthy::ConnectionRefused' do
|
|
35
35
|
expect { subject.validate }.to raise_error(::Roqua::Healthy::ConnectionRefused)
|
|
36
36
|
end
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
context 'ERROR: ConnectException: Connection refused' do
|
|
40
|
-
it 'raises ::Roqua::Healthy::
|
|
40
|
+
it 'raises ::Roqua::Healthy::ConnectionRefused' do
|
|
41
41
|
expect { subject.validate }.to raise_error(::Roqua::Healthy::ConnectionRefused)
|
|
42
42
|
end
|
|
43
43
|
end
|
|
44
44
|
|
|
45
|
+
context 'ERROR: NoRouteToHostException: No route to host' do
|
|
46
|
+
it 'raises ::Roqua::Healthy::NoRouteToHost' do
|
|
47
|
+
expect { subject.validate }.to raise_error(::Roqua::Healthy::NoRouteToHost)
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
45
51
|
context "ERROR: NACK sent from receiver. (Rejected)" do
|
|
46
52
|
it 'raises ::Roqua::Healthy::NACK' do
|
|
47
53
|
expect { subject.validate }.to raise_error(::Roqua::Healthy::NACK)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: roqua-healthy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.5.
|
|
4
|
+
version: 1.5.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Marten Veldthuis
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2018-
|
|
14
|
+
date: 2018-08-21 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: activesupport
|
|
@@ -408,7 +408,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
408
408
|
version: '0'
|
|
409
409
|
requirements: []
|
|
410
410
|
rubyforge_project:
|
|
411
|
-
rubygems_version: 2.
|
|
411
|
+
rubygems_version: 2.5.2
|
|
412
412
|
signing_key:
|
|
413
413
|
specification_version: 4
|
|
414
414
|
summary: Arranges communication between Mirth and RoQua
|