Skip to content

DTOSS-8991 add contract tests#82

Merged
cameronhargreaves1-nhs merged 8 commits intomainfrom
DTOSS-8991-add-contract-tests
May 22, 2025
Merged

DTOSS-8991 add contract tests#82
cameronhargreaves1-nhs merged 8 commits intomainfrom
DTOSS-8991-add-contract-tests

Conversation

@cameronhargreaves1-nhs
Copy link
Contributor

@cameronhargreaves1-nhs cameronhargreaves1-nhs commented May 21, 2025

Adds contract tests for sending batch messages and getting read messages

@cameronhargreaves1-nhs cameronhargreaves1-nhs force-pushed the DTOSS-8991-add-contract-tests branch from bbda5ad to c2d5252 Compare May 21, 2025 13:59
@cameronhargreaves1-nhs cameronhargreaves1-nhs force-pushed the DTOSS-8991-add-contract-tests branch from c2d5252 to 9f299ea Compare May 21, 2025 14:02
@cameronhargreaves1-nhs cameronhargreaves1-nhs changed the title Dtoss 8991 add contract tests DTOSS-8991 add contract tests May 21, 2025
@cameronhargreaves1-nhs cameronhargreaves1-nhs marked this pull request as ready for review May 21, 2025 14:12
Copy link
Contributor

@steventux steventux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, well done for covering both tests in one go.
I think bringing the expected response JSON in line with the true shape of an NHS Notify response would be more accurate.
I also wonder if we could add some assertions around the headers we generate for the POST to /message/create as that's where a lot of our client logic is. Fine to do this in another PR though.

Copy link
Contributor

@steventux steventux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work on this! 🚀

@cameronhargreaves1-nhs cameronhargreaves1-nhs added this pull request to the merge queue May 22, 2025
Merged via the queue into main with commit bc2389d May 22, 2025
11 checks passed
@cameronhargreaves1-nhs cameronhargreaves1-nhs deleted the DTOSS-8991-add-contract-tests branch May 22, 2025 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants