File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 2626import configparser
2727import pkg_resources
2828import pytest
29+ from botocore .config import Config
2930from cfn_stacks_factory import CfnStack , CfnStacksFactory
3031from clusters_factory import Cluster , ClustersFactory
3132from conftest_markers import (
@@ -674,7 +675,15 @@ def common_pcluster_policies(region):
674675@pytest .fixture (scope = "class" )
675676def role_factory (region ):
676677 roles = []
677- iam_client = boto3 .client ("iam" , region_name = region )
678+ iam_client = boto3 .client (
679+ "iam" ,
680+ region_name = region ,
681+ config = Config (
682+ retries = {
683+ "max_attempts" : 10 ,
684+ }
685+ ),
686+ )
678687
679688 def create_role (trusted_service , policies = ()):
680689 iam_role_name = f"integ-tests_{ trusted_service } _{ region } _{ random_alphanumeric ()} "
You can’t perform that action at this time.
0 commit comments