Skip to content

Commit 6bd8d61

Browse files
Merge pull request #1558 from NHSDigital/develop
APIM-R 1.33 Cut
2 parents b43a91a + 500d80f commit 6bd8d61

File tree

90 files changed

+4179
-660
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+4179
-660
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ release: clean publish build-proxy
6161
test:
6262
echo "TODO: add tests"
6363

64+
sandbox-tests:
65+
ENVIRONMENT=local SERVICE_BASE_PATH=localhost poetry run pytest -v tests/sandbox
66+
6467
setup-environment:
6568
@if [ -e /usr/bin/yum ]; then \
6669
scripts/rhel_setup_environment.sh; \
@@ -87,4 +90,4 @@ clean-environment:
8790
echo "Environment not Mac or RHEL or Ubuntu"; \
8891
fi
8992

90-
.PHONY: setup-environment clean-environment sandbox
93+
.PHONY: setup-environment clean-environment sandbox sandbox-tests

package-lock.json

Lines changed: 2059 additions & 248 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"license": "MIT",
1313
"homepage": "https://github.com/NHSDigital/e-referrals-service-api",
1414
"dependencies": {
15-
"@redocly/cli": "^1.11.0"
15+
"@redocly/cli": "^1.12.2"
1616
},
1717
"devDependencies": {
1818
"apigeetool": "^0.16.4",

poetry.lock

Lines changed: 186 additions & 185 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ gitpython = "^3.1.43"
2929
lxml = "^4.9.4"
3030
xmlformatter = "^0.2.6"
3131
pytest-check = "^2.2.3"
32-
requests = "^2.31.0"
33-
openapi-core = "^0.19.0"
32+
requests = "^2.32.1"
33+
openapi-core = "^0.19.1"
3434

3535

3636
[tool.poetry.dev-dependencies]
3737
flake8 = "^5.0.4"
38-
black = "^24.3"
38+
black = "^24.4"
3939
pip-licenses = "^4.4.0"
40-
jinja2 = "^3.1.3"
40+
jinja2 = "^3.1.4"
4141
pytest = "^6.1.2"
4242
pytest-asyncio = "^0.20.3"
4343
pytest-nhsd-apim = "^3.3.12"

sandbox/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
FROM node:16.14.2-alpine3.14
22

3+
ENV npm_config_cache /home/node/app/.npm
4+
35
WORKDIR /app
46

57
COPY package*.json ./
@@ -9,7 +11,7 @@ RUN npm install --only=production
911
COPY src ./src
1012
RUN chmod -R a+x /app
1113

12-
USER nobody
14+
USER node
1315

1416
EXPOSE 9000
1517

sandbox/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ build:
1212
docker build -t e-referrals-service-api-sandbox .
1313

1414
run:
15-
docker run -p 9000:9000 e-referrals-service-api-sandbox:latest
15+
docker run -p 9100:9000 e-referrals-service-api-sandbox:latest
1616

1717
clean:
1818
docker stop $$(docker ps -a | awk '$$2 ~ /e-referrals-service-api-sandbox/ {print $$1}') || /bin/true

sandbox/package-lock.json

Lines changed: 31 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sandbox/src/mocks/stu3/acceptReferral/responses/ExampleResponse.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
}
249249
],
250250
"contentType": "image/png",
251-
"url": "Binary/att-70000-70000",
251+
"url": "Binary/b2b22a7e-b3e9-4625-8d2c-00507bfdffb5",
252252
"size": 6,
253253
"title": "upload.png",
254254
"creation": "2021-10-13"

sandbox/src/mocks/stu3/cancelAppointmentActionLater/requests/PriorityChangeAndWithAttachmentsDBS.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"content": [
4141
{
4242
"attachment": {
43-
"url": "Binary/att-70000-70001"
43+
"url": "Binary/b2b22a7e-b3e9-4625-8d2c-00507bfdffb5"
4444
}
4545
}
4646
]
@@ -69,7 +69,7 @@
6969
"content": [
7070
{
7171
"attachment": {
72-
"url": "Binary/att-70000-70002"
72+
"url": "Binary/857b901d-1491-47d3-90e2-6c9f13f744dc"
7373
}
7474
}
7575
]

0 commit comments

Comments
 (0)