Skip to content

Commit af50392

Browse files
CCM-15019: Fix broken tests
1 parent 1aa08fd commit af50392

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

lambdas/mesh-download/mesh_download/__tests__/test_processor.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,12 @@ def test_process_sqs_message_invalid_fhir_content(self, mock_datetime):
293293

294294
# Verify CloudEvent envelope fields
295295
assert published_event['type'] == 'uk.nhs.notify.digital.letters.mesh.inbox.message.invalid.v1'
296-
assert published_event['source'] == '/nhs/england/notify/development/primary/data-plane/digitalletters/mesh'
296+
assert published_event['source'] == '/nhs/england/notify/development/primary/digitalletters/mesh'
297297
assert published_event['subject'] == 'customer/00000000-0000-0000-0000-000000000000/recipient/00000000-0000-0000-0000-000000000000'
298298
assert published_event['time'] == '2025-11-19T15:30:45+00:00'
299+
assert published_event['plane'] == 'data'
300+
assert published_event['dataschemaversion'] == '1.0.0'
301+
assert published_event['datacontenttype'] == 'application/json'
299302
assert 'id' in published_event
300303
assert 'tracestate' not in published_event
301304
assert 'partitionkey' not in published_event

tests/playwright/digital-letters-component-tests/mesh-poll-download.component.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ test.describe('Digital Letters - MESH Poll and Download', () => {
357357
id: uuidv4(),
358358
specversion: '1.0',
359359
source:
360-
'/nhs/england/notify/development/primary/data-plane/digitalletters/mesh',
360+
'/nhs/england/notify/development/primary/digitalletters/mesh',
361361
subject:
362362
'customer/00000000-0000-0000-0000-000000000000/recipient/00000000-0000-0000-0000-000000000000',
363363
type: 'uk.nhs.notify.digital.letters.mesh.inbox.message.received.v1',
@@ -369,6 +369,9 @@ test.describe('Digital Letters - MESH Poll and Download', () => {
369369
'00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01',
370370
dataschema:
371371
'https://notify.nhs.uk/cloudevents/schemas/digital-letters/2025-10-draft/data/digital-letters-mesh-inbox-message-received-data.schema.json',
372+
dataschemaversion: '1.0.0',
373+
datacontenttype: 'application/json',
374+
plane: 'data',
372375
data: {
373376
meshMessageId,
374377
senderId,

0 commit comments

Comments
 (0)