et_fake_ccd 1.0.7 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +20 -22
- data/et_fake_ccd.gemspec +1 -1
- data/lib/et_fake_ccd/command/{create_bulk_action_case_command.rb → create_multiple_case_command.rb} +1 -1
- data/lib/et_fake_ccd/commands.rb +1 -1
- data/lib/et_fake_ccd/config.rb +1 -0
- data/lib/et_fake_ccd/service/data_store_app.rb +3 -3
- data/lib/et_fake_ccd/service/ecm_app.rb +5 -3
- data/lib/et_fake_ccd/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 715abb41a7a8c8b03d511144100c3c850bdf0c28ac692ff4035fe4f1e98fbd20
|
4
|
+
data.tar.gz: 610bfb8032916563890b8078e433ad7db24b7d42ba623d2e01579432f9fe489d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b0c423548802001cad2d385821ad76aae05a760e00152fac1fb7fc5864246401ac98bd70267c93cf9e744831ca6abf96dcb3056f99cf0e157ae3504908732fb
|
7
|
+
data.tar.gz: 29bdc2795a91160e1bdd654d5b10a83074f568a10d0a63e69e8509c318fd1fe4d527607b806918b68019c6ec7a407b49a07b2eac3c66deaa1c0b60cf6af2a41e
|
data/Gemfile.lock
CHANGED
@@ -1,43 +1,42 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
et_fake_ccd (1.
|
4
|
+
et_fake_ccd (1.1.3)
|
5
5
|
activemodel (>= 5.2.3)
|
6
6
|
iodine (~> 0.7)
|
7
7
|
json-schema (~> 2.5)
|
8
8
|
roda (~> 3.21)
|
9
|
-
rotp (~>
|
9
|
+
rotp (~> 6.2)
|
10
10
|
thor (~> 1.0)
|
11
11
|
tilt (~> 2.0, >= 2.0.9)
|
12
12
|
|
13
13
|
GEM
|
14
14
|
remote: https://rubygems.org/
|
15
15
|
specs:
|
16
|
-
activemodel (6.
|
17
|
-
activesupport (= 6.
|
18
|
-
activesupport (6.
|
16
|
+
activemodel (6.1.1)
|
17
|
+
activesupport (= 6.1.1)
|
18
|
+
activesupport (6.1.1)
|
19
19
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
20
|
-
i18n (>=
|
21
|
-
minitest (
|
22
|
-
tzinfo (~>
|
23
|
-
zeitwerk (~> 2.
|
20
|
+
i18n (>= 1.6, < 2)
|
21
|
+
minitest (>= 5.1)
|
22
|
+
tzinfo (~> 2.0)
|
23
|
+
zeitwerk (~> 2.3)
|
24
24
|
addressable (2.7.0)
|
25
25
|
public_suffix (>= 2.0.2, < 5.0)
|
26
|
-
concurrent-ruby (1.1.
|
26
|
+
concurrent-ruby (1.1.7)
|
27
27
|
diff-lcs (1.3)
|
28
|
-
i18n (1.8.
|
28
|
+
i18n (1.8.7)
|
29
29
|
concurrent-ruby (~> 1.0)
|
30
|
-
iodine (0.7.
|
30
|
+
iodine (0.7.43)
|
31
31
|
json-schema (2.8.1)
|
32
32
|
addressable (>= 2.4)
|
33
|
-
minitest (5.14.
|
34
|
-
public_suffix (4.0.
|
35
|
-
rack (2.2.
|
33
|
+
minitest (5.14.3)
|
34
|
+
public_suffix (4.0.6)
|
35
|
+
rack (2.2.3)
|
36
36
|
rake (13.0.1)
|
37
|
-
roda (3.
|
37
|
+
roda (3.40.0)
|
38
38
|
rack
|
39
|
-
rotp (
|
40
|
-
addressable (~> 2.5)
|
39
|
+
rotp (6.2.0)
|
41
40
|
rspec (3.9.0)
|
42
41
|
rspec-core (~> 3.9.0)
|
43
42
|
rspec-expectations (~> 3.9.0)
|
@@ -52,11 +51,10 @@ GEM
|
|
52
51
|
rspec-support (~> 3.9.0)
|
53
52
|
rspec-support (3.9.2)
|
54
53
|
thor (1.0.1)
|
55
|
-
thread_safe (0.3.6)
|
56
54
|
tilt (2.0.10)
|
57
|
-
tzinfo (
|
58
|
-
|
59
|
-
zeitwerk (2.
|
55
|
+
tzinfo (2.0.4)
|
56
|
+
concurrent-ruby (~> 1.0)
|
57
|
+
zeitwerk (2.4.2)
|
60
58
|
|
61
59
|
PLATFORMS
|
62
60
|
ruby
|
data/et_fake_ccd.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_dependency 'roda', '~> 3.21'
|
27
27
|
spec.add_dependency 'thor', '~> 1.0'
|
28
28
|
spec.add_dependency 'activemodel', '>= 5.2.3'
|
29
|
-
spec.add_dependency 'rotp', '~>
|
29
|
+
spec.add_dependency 'rotp', '~> 6.2'
|
30
30
|
spec.add_dependency 'tilt', '~> 2.0', '>= 2.0.9'
|
31
31
|
spec.add_dependency 'iodine', '~> 0.7'
|
32
32
|
spec.add_dependency 'json-schema', '~> 2.5'
|
data/lib/et_fake_ccd/commands.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'et_fake_ccd/command/lease_command'
|
2
2
|
require 'et_fake_ccd/command/login_user_command'
|
3
3
|
require 'et_fake_ccd/command/create_case_command'
|
4
|
-
require 'et_fake_ccd/command/
|
4
|
+
require 'et_fake_ccd/command/create_multiple_case_command'
|
5
5
|
require 'et_fake_ccd/command/upload_document_command'
|
6
6
|
require 'et_fake_ccd/command/upload_documents_to_case_command'
|
7
7
|
require 'et_fake_ccd/command/start_multiple_command'
|
data/lib/et_fake_ccd/config.rb
CHANGED
@@ -19,7 +19,7 @@ module EtFakeCcd
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
22
|
-
r.is "caseworkers", String, "jurisdictions", String, "case-types", String, "event-triggers", "
|
22
|
+
r.is "caseworkers", String, "jurisdictions", String, "case-types", String, "event-triggers", "createMultiple", "token" do |uid, jid, ctid|
|
23
23
|
r.get do
|
24
24
|
if EtFakeCcd::AuthService.validate_service_token(r.headers['ServiceAuthorization'].gsub(/\ABearer /, '')) && EtFakeCcd::AuthService.validate_user_token(r.headers['Authorization'].gsub(/\ABearer /, ''))
|
25
25
|
initiate_bulk_case(uid, jid, ctid)
|
@@ -69,7 +69,7 @@ module EtFakeCcd
|
|
69
69
|
|
70
70
|
command = case json.dig('event', 'id')
|
71
71
|
when 'initiateCase' then ::EtFakeCcd::Command::CreateCaseCommand.from_json json
|
72
|
-
when '
|
72
|
+
when 'createMultiple' then ::EtFakeCcd::Command::CreateMultipleCaseCommand.from_json json
|
73
73
|
else
|
74
74
|
r.halt 400, unknown_event_error_for(r)
|
75
75
|
end
|
@@ -202,7 +202,7 @@ module EtFakeCcd
|
|
202
202
|
"delete_draft_response_status": nil,
|
203
203
|
"security_classifications": {}
|
204
204
|
},
|
205
|
-
"event_id": "
|
205
|
+
"event_id": "createMultiple"
|
206
206
|
}
|
207
207
|
JSON.generate(j)
|
208
208
|
end
|
@@ -35,9 +35,11 @@ module EtFakeCcd
|
|
35
35
|
|
36
36
|
def start_multiple_response(response)
|
37
37
|
j = {
|
38
|
-
"
|
39
|
-
|
40
|
-
|
38
|
+
"data": {
|
39
|
+
"caseRefNumberCount": response.case_reference_count,
|
40
|
+
"startCaseRefNumber": response.start_reference,
|
41
|
+
"multipleRefNumber": response.multiple_reference
|
42
|
+
}
|
41
43
|
}
|
42
44
|
JSON.generate(j)
|
43
45
|
end
|
data/lib/et_fake_ccd/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: et_fake_ccd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gary Taylor
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: roda
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '6.2'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '6.2'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: tilt
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -180,8 +180,8 @@ files:
|
|
180
180
|
- lib/et_fake_ccd/auth_service.rb
|
181
181
|
- lib/et_fake_ccd/cli.rb
|
182
182
|
- lib/et_fake_ccd/cli/root.rb
|
183
|
-
- lib/et_fake_ccd/command/create_bulk_action_case_command.rb
|
184
183
|
- lib/et_fake_ccd/command/create_case_command.rb
|
184
|
+
- lib/et_fake_ccd/command/create_multiple_case_command.rb
|
185
185
|
- lib/et_fake_ccd/command/lease_command.rb
|
186
186
|
- lib/et_fake_ccd/command/login_user_command.rb
|
187
187
|
- lib/et_fake_ccd/command/start_multiple_command.rb
|
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
226
|
version: '0'
|
227
227
|
requirements: []
|
228
228
|
rubyforge_project:
|
229
|
-
rubygems_version: 2.7.
|
229
|
+
rubygems_version: 2.7.6
|
230
230
|
signing_key:
|
231
231
|
specification_version: 4
|
232
232
|
summary: Fake CCD server for employment tribunals
|