et_fake_ccd 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/et_fake_ccd/service/api_gateway_web_app.rb +1 -1
- data/lib/et_fake_ccd/service/data_store_app.rb +2 -2
- data/lib/et_fake_ccd/service/sidam_app.rb +28 -0
- data/lib/et_fake_ccd/service/ui_app.rb +5 -5
- data/lib/et_fake_ccd/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: 8c1735b570fc200a1db52f8d4a8485d88eac75334299082a393c67a291b6c21f
|
4
|
+
data.tar.gz: 2219ca1450bb35ecd8af4ac19d332ec74c269390a0664c38bbdb27dba5d3dd32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7aaa5bc3152d517b0e2f7b0dce4803a5a79a7348ee86537cac5cb1a414591a49c542d50b73344c0c0ddd2a7e696f503426124d7a3c283dcc8b1c90f7eae76a00
|
7
|
+
data.tar.gz: d09f8a59189714facaab8e47983bd88d83ee14e73bbba40883fc05979f5790ef909fc7fe76430e7285ffb1744d4ef0dbcdc65de1ee9ee52eff852c9d9094701b
|
data/Gemfile.lock
CHANGED
@@ -17,7 +17,7 @@ module EtFakeCcd
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
r.on "aggregated" do
|
20
|
-
r.is "caseworkers",
|
20
|
+
r.is "caseworkers", String, "jurisdictions", String, "case-types", String, "cases" do |uid, jid, ctid|
|
21
21
|
r.get do
|
22
22
|
filters = r.params.dup
|
23
23
|
page = (filters.delete('page') || "1").to_i
|
@@ -9,7 +9,7 @@ module EtFakeCcd
|
|
9
9
|
plugin :request_headers
|
10
10
|
plugin :halt
|
11
11
|
route do |r|
|
12
|
-
r.is "caseworkers",
|
12
|
+
r.is "caseworkers", String, "jurisdictions", String, "case-types", String, "event-triggers", "initiateCase", "token" do |uid, jid, ctid|
|
13
13
|
r.get do
|
14
14
|
if EtFakeCcd::AuthService.validate_service_token(r.headers['ServiceAuthorization'].gsub(/\ABearer /, '')) && EtFakeCcd::AuthService.validate_user_token(r.headers['Authorization'].gsub(/\ABearer /, ''))
|
15
15
|
initiate_case(uid, jid, ctid)
|
@@ -18,7 +18,7 @@ module EtFakeCcd
|
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
21
|
-
r.is "caseworkers",
|
21
|
+
r.is "caseworkers", String, "jurisdictions", String, "case-types", String, "cases" do |uid, jid, ctid|
|
22
22
|
r.post do
|
23
23
|
if !EtFakeCcd::AuthService.validate_service_token(r.headers['ServiceAuthorization'].gsub(/\ABearer /, '')) || !EtFakeCcd::AuthService.validate_user_token(r.headers['Authorization'].gsub(/\ABearer /, ''))
|
24
24
|
r.halt 403, forbidden_error_for(r)
|
@@ -18,6 +18,11 @@ module EtFakeCcd
|
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
21
|
+
r.is "details" do
|
22
|
+
r.get do
|
23
|
+
details_result
|
24
|
+
end
|
25
|
+
end
|
21
26
|
end
|
22
27
|
|
23
28
|
private
|
@@ -34,6 +39,29 @@ module EtFakeCcd
|
|
34
39
|
JSON.generate(j)
|
35
40
|
end
|
36
41
|
|
42
|
+
def details_result
|
43
|
+
j = {
|
44
|
+
"id": "650692bb-cefe-466a-ba8d-687377173064",
|
45
|
+
"forename": "Fred",
|
46
|
+
"surname": "Bloggs",
|
47
|
+
"email": "fred.bloggs@gmail.com",
|
48
|
+
"active": true,
|
49
|
+
"roles": [
|
50
|
+
"caseworker-publiclaw-localAuthority",
|
51
|
+
"caseworker-publiclaw",
|
52
|
+
"caseworker",
|
53
|
+
"caseworker-employment-tribunal-manchester",
|
54
|
+
"caseworker-employment-tribunal-manchester-caseofficer",
|
55
|
+
"caseworker-employment-tribunal-manchester-casesupervisor",
|
56
|
+
"caseworker-employment-tribunal-glasgow",
|
57
|
+
"caseworker-employment",
|
58
|
+
"caseworker-employment-tribunal-glasgow-casesupervisor",
|
59
|
+
"caseworker-employment-tribunal-glasgow-caseofficer"
|
60
|
+
]
|
61
|
+
}
|
62
|
+
JSON.generate j
|
63
|
+
end
|
64
|
+
|
37
65
|
def render_error_for(command)
|
38
66
|
"Its broke"
|
39
67
|
end
|
@@ -21,12 +21,12 @@ module EtFakeCcd
|
|
21
21
|
def config_result
|
22
22
|
j = {
|
23
23
|
"login_url": url_for("/authentication-web/login"),
|
24
|
-
"logout_url": url_for("
|
25
|
-
"api_url": url_for("
|
26
|
-
"case_data_url": url_for("
|
27
|
-
"document_management_url": url_for("
|
24
|
+
"logout_url": url_for("/api-gateway/logout"),
|
25
|
+
"api_url": url_for("/api-gateway/aggregated"),
|
26
|
+
"case_data_url": url_for("/api-gateway/data"),
|
27
|
+
"document_management_url": url_for("/api-gateway/documents"),
|
28
28
|
"pagination_page_size": 25,
|
29
|
-
"oauth2_token_endpoint_url": url_for("
|
29
|
+
"oauth2_token_endpoint_url": url_for("/api-gateway/oauth2"),
|
30
30
|
"oauth2_client_id": url_for("ccd_gateway")
|
31
31
|
}
|
32
32
|
JSON.generate(j)
|
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: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gary Taylor
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: roda
|