gds-api-adapters 54.1.1 → 54.1.2
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_v2.rb +4 -3
- data/lib/gds_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: af4b22c477df01731432933f022e91fc50d013cce16ae1a0480c85e8260d7445
|
|
4
|
+
data.tar.gz: 473ca900c1bf0869669bc38f2544a266faf3728fb236f1b2b4527939ec84cab9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c36afced6f25b2cd79a80d60b367163067dbc6705ee941dd5b28dc151a02f58c7667acfc034cd0a2c119670faea072c884e4554fce2004c6d2e0a9fdab4877b8
|
|
7
|
+
data.tar.gz: 9e619cca79bad8616cf9171699106aaa6d0ce20f4e5914f3ded54384920910119a6267bcaa48cb5fb9aa0f9e4d5b29b0937f6b6863282f685c1b1e461696fdab
|
|
@@ -40,7 +40,7 @@ module GdsApi
|
|
|
40
40
|
# "links" => {
|
|
41
41
|
# "taxons" => %w(level_one_topic level_two_topic),
|
|
42
42
|
# },
|
|
43
|
-
# "previous_version" =>
|
|
43
|
+
# "previous_version" => 3,
|
|
44
44
|
# )
|
|
45
45
|
#
|
|
46
46
|
# @param content_id [UUID]
|
|
@@ -57,13 +57,14 @@ module GdsApi
|
|
|
57
57
|
# "links" => {
|
|
58
58
|
# "taxons" => %w(level_one_topic level_two_topic),
|
|
59
59
|
# },
|
|
60
|
-
# "previous_version" =>
|
|
60
|
+
# "previous_version" => 3,
|
|
61
61
|
# )
|
|
62
62
|
#
|
|
63
63
|
# @param content_id [UUID]
|
|
64
64
|
# @param body [String]
|
|
65
65
|
def stub_publishing_api_patch_links_conflict(content_id, body)
|
|
66
|
-
|
|
66
|
+
previous_version = JSON.parse(body.to_json)["previous_version"]
|
|
67
|
+
override_response_hash = { status: 409, body: version_conflict(previous_version) }
|
|
67
68
|
stub_publishing_api_patch(content_id, body, '/links', override_response_hash)
|
|
68
69
|
end
|
|
69
70
|
|
data/lib/gds_api/version.rb
CHANGED