Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
Add an integration test script to be run in the pipeline and check the application works correctly.
Fixes SSM-72 #minor
Approach
Starts up the application and sends example files to it to check the are correctly parsed.
For files which create cases, it also checks that a message has been added to the SQS queue.
I updated the Sirius mock to generate unique UIDs on each request, which is used to ensure the SQS message relates to the most recent file.
Fixed a few issues with our existing test files.
Removed LPA002 and LPA002R from
NewCaseDocuments
, as they should be supplied alongside LP2s which create the case.Learning
Bash really mangled the output of the SQS message, stripping away slashes that made it invalid JSON. I avoided this in the end by doing all the manipulation in one
jq
statement, but it was a sticking point when I had a different approach.GitHub Actions doesn't support v1
docker-compose
so I had to update our scripts to v2docker compose
I needed to update the localstack healthcheck script because it was reporting as healthy too early
Checklist