You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportUSE_SHARED_RESOURCES := $(shell poetry run python scripts/are_resources_shared_for_stack.py $(TF_WORKSPACE_NAME))
@@ -156,20 +157,58 @@ test-performance-prepare:
156
157
mkdir -p $(DIST_PATH)
157
158
PYTHONPATH=. poetry run python tests/performance/environment.py setup $(TF_WORKSPACE_NAME)
158
159
159
-
test-performance: check-warn test-performance-baseline test-performance-stress ## Run the performance tests
160
+
test-performance-internal: check-warn test-performance-baseline-internal test-performance-stress-internal## Run the performance tests against the internal access points
Copy file name to clipboardExpand all lines: tests/performance/README.md
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,8 @@ You will need to generate pointer permissions the first time performance tests a
50
50
```sh
51
51
# In project root
52
52
make perftest-generate-permissions # makes a bunch of json permission files for test organisations
53
-
make build # will take all permissions & create nrlf_permissions.zip file
53
+
make get-s3-perms ENV=perftest # will take all permissions & create nrlf_permissions.zip file
54
+
make build
54
55
55
56
# apply this new permissions zip file to your environment
56
57
cd ./terraform/infrastructure
@@ -71,11 +72,26 @@ make perftest-prepare PERFTEST_TABLE_NAME=nhsd-nrlf--perftest-baseline-pointers-
71
72
72
73
### Run tests
73
74
75
+
#### Internal mode
76
+
74
77
```sh
75
-
make perftest-consumer ENV_TYPE=perftest PERFTEST_HOST=perftest-1.perftest.record-locator.national.nhs.uk
76
-
make perftest-producer ENV_TYPE=perftest PERFTEST_HOST=perftest-1.perftest.record-locator.national.nhs.uk
78
+
assume nhsd-nrlf-test
79
+
make perftest-consumer-internal ENV_TYPE=perftest PERFTEST_HOST=perftest-1.perftest.record-locator.national.nhs.uk
80
+
make perftest-producer-internal ENV_TYPE=perftest PERFTEST_HOST=perftest-1.perftest.record-locator.national.nhs.uk
77
81
```
78
82
83
+
#### Public mode
84
+
85
+
Via apigee proxies - most similar to a supplier. Spins up a local http server in background responsible for refreshing bearer token (valid for 5 mins each).
86
+
87
+
```sh
88
+
assume nhsd-nrlf-mgmt
89
+
make perftest-consumer-public ENV=perftest
90
+
make perftest-producer-public ENV=perftest
91
+
```
92
+
93
+
> Troubleshooting: seeing an unprompted message like "Token refreshed at Mon Jan 19 16:43:35 2026" pop up in your terminal after the test run? The background token server is still going. To resolve, kill the server process with `kill $(lsof -t -i :8765)` (replacing 8765 with your custom port if you specified one).
94
+
79
95
## Seed data
80
96
81
97
Must be run on an empty table. Cannot top up an existing set of pointers.
0 commit comments