RhinoSecurityLabs / pacu

The AWS exploitation framework, designed for testing the security of Amazon Web Services environments.
https://rhinosecuritylabs.com/aws/pacu-open-source-aws-exploitation-framework/
BSD 3-Clause "New" or "Revised" License
4.37k stars 694 forks source link

Improve tests #436

Closed EduardSchwarzkopf closed 3 months ago

EduardSchwarzkopf commented 5 months ago

This PR should improve the tests for the modules. I'm going to create a structure that allows to create of tests in each module. Will see if I can provide some sort of template for the mock tests with moto.

EduardSchwarzkopf commented 4 months ago

This PR is the basis for integrating further module tests more easily. I have provided an example for cognito__attack. I will add more here, but I prefer to do this in a separate PR. If there any questions, I'm also available via Discord

DaveYesland commented 4 months ago

This looks great! thank you for all these additions, testing is something that certainly needs work in Pacu. We will start reviewing this when time allows and will get it merged.