mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
fix(test_only_aws_service_linked_roles): Flaky test (#2666)
This commit is contained in:
@@ -279,11 +279,13 @@ class Test_iam_role_cross_account_readonlyaccess_policy:
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
current_audit_info = self.set_mocked_audit_info()
|
||||||
|
|
||||||
with mock.patch(
|
with mock.patch(
|
||||||
"prowler.providers.aws.services.iam.iam_service.IAM",
|
"prowler.providers.aws.lib.audit_info.audit_info.current_audit_info",
|
||||||
new=iam_client,
|
new=current_audit_info,
|
||||||
), mock.patch(
|
), mock.patch(
|
||||||
"prowler.providers.aws.services.iam.iam_client.iam_client",
|
"prowler.providers.aws.services.iam.iam_role_cross_account_readonlyaccess_policy.iam_role_cross_account_readonlyaccess_policy.iam_client",
|
||||||
new=iam_client,
|
new=iam_client,
|
||||||
):
|
):
|
||||||
# Test Check
|
# Test Check
|
||||||
|
|||||||
Reference in New Issue
Block a user