cf-uaa-lib 3.14.1 → 3.14.3
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/uaa/http.rb +2 -0
- data/lib/uaa/version.rb +1 -1
- data/spec/integration_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 903c34141ef900eafea69aa67eac6e998ff8ed4d
|
4
|
+
data.tar.gz: e994669699594790f50be50a10d7c8a1b1c38dc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8c4455646d340f50b5338481bf51f8d00daf6bf8bcce5c189761bb7f43f3b5c44a93e925266632b04aed9cdd0abc6a04df53110805ab94942410e503b68a49d
|
7
|
+
data.tar.gz: 98340c72c9201bea70d77f1dd3df5fc0a7f5ca2138e0534107cdda121dd26b6f512b127ed6c628ae10e02e1257e91c0027973390c83a132c5d0de746608c7877
|
data/lib/uaa/http.rb
CHANGED
@@ -183,6 +183,8 @@ module Http
|
|
183
183
|
raise SSLException, "Invalid SSL Cert for #{url}. Use '--skip-ssl-validation' to continue with an insecure target"
|
184
184
|
rescue URI::Error, SocketError, SystemCallError => e
|
185
185
|
raise BadTarget, "error: #{e.message}"
|
186
|
+
rescue HTTPClient::ConnectTimeoutError => e
|
187
|
+
raise HTTPException.new "http timeout"
|
186
188
|
end
|
187
189
|
|
188
190
|
def http_request(uri)
|
data/lib/uaa/version.rb
CHANGED
data/spec/integration_spec.rb
CHANGED
@@ -60,7 +60,7 @@ module CF::UAA
|
|
60
60
|
Timeout.timeout(default_http_client_timeout - 1) do
|
61
61
|
scim.get(:user, "admin")
|
62
62
|
end
|
63
|
-
}.to raise_error
|
63
|
+
}.to raise_error HTTPException
|
64
64
|
end
|
65
65
|
|
66
66
|
it 'times out the connection at the configured time for the token issuer' do
|
@@ -68,7 +68,7 @@ module CF::UAA
|
|
68
68
|
Timeout.timeout(default_http_client_timeout - 1) do
|
69
69
|
token_issuer.client_credentials_grant
|
70
70
|
end
|
71
|
-
}.to raise_error
|
71
|
+
}.to raise_error HTTPException
|
72
72
|
end
|
73
73
|
end
|
74
74
|
|