gds-api-adapters 54.1.2 → 54.1.3
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3c6033a1522858e59e85dee2e9a6f317fb940bad4f41607ae38f182fce3ef08
|
4
|
+
data.tar.gz: 69ec414b46de2bec1c7486077335df7de1b40634877ee5532cb093893e719c86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7119e56d592a0ced2a11ee4032c84d42c9e4b38185ea40446d584b25e9f6a988e4b6d844eb54ead0cf803260ad35ddf306c927232d1a9524d6f44a9ac11142fe
|
7
|
+
data.tar.gz: 062036bf1fc099a1ee65a39a1ee7fea82f24eb4979f56400563aee663749f96478c50dc5a7a648d14f2c1beff2ab7a8069a0c5e2ef2b0d76297362bfcd725efa
|
@@ -22,7 +22,7 @@ module GdsApi
|
|
22
22
|
"_response_info" => { "status" => "not found" }
|
23
23
|
}
|
24
24
|
|
25
|
-
stub_request(:
|
25
|
+
stub_request(:any, "#{ASSET_MANAGER_ENDPOINT}/assets/#{id}")
|
26
26
|
.to_return(body: response.to_json, status: 404)
|
27
27
|
end
|
28
28
|
|
@@ -10,6 +10,7 @@ module GdsApi
|
|
10
10
|
include ContentItemHelpers
|
11
11
|
|
12
12
|
PUBLISHING_API_V2_ENDPOINT = Plek.current.find('publishing-api') + '/v2'
|
13
|
+
PUBLISHING_API_ENDPOINT = Plek.current.find('publishing-api')
|
13
14
|
|
14
15
|
# Stub a PUT /v2/content/:content_id request with the given content id and request body.
|
15
16
|
# if no response_hash is given, a default response as follows is created:
|
@@ -166,6 +167,7 @@ module GdsApi
|
|
166
167
|
# Stub any version 2 request to the publishing API to return a 503 response
|
167
168
|
def publishing_api_isnt_available
|
168
169
|
stub_request(:any, /#{PUBLISHING_API_V2_ENDPOINT}\/.*/).to_return(status: 503)
|
170
|
+
stub_request(:any, /#{PUBLISHING_API_ENDPOINT}\/.*/).to_return(status: 503)
|
169
171
|
end
|
170
172
|
|
171
173
|
# Assert that a draft was saved and published, and links were updated.
|
data/lib/gds_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gds-api-adapters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 54.1.
|
4
|
+
version: 54.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|