-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
IAM: refactor simulation into simulator class #13326
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
Conversation
LocalStack Community integration with Pro 2 files ± 0 2 suites ±0 52s ⏱️ - 2h 2m 28s Results for commit 7113bd8. ± Comparison against base commit f829e69. This pull request removes 4696 tests.♻️ This comment has been updated with latest results. |
Test Results (amd64) - Integration, Bootstrap 5 files ± 0 5 suites ±0 9m 49s ⏱️ - 2h 30m 22s Results for commit 7113bd8. ± Comparison against base commit f829e69. This pull request removes 5046 tests.♻️ This comment has been updated with latest results. |
dfangl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really nice, thanks for refactoring it this way!
Motivation
This PR refactors the policy simulation logic by introducing an abstract IAMPolicySimulator class and a concrete BasicIAMPolicySimulator implementation, enabling a modular and extensible design. The change allows for easy replacement of simulation behavior and is required for some recent enhancements in the Pro version of LocalStack.
Changes
IAM.simulate_principal_policyoperationTests
Not required since it's a refactoring.