dor-workflow-client 7.4.0 → 7.4.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5b29586cf5f0f5d2fd768d99ae4533af1d29e1879daa96b1e5611e09ef8195ff
|
|
4
|
+
data.tar.gz: 74c7641b0e942528005d65318116702a5cba4171b6f833f2ec46aa3065619ac7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 46e27f180e3df6018706a9f01051ff09e757795bdc76e013ff8e493a01ba45a639f054a0fefa55f340e3aa054c7458eb4fc82acc8233f2c28208a8476e17c5b3
|
|
7
|
+
data.tar.gz: 9597f00cc9074bac61867dd441b2d96150ce814763c2d5e25b84e3741b905a0233f5a96e1061f61ba0f43aef13a5aebb57f18f9911d12026c7e51acc78ffc832
|
data/.circleci/config.yml
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
dor-workflow-client (7.4.
|
|
4
|
+
dor-workflow-client (7.4.1)
|
|
5
5
|
activesupport (>= 3.2.1, < 8)
|
|
6
6
|
deprecation (>= 0.99.0)
|
|
7
7
|
faraday (~> 2.0)
|
|
@@ -12,7 +12,7 @@ PATH
|
|
|
12
12
|
GEM
|
|
13
13
|
remote: https://rubygems.org/
|
|
14
14
|
specs:
|
|
15
|
-
activesupport (7.1.3.
|
|
15
|
+
activesupport (7.1.3.3)
|
|
16
16
|
base64
|
|
17
17
|
bigdecimal
|
|
18
18
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
@@ -26,7 +26,7 @@ GEM
|
|
|
26
26
|
public_suffix (>= 2.0.2, < 6.0)
|
|
27
27
|
ast (2.4.2)
|
|
28
28
|
base64 (0.2.0)
|
|
29
|
-
bigdecimal (3.1.
|
|
29
|
+
bigdecimal (3.1.8)
|
|
30
30
|
byebug (11.1.3)
|
|
31
31
|
concurrent-ruby (1.2.3)
|
|
32
32
|
connection_pool (2.4.1)
|
|
@@ -45,16 +45,16 @@ GEM
|
|
|
45
45
|
faraday-retry (2.2.1)
|
|
46
46
|
faraday (~> 2.0)
|
|
47
47
|
hashdiff (1.1.0)
|
|
48
|
-
i18n (1.14.
|
|
48
|
+
i18n (1.14.5)
|
|
49
49
|
concurrent-ruby (~> 1.0)
|
|
50
50
|
json (2.7.2)
|
|
51
51
|
language_server-protocol (3.17.0.3)
|
|
52
52
|
mini_portile2 (2.8.6)
|
|
53
|
-
minitest (5.
|
|
53
|
+
minitest (5.23.0)
|
|
54
54
|
mutex_m (0.2.0)
|
|
55
55
|
net-http (0.4.1)
|
|
56
56
|
uri
|
|
57
|
-
nokogiri (1.16.
|
|
57
|
+
nokogiri (1.16.5)
|
|
58
58
|
mini_portile2 (~> 2.8.2)
|
|
59
59
|
racc (~> 1.4)
|
|
60
60
|
parallel (1.24.0)
|
|
@@ -62,11 +62,12 @@ GEM
|
|
|
62
62
|
ast (~> 2.4.1)
|
|
63
63
|
racc
|
|
64
64
|
public_suffix (5.0.5)
|
|
65
|
-
racc (1.
|
|
65
|
+
racc (1.8.0)
|
|
66
66
|
rainbow (3.1.1)
|
|
67
67
|
rake (13.2.1)
|
|
68
|
-
regexp_parser (2.9.
|
|
69
|
-
rexml (3.2.
|
|
68
|
+
regexp_parser (2.9.2)
|
|
69
|
+
rexml (3.2.8)
|
|
70
|
+
strscan (>= 3.0.9)
|
|
70
71
|
rspec (3.13.0)
|
|
71
72
|
rspec-core (~> 3.13.0)
|
|
72
73
|
rspec-expectations (~> 3.13.0)
|
|
@@ -76,13 +77,13 @@ GEM
|
|
|
76
77
|
rspec-expectations (3.13.0)
|
|
77
78
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
78
79
|
rspec-support (~> 3.13.0)
|
|
79
|
-
rspec-mocks (3.13.
|
|
80
|
+
rspec-mocks (3.13.1)
|
|
80
81
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
81
82
|
rspec-support (~> 3.13.0)
|
|
82
83
|
rspec-support (3.13.1)
|
|
83
84
|
rspec_junit_formatter (0.6.0)
|
|
84
85
|
rspec-core (>= 2, < 4, != 2.12.0)
|
|
85
|
-
rubocop (1.63.
|
|
86
|
+
rubocop (1.63.5)
|
|
86
87
|
json (~> 2.3)
|
|
87
88
|
language_server-protocol (>= 3.17.0)
|
|
88
89
|
parallel (~> 1.10)
|
|
@@ -93,15 +94,15 @@ GEM
|
|
|
93
94
|
rubocop-ast (>= 1.31.1, < 2.0)
|
|
94
95
|
ruby-progressbar (~> 1.7)
|
|
95
96
|
unicode-display_width (>= 2.4.0, < 3.0)
|
|
96
|
-
rubocop-ast (1.31.
|
|
97
|
-
parser (>= 3.3.0
|
|
97
|
+
rubocop-ast (1.31.3)
|
|
98
|
+
parser (>= 3.3.1.0)
|
|
98
99
|
rubocop-capybara (2.20.0)
|
|
99
100
|
rubocop (~> 1.41)
|
|
100
101
|
rubocop-factory_bot (2.25.1)
|
|
101
102
|
rubocop (~> 1.41)
|
|
102
103
|
rubocop-rake (0.6.0)
|
|
103
104
|
rubocop (~> 1.0)
|
|
104
|
-
rubocop-rspec (2.29.
|
|
105
|
+
rubocop-rspec (2.29.2)
|
|
105
106
|
rubocop (~> 1.40)
|
|
106
107
|
rubocop-capybara (~> 2.17)
|
|
107
108
|
rubocop-factory_bot (~> 2.22)
|
|
@@ -115,6 +116,7 @@ GEM
|
|
|
115
116
|
simplecov_json_formatter (~> 0.1)
|
|
116
117
|
simplecov-html (0.12.3)
|
|
117
118
|
simplecov_json_formatter (0.1.4)
|
|
119
|
+
strscan (3.1.0)
|
|
118
120
|
tzinfo (2.0.6)
|
|
119
121
|
concurrent-ruby (~> 1.0)
|
|
120
122
|
unicode-display_width (2.5.0)
|
|
@@ -124,7 +126,7 @@ GEM
|
|
|
124
126
|
crack (>= 0.3.2)
|
|
125
127
|
hashdiff (>= 0.4.0, < 2.0.0)
|
|
126
128
|
yard (0.9.36)
|
|
127
|
-
zeitwerk (2.6.
|
|
129
|
+
zeitwerk (2.6.14)
|
|
128
130
|
|
|
129
131
|
PLATFORMS
|
|
130
132
|
ruby
|
|
@@ -51,6 +51,7 @@ module Dor
|
|
|
51
51
|
def update_status(druid:, workflow:, process:, status:, elapsed: 0, lifecycle: nil, note: nil, current_status: nil)
|
|
52
52
|
raise ArgumentError, "Unknown status value #{status}" unless VALID_STATUS.include?(status)
|
|
53
53
|
raise ArgumentError, "Unknown current_status value #{current_status}" if current_status && !VALID_STATUS.include?(current_status)
|
|
54
|
+
raise ArgumentError, "Do not set status to 'error', use update_error_status method" if status == 'error'
|
|
54
55
|
|
|
55
56
|
xml = create_process_xml(name: process, status: status, elapsed: elapsed, lifecycle: lifecycle, note: note)
|
|
56
57
|
uri = "objects/#{druid}/workflows/#{workflow}/#{process}"
|
data/lib/dor/workflow/client.rb
CHANGED
|
@@ -24,7 +24,7 @@ module Dor
|
|
|
24
24
|
#
|
|
25
25
|
# Create and update workflows
|
|
26
26
|
class Client
|
|
27
|
-
# From
|
|
27
|
+
# From workflow-server-rails' app/models/workflow_step.rb
|
|
28
28
|
VALID_STATUS = %w[waiting completed error queued skipped started].freeze
|
|
29
29
|
|
|
30
30
|
attr_accessor :requestor
|
|
@@ -108,6 +108,12 @@ RSpec.describe Dor::Workflow::Client::WorkflowRoutes do
|
|
|
108
108
|
expect { routes.update_status(druid: druid, workflow: 'accessionWF', process: 'publish', status: 'NOT_VALID_STATUS') }.to raise_error(ArgumentError)
|
|
109
109
|
end
|
|
110
110
|
end
|
|
111
|
+
|
|
112
|
+
context 'when an error status is provided' do
|
|
113
|
+
it 'throws an exception' do
|
|
114
|
+
expect { routes.update_status(druid: druid, workflow: 'accessionWF', process: 'publish', status: 'error') }.to raise_error(ArgumentError)
|
|
115
|
+
end
|
|
116
|
+
end
|
|
111
117
|
end
|
|
112
118
|
|
|
113
119
|
describe '#update_error_status' do
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dor-workflow-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.4.
|
|
4
|
+
version: 7.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Willy Mene
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2024-05-
|
|
12
|
+
date: 2024-05-23 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|