gds-api-adapters 41.4.0 → 41.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gds_api/test_helpers/link_checker_api.rb +7 -2
- data/lib/gds_api/version.rb +1 -1
- 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: 73be353e9c8c424e739e099b4782e7d096cdfaa5
|
4
|
+
data.tar.gz: 756c4d32c1ee59921a4720abd56dc7110f4ff565
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2236fa07cb92e897bf5fae76591fa8f2d19a41546383a9b9d6063c4964c14c0489df4a7550b882ce829553da35fbce609c467e7f2cce0372ef59bafea93c860
|
7
|
+
data.tar.gz: 3084d9fcda1b9e946ddcc17ae8af6d343946a19697bd3d0cd0b4b993460f06bf7ddb90f9b3f878d8903cce8872317549dffeb2ff533aab5ff07b8ada6ee98234
|
@@ -44,17 +44,22 @@ module GdsApi
|
|
44
44
|
.to_return(body: body, status: 200, headers: { "Content-Type" => "application/json" })
|
45
45
|
end
|
46
46
|
|
47
|
-
def link_checker_api_create_batch(uris:, checked_within: nil, webhook_uri: nil, id: 0, status: :in_progress, links: nil, totals: {}, completed_at: nil)
|
47
|
+
def link_checker_api_create_batch(uris:, checked_within: nil, webhook_uri: nil, webhook_secret_token: nil, id: 0, status: :in_progress, links: nil, totals: {}, completed_at: nil)
|
48
48
|
links = uris.map { |uri| { uri: uri } } if links.nil?
|
49
49
|
|
50
50
|
response_body = link_checker_api_batch_report_hash(
|
51
|
-
id: id,
|
51
|
+
id: id,
|
52
|
+
status: status,
|
53
|
+
links: links,
|
54
|
+
totals: totals,
|
55
|
+
completed_at: completed_at
|
52
56
|
).to_json
|
53
57
|
|
54
58
|
request_body = {
|
55
59
|
uris: uris,
|
56
60
|
checked_within: checked_within,
|
57
61
|
webhook_uri: webhook_uri,
|
62
|
+
webhook_secret_token: webhook_secret_token,
|
58
63
|
}.delete_if { |_, v| v.nil? }.to_json
|
59
64
|
|
60
65
|
stub_request(:post, "#{LINK_CHECKER_API_ENDPOINT}/batch")
|
data/lib/gds_api/version.rb
CHANGED