@@ -31,12 +31,14 @@ def test_bundle_returns_200(self, client: Client) -> None:
3131 data = bundle .model_dump_json (by_alias = True ),
3232 path = "FHIR/R4/Bundle" ,
3333 request_method = "POST" ,
34- headers = {"nhsd-correlation-id " : "test-nhsd -correlation-id-555666777" },
34+ headers = {"X-Correlation-ID " : "test-correlation-id-555666777" },
3535 )
3636
3737 assert response .status_code == 200
3838 assert response .headers ["Content-Type" ] == "application/fhir+json"
39- assert response .headers .get ("nhsd-correlation-id" ) is not None
39+ assert response .headers ["nhsd-correlation-id" ].startswith (
40+ ".test-correlation-id-555666777"
41+ )
4042
4143 response_data = response .json ()
4244 response_bundle = Bundle .model_validate (response_data , by_alias = True )
@@ -258,9 +260,16 @@ class TestStatusEndpoint:
258260
259261 @pytest .mark .status_auth_headers
260262 def test_status_returns_200 (self , client : Client ) -> None :
261- response = client .send_without_payload (request_method = "GET" , path = "_status" )
263+ response = client .send_without_payload (
264+ request_method = "GET" ,
265+ path = "_status" ,
266+ headers = {"X-Correlation-ID" : "test-correlation-id-555666777" },
267+ )
262268 assert response .status_code == 200
263269 assert response .headers ["Content-Type" ] == "application/json"
270+ assert response .headers ["nhsd-correlation-id" ].startswith (
271+ ".test-correlation-id-555666777"
272+ )
264273
265274 parsed = StatusResponse .model_validate (response .json ())
266275
0 commit comments