Skip to content

LIME-2122 - Added Template Tests for CloudFormation Templates#44

Merged
smsgds merged 1 commit into
mainfrom
LIME-2122
May 22, 2026
Merged

LIME-2122 - Added Template Tests for CloudFormation Templates#44
smsgds merged 1 commit into
mainfrom
LIME-2122

Conversation

@ChrisBates1
Copy link
Copy Markdown
Contributor

@ChrisBates1 ChrisBates1 commented Apr 24, 2026

Added tests for the public-api, private-api and template
Updated the pr-check.yml workflow to include the infra tests

Proposed changes

What changed

Added new tests to cover the validation of the CloudFormation Templates for the BE

Why did it change

To ensure we adhere to best practices within our templates, including structure, resources defaults etc

Issue tracking

Other considerations

image

Readme.md updated with command to execute infra tests

@ChrisBates1 ChrisBates1 requested a review from a team as a code owner April 24, 2026 16:05
@ChrisBates1 ChrisBates1 force-pushed the LIME-2122 branch 2 times, most recently from 7a69fe3 to 2860c41 Compare May 18, 2026 16:13
Comment thread .github/workflows/pr-check.yml Outdated
Comment thread .github/workflows/pr-check.yml Outdated
Comment thread .github/workflows/pr-check.yml Outdated
permissions:
contents: read
steps:
- name: Checkout
Copy link
Copy Markdown
Contributor

@JessWinterborne JessWinterborne May 19, 2026

Choose a reason for hiding this comment

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

Can we use the shared action like the other jobs here please, instead of checkout and node-setup?

You can see it done in unit tests:

- name: Setup Node
        uses: govuk-one-login/github-actions/node/install-dependencies@4c76410195b5fcb1804fc7c183ed20704252830f

Might be worth thinking about concurrency here as well like other jobs.

Copy link
Copy Markdown
Contributor Author

@ChrisBates1 ChrisBates1 May 20, 2026

Choose a reason for hiding this comment

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

thanks Jess, updated the infra-tests to use the same node setup as the unit-tests
Is it worth at a point setting up a action for the node-setup if we are using it several times through the same workflow and other workflows?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think so personally - you'd have to call it the same number of times either way, it just means we would have one place to update the version.

I think its used three times, but we don't bother defining other actions that are called a similar number of times separately.

Comment thread package.json Outdated
Comment thread README.md
@ChrisBates1 ChrisBates1 force-pushed the LIME-2122 branch 8 times, most recently from 28163ef to 7b3e245 Compare May 20, 2026 09:52
Added tests for the public-api, private-api and template. Added tests to ensure Canary Alarms, LambdaErrors Alarms and APIGW5XXErrors Alarms are covered
@sonarqubecloud
Copy link
Copy Markdown

@smsgds smsgds merged commit a3ff52d into main May 22, 2026
11 checks passed
@smsgds smsgds deleted the LIME-2122 branch May 22, 2026 12:39
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.

3 participants