Commit dfe2056 1 parent 2a88acc commit dfe2056 Copy full SHA for dfe2056
File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ RUN jq 'del(.components.schemas.Query.properties.subQueries)' /tmp/prisoner-offe
20
20
RUN swagger-cli bundle -r -o /prismMocks/prisoner-offender-search.json prisoner-offender-search-tmp1.json
21
21
22
22
RUN sed -i 's/\*\/\*/application\/json/g' /prismMocks/adjudications.json
23
+ RUN sed -i 's/\*\/\*/application\/json/g' /prismMocks/assess-risks-and-needs.json
24
+ RUN sed -i 's/\*\/\*/application\/json/g' /prismMocks/case-notes.json
23
25
RUN sed -i 's/\*\/\*/application\/json/g' /prismMocks/prisoner-offender-search.json
24
26
25
27
ENTRYPOINT sh -c 'port=4010; for file in $(ls /prismMocks/*.json | sort); do node dist/index.js mock -p $port -h 0.0.0.0 $file & port=$((port + 1)); done; wait'
Original file line number Diff line number Diff line change @@ -33,9 +33,16 @@ services:
33
33
dockerfile : Dockerfile.prism
34
34
container_name : prism
35
35
healthcheck :
36
- test : ' curl -H "Authorization: Bearer abc" -f http://localhost:4010/reported-adjudications/hearings?hearingDate=1910-06-03 &&
37
- curl -H "Authorization: Bearer abc" -f http://127.0.0.1:4017/prisoner/A1234AL &&
38
- curl -H "Authorization: Bearer abc" -f http://127.0.0.1:4018/case-details/officiis/1134670863'
36
+ test : ' curl -H "Authorization: Bearer abc" -f http://0.0.0.0:4010/reported-adjudications/hearings?hearingDate=1910-06-03 &&
37
+ curl -H "Authorization: Bearer abc" -f http://0.0.0.0:4011/risks/crn/voluptatem/predictors/all &&
38
+ curl -H "Authorization: Bearer abc" -f http://0.0.0.0:4012/case-notes/types?selectableBy=DPS_USER &&
39
+ curl -H "Authorization: Bearer abc" -f http://0.0.0.0:4013/public/licences/id/123 &&
40
+ curl -H "Authorization: Bearer abc" -f http://0.0.0.0:4014/api/allocation/X1234YZ/primary_pom &&
41
+ curl -H "Authorization: Bearer abc" -f http://0.0.0.0:4015/case/abc/supervisions &&
42
+ curl -H "Authorization: Bearer abc" -f http://0.0.0.0:4016/api/case-notes/usage &&
43
+ curl -H "Authorization: Bearer abc" -f http://0.0.0.0:4017/prisoner/A1234AL &&
44
+ curl -H "Authorization: Bearer abc" -f http://0.0.0.0:4018/case-details/crn/1234 &&
45
+ curl -H "Authorization: Bearer abc" -f http://0.0.0.0:4019/search?crn=sit'
39
46
ports :
40
47
- ' 4010:4010'
41
48
- ' 4011:4011'
You can’t perform that action at this time.
0 commit comments