Skip to content

Commit 4545a30

Browse files
committed
Merge remote-tracking branch 'origin/main' into feature/eja-eli-173-create-postman-collection-automagically
2 parents dac3478 + 0390bc1 commit 4545a30

Some content is hidden

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

41 files changed

+1567
-789
lines changed

.github/workflows/stage-4-acceptance.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,28 @@ jobs:
130130
- name: "Save result"
131131
run: |
132132
echo "Nothing to save"
133+
- name: Upload Integration Test Results
134+
if: always()
135+
uses: actions/upload-artifact@v4
136+
with:
137+
name: integration-test-results
138+
path: integration-test-results.xml
139+
- name: Gather Integration Test Summaries
140+
if: always()
141+
uses: actions/download-artifact@v4
142+
with:
143+
path: summary
144+
pattern: ci-summary-*
145+
merge-multiple: true
146+
- name: Integration Test Report
147+
if: always()
148+
uses: phoenix-actions/test-reporting@v15
149+
with:
150+
name: Integration Test Summary
151+
path: integration-test-results.xml
152+
reporter: java-junit
153+
output-to: step-summary
154+
133155
test-accessibility:
134156
name: "Accessibility test"
135157
runs-on: ubuntu-latest

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,18 @@ __pycache__/
3030
.venv/
3131

3232
smoketest-report.xml
33-
env
33+
.env
3434
.dir-locals.el
3535
*.pyc
3636
*/package-lock.json
3737
test-report.xml
3838
.coverage
3939

4040
localstack_data/
41+
sandbox/specification/*
4142
/volume/*
4243
/coverage.xml
4344
/lines-of-code-report*
44-
/specification/tmp
4545
/specification/postman
4646
/sandbox/specification/*
47+
/specification/tmp/*

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ install-python:
1010
#Installs dependencies using npm.
1111
install-node:
1212
npm install --legacy-peer-deps
13-
cd sandbox && npm install --legacy-peer-deps
1413

1514
#Configures Git Hooks, which are scripts that run given a specified event.
1615
.git/hooks/pre-commit:
@@ -34,8 +33,9 @@ format: ## Format and fix code
3433
#Creates the fully expanded OAS spec in json
3534
publish: clean
3635
mkdir -p build
36+
mkdir -p sandbox/specification
3737
npm run publish 2> /dev/null
38-
38+
cp build/eligibility-signposting-api.json sandbox/specification/eligibility-signposting-api.json
3939
#Files to loop over in release
4040
_dist_include="pytest.ini poetry.lock poetry.toml pyproject.toml Makefile build/. tests"
4141

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ The software will only be used for signposting an individual to an appropriate s
1616
- [Setup](#setup)
1717
- [Prerequisites](#prerequisites)
1818
- [Configuration](#configuration)
19+
- [Environment variables](#environment-variables)
1920
- [Usage](#usage)
2021
- [Testing](#testing)
22+
- [Sandbox](#sandbox)
2123
- [Conflict with yanai](#conflict-with-yanai)
2224
- [Creating a Postman collection](#creating-a-postman-collection)
2325
- [Design](#design)
@@ -66,7 +68,15 @@ The following software packages, or their equivalents, are expected to be instal
6668
6769
### Configuration
6870
69-
None so far!
71+
#### Environment variables
72+
73+
| Variable | Default | Description |
74+
|-------------------------|-------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
75+
| `DYNAMODB_ENDPOINT` | `http://localhost:4566` | Endpoint for the app to access DynamoDB |
76+
| `AWS_REGION` | `eu-west-1` | AWS Region |
77+
| `AWS_ACCESS_KEY` | `dummy_key` | AWS Access Key |
78+
| `AWS_SECRET_ACCESS_KEY` | `dummy_secret` | AWS Secret Access Key |
79+
| `LOG_LEVEL` | `WARNING` | Logging level. Must be one of `DEBUG`, `INFO`, `WARNING`, `ERROR` or `CRITICAL` as per [Logging Levels](https://docs.python.org/3/library/logging.html#logging-levels) |
7080
7181
## Usage
7282
@@ -82,6 +92,10 @@ make precommit
8292
8393
There are `make` tasks for you to configure to run your tests. Run `make test` to see how they work. You should be able to use the same entry points for local development as in your CI pipeline.
8494

95+
## Sandbox
96+
97+
There is a minimalist sandbox environment in `/sandbox` with an accompanying README with instructions on how to run it locally.
98+
8599
## Conflict with yanai
86100

87101
If you have previously built [yanai](https://nhsd-confluence.digital.nhs.uk/pages/viewpage.action?pageId=48826732), which is the platform we use to supply data to this project, that uses an old version of localstack that does not support our Python version. We have pinned the correct version here and yanai have their version pinned as well so it should work fine, but sometimes issues can arise - if so then removing the docker image can solve that, before then rebuilding.

0 commit comments

Comments
 (0)