File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
tests/zenko_tests/e2e_config Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ kubectl run ${POD_NAME} \
112
112
--env=CRR_DESTINATION_LOCATION_NAME=${CRR_DESTINATION_LOCATION_NAME} \
113
113
--env=CRR_SOURCE_ACCOUNT_NAME=${CRR_SOURCE_ACCOUNT_NAME} \
114
114
--env=CRR_DESTINATION_ACCOUNT_NAME=${CRR_DESTINATION_ACCOUNT_NAME} \
115
+ --env=CRR_ROLE_NAME=${CRR_ROLE_NAME} \
115
116
--command -- python3 configuration.py
116
117
117
118
# # wait for updates to trigger zenko upgrades
Original file line number Diff line number Diff line change 82
82
CRR_DESTINATION_LOCATION_NAME : crr-destination-location
83
83
CRR_SOURCE_ACCOUNT_NAME : crr-source-account
84
84
CRR_DESTINATION_ACCOUNT_NAME : crr-destination-account
85
+ CRR_ROLE_NAME : crr-role
85
86
# Enable this for Ring tests
86
87
ENABLE_RING_TESTS : " false"
87
88
RING_S3C_ACCESS_KEY : accessKey1
Original file line number Diff line number Diff line change 7
7
_log = logging .getLogger ("end2end configuration" )
8
8
9
9
IAM_ENDPOINT = os .getenv ("IAM_ENDPOINT" , "http://iam.zenko.local" )
10
+ CRR_ROLE_NAME = os .getenv ("CRR_ROLE_NAME" , "crr-role" )
10
11
11
12
def _setup_crr_iam_resources (account_creds ):
12
13
"""
@@ -25,7 +26,7 @@ def _setup_crr_iam_resources(account_creds):
25
26
credentials = iam_client .create_access_key (UserName = "crr-user" )
26
27
27
28
iam_client .create_role (
28
- RoleName = "crr-role" ,
29
+ RoleName = CRR_ROLE_NAME ,
29
30
AssumeRolePolicyDocument = '''{
30
31
"Version": "2012-10-17",
31
32
"Statement": [
@@ -55,7 +56,7 @@ def _setup_crr_iam_resources(account_creds):
55
56
)
56
57
57
58
iam_client .attach_role_policy (
58
- RoleName = "crr-role" ,
59
+ RoleName = CRR_ROLE_NAME ,
59
60
PolicyArn = policy ["Policy" ]["Arn" ]
60
61
)
61
62
You can’t perform that action at this time.
0 commit comments