Migrate IAM AWS managed policy tests from moto to LS#13767
Conversation
LocalStack Community integration with Pro 2 files ± 0 2 suites ±0 2m 41s ⏱️ - 2h 1m 38s Results for commit 260aa69. ± Comparison against base commit aabae16. ♻️ This comment has been updated with latest results. |
Test Results (amd64) - Integration, Bootstrap 5 files ± 0 5 suites ±0 9m 50s ⏱️ - 2h 27m 37s Results for commit 413561a. ± Comparison against base commit 7211a8d. ♻️ This comment has been updated with latest results. |
pinzon
left a comment
There was a problem hiding this comment.
LGTM but there is one change request to be addressed.
| paginator = aws_client.iam.get_paginator("list_policies") | ||
| result = paginator.paginate().build_full_result() | ||
| all_policy_names = {p["PolicyName"] for p in result["Policies"]} |
There was a problem hiding this comment.
comment: 😅 I guess we're not snapshoting this
| class TestAttachAwsManagedPolicyToGroup: | ||
| """Tests for attaching/detaching AWS-managed policies to/from groups.""" |
There was a problem hiding this comment.
Change: I think that at some point this was the original location of test_attach_detach_aws_managed_policy_group that now is in the test_iam_groups.py file. Lets remove this class if it's not necessary anymore.
There was a problem hiding this comment.
Yes, I forgot about that one when moving, will do!
3bbdfe0 to
ae685c6
Compare
cdcd4df to
4526785
Compare
ae685c6 to
413561a
Compare
S3 Image Test Results (AMD64 / ARM64) 2 files 2 suites 7m 42s ⏱️ Results for commit a54e953. |
a54e953 to
413561a
Compare
7211a8d to
aabae16
Compare
413561a to
260aa69
Compare
pinzon
left a comment
There was a problem hiding this comment.
Thanks for addressing the request.
Motivation
We also want to migrate the IAM managed policy tests. As with the other PRs, this will for now skip most of the new tests, and the tests are migrated to LocalStack standards.
Changes
test_get_aws_managed_policyTestGetAwsManagedPolicytest_get_aws_managed_policypartitionfixturetest_get_aws_managed_policy_versionTestGetAwsManagedPolicytest_get_aws_managed_policy_versiontest_get_aws_managed_policy_v8_versionTestGetAwsManagedPolicytest_get_aws_managed_policy_higher_versiontest_managed_policy(list scope parts)TestListPoliciesScopetest_list_policies_scope_local,test_list_policies_scope_aws,test_list_policies_scope_alltest_managed_policy(attach/detach parts)TestListPoliciesScopetest_list_policies_only_attachedtest_managed_policy(role attach/detach + errors)TestRoleManagedPoliciestest_attach_detach_aws_managed_policy_roletest_attach_group_policiesTestAttachAwsManagedPolicyToGrouptest_attach_detach_aws_managed_policy_grouptest_policies_are_not_kept_after_mock_endstest_policies_are_loaded_when_using_env_variabletest_get_account_authorization_detailsTests
Tests are manually verified, and run against AWS both with and without snapshot updates.
Related
Closes UNC-240