Skip to content

Commit b7c3692

Browse files
authored
test(lmi): remove operator role from test (#8507)
we will remove the pre-created operator role; this is to depend on sam default role creation.
1 parent 656f8b2 commit b7c3692

File tree

15 files changed

+1
-36
lines changed

15 files changed

+1
-36
lines changed

appveyor-ubuntu.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ install:
306306
- sh: 'export AWS_SIGNING_PROFILE_VERSION_ARN=$(echo "$test_env_var" | jq -j ".TestSigningProfileARN")'
307307
- sh: 'export LMI_SUBNET_ID=$(echo "$test_env_var" | jq -j ".LMISubnetId")'
308308
- sh: 'export LMI_SECURITY_GROUP_ID=$(echo "$test_env_var" | jq -j ".LMISecurityGroupId")'
309-
- sh: 'export LMI_OPERATOR_ROLE_ARN=$(echo "$test_env_var" | jq -j ".LMIOperatorRoleArn")'
310309

311310
# Runtime-aware Docker Hub authentication with fail-fast
312311
- sh: |

appveyor-windows-al2023.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ install:
104104
$env:AWS_SIGNING_PROFILE_VERSION_ARN = $test_env_var_json.TestSigningProfileARN;
105105
$env:LMI_SUBNET_ID = $test_env_var_json.LMISubnetId;
106106
$env:LMI_SECURITY_GROUP_ID = $test_env_var_json.LMISecurityGroupId;
107-
$env:LMI_OPERATOR_ROLE_ARN = $test_env_var_json.LMIOperatorRoleArn;
108107
}"
109108

110109

appveyor-windows.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ install:
114114
$env:AWS_SIGNING_PROFILE_VERSION_ARN = $test_env_var_json.TestSigningProfileARN;
115115
$env:LMI_SUBNET_ID = $test_env_var_json.LMISubnetId;
116116
$env:LMI_SECURITY_GROUP_ID = $test_env_var_json.LMISecurityGroupId;
117-
$env:LMI_OPERATOR_ROLE_ARN = $test_env_var_json.LMIOperatorRoleArn;
118117
}"
119118

120119

tests/integration/deploy/test_deploy_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1774,7 +1774,7 @@ def test_deploy_lmi_function(self):
17741774
s3_prefix=self.s3_prefix,
17751775
s3_bucket=self.s3_bucket.name,
17761776
force_upload=True,
1777-
parameter_overrides=f"SubnetId={lmi_subnet_id} SecurityGroupId={lmi_security_group_id} OperatorRoleArn={lmi_operator_role_arn}",
1777+
parameter_overrides=f"SubnetId={lmi_subnet_id} SecurityGroupId={lmi_security_group_id}",
17781778
no_execute_changeset=False,
17791779
tags="integ=true lmi=yes",
17801780
confirm_changeset=False,

tests/integration/remote/invoke/test_lambda_invoke_response_stream.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ def setUpClass(cls):
122122
cls.parameter_overrides = {
123123
"SubnetId": os.environ.get("LMI_SUBNET_ID", ""),
124124
"SecurityGroupId": os.environ.get("LMI_SECURITY_GROUP_ID", ""),
125-
"OperatorRoleArn": os.environ.get("LMI_OPERATOR_ROLE_ARN", ""),
126125
}
127126
cls.create_resources_and_boto_clients()
128127

tests/integration/remote/invoke/test_remote_invoke.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def setUpClass(cls):
3434
cls.parameter_overrides = {
3535
"SubnetId": os.environ.get("LMI_SUBNET_ID", ""),
3636
"SecurityGroupId": os.environ.get("LMI_SECURITY_GROUP_ID", ""),
37-
"OperatorRoleArn": os.environ.get("LMI_OPERATOR_ROLE_ARN", ""),
3837
}
3938
cls.create_resources_and_boto_clients()
4039

tests/integration/sync/test_sync_code.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,6 @@ def setUpClass(cls) -> None:
822822
cls.parameter_overrides = {
823823
"SubnetId": os.environ.get("LMI_SUBNET_ID", ""),
824824
"SecurityGroupId": os.environ.get("LMI_SECURITY_GROUP_ID", ""),
825-
"OperatorRoleArn": os.environ.get("LMI_OPERATOR_ROLE_ARN", ""),
826825
}
827826

828827
def test_sync_lmi_with_publish_to_latest_published(self):

tests/integration/sync/test_sync_infra.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,6 @@ def setUpClass(cls) -> None:
613613
cls.parameter_overrides = {
614614
"SubnetId": os.environ.get("LMI_SUBNET_ID", ""),
615615
"SecurityGroupId": os.environ.get("LMI_SECURITY_GROUP_ID", ""),
616-
"OperatorRoleArn": os.environ.get("LMI_OPERATOR_ROLE_ARN", ""),
617616
}
618617

619618
def test_sync_infra_lmi_with_capacity_provider_config(self):

tests/integration/sync/test_sync_watch.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,6 @@ def setUpClass(cls) -> None:
883883
cls.parameter_overrides = {
884884
"SubnetId": os.environ.get("LMI_SUBNET_ID", ""),
885885
"SecurityGroupId": os.environ.get("LMI_SECURITY_GROUP_ID", ""),
886-
"OperatorRoleArn": os.environ.get("LMI_OPERATOR_ROLE_ARN", ""),
887886
}
888887
super().setUpClass()
889888

tests/integration/testdata/package/lmi_function/template.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ Parameters:
99
SecurityGroupId:
1010
Type: String
1111
Description: Security Group ID from infrastructure stack
12-
OperatorRoleArn:
13-
Type: String
14-
Description: Operator Role ARN from infrastructure stack
1512
Team:
1613
Type: String
1714
Default: lambda-tooling-team
@@ -59,7 +56,6 @@ Resources:
5956
LMICapacityProviderOne:
6057
Type: AWS::Serverless::CapacityProvider
6158
Properties:
62-
OperatorRole: !Ref OperatorRoleArn
6359
InstanceRequirements:
6460
Architectures:
6561
- x86_64
@@ -69,7 +65,6 @@ Resources:
6965
LMICapacityProviderTwo:
7066
Type: AWS::Serverless::CapacityProvider
7167
Properties:
72-
OperatorRole: !Ref OperatorRoleArn
7368
InstanceRequirements:
7469
Architectures:
7570
- arm64

0 commit comments

Comments
 (0)