We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44b1aa2 commit 9301b00Copy full SHA for 9301b00
tests/integration-tests/conftest.py
@@ -26,6 +26,7 @@
26
import configparser
27
import pkg_resources
28
import pytest
29
+from botocore.config import Config
30
from cfn_stacks_factory import CfnStack, CfnStacksFactory
31
from clusters_factory import Cluster, ClustersFactory
32
from conftest_markers import (
@@ -674,7 +675,15 @@ def common_pcluster_policies(region):
674
675
@pytest.fixture(scope="class")
676
def role_factory(region):
677
roles = []
- 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
+ )
687
688
def create_role(trusted_service, policies=()):
689
iam_role_name = f"integ-tests_{trusted_service}_{region}_{random_alphanumeric()}"
0 commit comments