ministryofjustice / operations-engineering

This repository is home to the Operations Engineering's tools and utilities for managing, monitoring, and optimising software development processes at the Ministry of Justice. • This repository is defined and managed in Terraform
https://user-guide.operations-engineering.service.justice.gov.uk/
MIT License
11 stars 5 forks source link

check_mta_sts-Unit testfile #4543

Closed vijaykannan21 closed 2 weeks ago

vijaykannan21 commented 2 weeks ago

:eyes: Purpose

• This test suite is designed to verify the functionality of the check_mta_sts module. It includes tests to ensure that the S3 client is correctly initialized with the appropriate AWS credentials using mocked values, thereby confirming the correct interaction with AWS services. Additionally, the suite checks that the list of domains defined in the check_mta_sts module matches an expected list, ensuring the integrity and accuracy of the domain data used by the module. These tests are crucial for maintaining the reliability and correctness of the check_mta_sts module's operations.

:recycle: What's Changed

• Created a new unit test file for check_mta_sts

:memo: Notes


:white_check_mark: Things to Check (Optional)

github-actions[bot] commented 2 weeks ago

🦙 MegaLinter status: ❌ ERROR

Descriptor Linter Files Fixed Errors Elapsed time
❌ PYTHON flake8 1 11 0.43s
✅ PYTHON isort 1 1 0 0.33s
❌ PYTHON pylint 1 6 2.07s
✅ REPOSITORY gitleaks yes no 1.31s

See detailed report in MegaLinter reports _Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff_

_MegaLinter is graciously provided by OX Security_