Skip to content
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

iam unit tests #2000

Open
10 of 13 tasks
tremble opened this issue Feb 27, 2024 · 0 comments
Open
10 of 13 tasks

iam unit tests #2000

tremble opened this issue Feb 27, 2024 · 0 comments
Assignees
Milestone

Comments

@tremble
Copy link
Contributor

tremble commented Feb 27, 2024

Summary

Once #1998 is merged we'll have some additional code in module_utils that deserves unit tests:

  • convert_managed_policy_names_to_arns
  • find_iam_managed_policy_by_name
  • get_iam_managed_policy_by_name
  • normalize_iam_mfa_device
  • normalize_iam_mfa_devices
  • normalize_iam_user
  • normalize_iam_policy
  • normalize_iam_group
  • normalize_iam_access_key
  • normalize_iam_access_keys
  • normalize_iam_instance_profile
  • normalize_iam_role

Most of the rest is just a simple wrapper around boto3 client calls with AWSRetry and IAMErrorHandler decorators (both of which have unit tests)

Issue Type

Feature Idea

Component Name

plugins/module_utils/iam.py

Additional Information

No response

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@tremble tremble self-assigned this Feb 27, 2024
@tremble tremble added this to the 8.0.0 milestone Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants