-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🧪 Add unit tests where missing #6490
Comments
modernisation-platform-terraform-member-vpc - branch created, vpc successfully created but failing to destroy due to permissions: ministryofjustice/modernisation-platform-terraform-member-vpc#374 |
modernisation-platform-terraform-iam-superadmins - branch created, terraform working but test failing due to permission error: ministryofjustice/modernisation-platform-terraform-iam-superadmins#362 |
modernisation-platform-ami-builds - wip - PR-791 - lots of hard-coded values within the module pointing at MP production environments which myself & @ep-93 have tried to work around but have not maganaged to overcome for testing environment. modernisation-platform-terraform-cross-account-access - completed - PR-319 skipping as no terraform... (question do we want follow-on tickets to implement some form of testing?) Not Required: |
modernisation-platform-terraform-baselines had been amended to use a more up-to-date version of the code (copied to github, pull from main, new checkout and the data pulled back) which stopped an issue on the pull in modernisation-platform which caused a failure. This has yet to be fully tested. Will investigate this further. I attempted to sort out the test files based on the previous PR but this seems to have messed things up again. I will rebuild modernisation-platform-terraform-baseslines tomorrow and see if I can pull the data back in again. |
Got the modernisation-platform-terraform-baselines back correctly but still issues on modernisation-platform plan. Different to previous ones so may need to look at them individually. |
Getting errors when using the baselines/secure_baseline option. OK when running against sprinkler. Will look again on Aaron's return if this remains in its current state. |
The branch I have on the baselines is feature/baselines-changes-6490 for anyone to look at |
I've raised a PR for adding unit tests for the backup module within the baselines module ministryofjustice/modernisation-platform-terraform-baselines#492. |
The baseline module has the following child modules:
|
I am closing this ticket as either unit-tests have been successfully created, not required or follow-on tickets have been raised. |
User Story
As a Modernisation Platform Engineer
I want to add unit tests to modules where they are missing
So that I increase confidence in these modules
here is an example of tests - https://github.com/ministryofjustice/modernisation-platform-terraform-pagerduty-integration/tree/main/test
Value / Purpose
All of our modules should have unit tests. We note this in our User Guide. As part of a recent spike some gaps in our test coverage were noted, so this story should cover adding basic unit test functionality.
Useful Contacts
@dms1981
Additional Information
The following repositories were seen to lack unit tests:
Proposal / Unknowns
No response
Definition of Done
The text was updated successfully, but these errors were encountered: