Skip to content

Conversation

MustafaAamir
Copy link

Context

dropping workarounds implemented due to getmoto/moto#6712 - replaces
them with assertions that use the already-copied ManagedPolicy objects maintained by the IAM service.

Description

  • inline policy lookup using iam.policies[arn:policy/policy_name] for users, groups, and roles in tests/providers/aws/services/iam/iam_service_test.py
  • reduces the need to iterate over all policies and creating a new Object when a match is found

Steps to review

$ cd probo
$ poetry install
$ poetry run pytest tests/providers/aws/services/iam/iam_service_test.py

all 26 tests should pass

no addition to CHANGELOG.md is required. No changes were made to the API.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@MustafaAamir MustafaAamir requested review from a team as code owners August 29, 2025 00:55
@github-actions github-actions bot added the provider/aws Issues/PRs related with the AWS provider label Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
provider/aws Issues/PRs related with the AWS provider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants