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

Unittest File created for MTA- STS #4546

Closed vijaykannan21 closed 2 days ago

vijaykannan21 commented 2 weeks ago

:eyes: Purpose

•The set of unit tests for a function that checks the MTA-STS (Mail Transfer Agent Strict Transport Security) configurations kept in AWS S3 buckets for a list of domains is defined by the provided code. These tests are primarily used to verify that the function operates as intended in various contexts. These cases cover handling the lack of AWS credentials and retrieving MTA-STS configurations both successfully and unsuccessfully with the'mode: enforce' directive. To mimic various answers from the S3 service, the tests make use of the unittest.mock library and the unittest framework.

:recycle: What's Changed

: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 2 2 0.48s
✅ PYTHON isort 2 1 0 0.33s
❌ PYTHON pylint 2 5 2.23s
✅ REPOSITORY gitleaks yes no 1.39s

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_

jasonBirchall commented 2 weeks ago

@vijaykannan21 can you make this a draft until it's ready to review?