gds-api-adapters 63.3.0 → 63.4.0
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/gds_api/test_helpers/publishing_api.rb +9 -6
- data/lib/gds_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a2d2ac699458ff698449cf7f1b853386a53cfc5f7c6cfa27b035619f4519a317
|
|
4
|
+
data.tar.gz: b0602b61f003e2783b1c1316c94b211b33f141286d5f198c0536f2ba05d77156
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a82622969113834480c212952fddb7dc006092be6e59a328426f3a2bc3425ca49887d7652088c65e3e8722bc3a60137e337382f0f2a8cecfb08aa814aed788d8
|
|
7
|
+
data.tar.gz: b6aa5456c1c18ee1facaff816f5bac337f057cf441688bd20cfb0d33fd4d326706a57b4c0feae4e8304e2a436feb693c67a12b0afaf54f98cc823030e6bb92e9
|
|
@@ -174,20 +174,19 @@ module GdsApi
|
|
|
174
174
|
stub_request(:post, %r{\A#{PUBLISHING_API_V2_ENDPOINT}/content/.*/discard-draft})
|
|
175
175
|
end
|
|
176
176
|
|
|
177
|
-
# Stub any
|
|
177
|
+
# Stub any request to the publishing API
|
|
178
178
|
def stub_any_publishing_api_call
|
|
179
|
-
stub_request(:any, %r{\A#{
|
|
179
|
+
stub_request(:any, %r{\A#{PUBLISHING_API_ENDPOINT}})
|
|
180
180
|
end
|
|
181
181
|
|
|
182
|
-
# Stub any
|
|
182
|
+
# Stub any request to the publishing API to return a 404 response
|
|
183
183
|
def stub_any_publishing_api_call_to_return_not_found
|
|
184
|
-
stub_request(:any, %r{\A#{
|
|
184
|
+
stub_request(:any, %r{\A#{PUBLISHING_API_ENDPOINT}})
|
|
185
185
|
.to_return(status: 404, headers: { "Content-Type" => "application/json; charset=utf-8" })
|
|
186
186
|
end
|
|
187
187
|
|
|
188
|
-
# Stub any
|
|
188
|
+
# Stub any request to the publishing API to return a 503 response
|
|
189
189
|
def stub_publishing_api_isnt_available
|
|
190
|
-
stub_request(:any, /#{PUBLISHING_API_V2_ENDPOINT}\/.*/).to_return(status: 503)
|
|
191
190
|
stub_request(:any, /#{PUBLISHING_API_ENDPOINT}\/.*/).to_return(status: 503)
|
|
192
191
|
end
|
|
193
192
|
|
|
@@ -641,6 +640,10 @@ module GdsApi
|
|
|
641
640
|
stub_publishing_api_unreserve_path_with_code(base_path, publishing_app, 422)
|
|
642
641
|
end
|
|
643
642
|
|
|
643
|
+
def stub_any_publishing_api_unreserve_path
|
|
644
|
+
stub_request(:delete, %r{\A#{PUBLISHING_API_ENDPOINT}/paths/})
|
|
645
|
+
end
|
|
646
|
+
|
|
644
647
|
# Stub a PUT /publish-intent/:base_path request with the given base_path
|
|
645
648
|
# and request body.
|
|
646
649
|
#
|
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: 63.
|
|
4
|
+
version: 63.4.0
|
|
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: 2020-
|
|
11
|
+
date: 2020-02-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|