From 8947bcc8a25a0a7e19bf4b4ea562349a6a9225f1 Mon Sep 17 00:00:00 2001 From: Gordon Date: Fri, 19 Apr 2024 15:04:08 -0400 Subject: [PATCH] Update tests --- pkg/engine/testdata/2_routes.deployment-policy.json | 1 + .../testdata/delete_api_to_lambda_edge.deployment-policy.json | 1 + .../testdata/delete_namespace_resource.deployment-policy.json | 1 + pkg/engine/testdata/extend_graph.deployment-policy.json | 1 + pkg/engine/testdata/lambda_efs.deployment-policy.json | 1 + pkg/engine/testdata/namespace_pathselect.deployment-policy.json | 1 + pkg/engine/testdata/remove_path.deployment-policy.json | 1 + pkg/engine/testdata/rename.deployment-policy.json | 1 + pkg/engine/testdata/single_lambda.deployment-policy.json | 1 + pkg/engine/testdata/vpc_import_to_lambda.deployment-policy.json | 1 + .../vpc_import_wo_subnets_to_lambda.deployment-policy.json | 1 + 11 files changed, 11 insertions(+) diff --git a/pkg/engine/testdata/2_routes.deployment-policy.json b/pkg/engine/testdata/2_routes.deployment-policy.json index 787c20dc5..75d700139 100755 --- a/pkg/engine/testdata/2_routes.deployment-policy.json +++ b/pkg/engine/testdata/2_routes.deployment-policy.json @@ -20,6 +20,7 @@ "apigateway:UpdateResource", "apigateway:UpdateRestApi", "apigateway:UpdateStage", + "ec2:DeleteNetworkInterface", "ecr:*Image", "ecr:*Layer*", "ecr:*Repository", diff --git a/pkg/engine/testdata/delete_api_to_lambda_edge.deployment-policy.json b/pkg/engine/testdata/delete_api_to_lambda_edge.deployment-policy.json index 67f646af5..ee2d14081 100755 --- a/pkg/engine/testdata/delete_api_to_lambda_edge.deployment-policy.json +++ b/pkg/engine/testdata/delete_api_to_lambda_edge.deployment-policy.json @@ -20,6 +20,7 @@ "apigateway:UpdateResource", "apigateway:UpdateRestApi", "apigateway:UpdateStage", + "ec2:DeleteNetworkInterface", "ecr:*Image", "ecr:*Layer*", "ecr:*Repository", diff --git a/pkg/engine/testdata/delete_namespace_resource.deployment-policy.json b/pkg/engine/testdata/delete_namespace_resource.deployment-policy.json index 4d699c26c..c19f20e3d 100755 --- a/pkg/engine/testdata/delete_namespace_resource.deployment-policy.json +++ b/pkg/engine/testdata/delete_namespace_resource.deployment-policy.json @@ -2,6 +2,7 @@ "Statement": [ { "Action": [ + "ec2:DeleteNetworkInterface", "ecr:*Image", "ecr:*Layer*", "ecr:*Repository", diff --git a/pkg/engine/testdata/extend_graph.deployment-policy.json b/pkg/engine/testdata/extend_graph.deployment-policy.json index cdb0c1cee..5426cfe92 100755 --- a/pkg/engine/testdata/extend_graph.deployment-policy.json +++ b/pkg/engine/testdata/extend_graph.deployment-policy.json @@ -23,6 +23,7 @@ "dynamodb:CreateTable", "dynamodb:DeleteTable", "dynamodb:UpdateTable", + "ec2:DeleteNetworkInterface", "ecr:*Image", "ecr:*Layer*", "ecr:*Repository", diff --git a/pkg/engine/testdata/lambda_efs.deployment-policy.json b/pkg/engine/testdata/lambda_efs.deployment-policy.json index 56982087c..ea67f8c0e 100755 --- a/pkg/engine/testdata/lambda_efs.deployment-policy.json +++ b/pkg/engine/testdata/lambda_efs.deployment-policy.json @@ -14,6 +14,7 @@ "ec2:*Vpc", "ec2:*Vpc*", "ec2:AssociateRouteTable", + "ec2:DeleteNetworkInterface", "ec2:DeleteSecurityGroup", "ec2:Describe*", "ec2:DescribeAvailabilityZones", diff --git a/pkg/engine/testdata/namespace_pathselect.deployment-policy.json b/pkg/engine/testdata/namespace_pathselect.deployment-policy.json index 2f1650d72..24b006098 100755 --- a/pkg/engine/testdata/namespace_pathselect.deployment-policy.json +++ b/pkg/engine/testdata/namespace_pathselect.deployment-policy.json @@ -14,6 +14,7 @@ "ec2:*Vpc", "ec2:*Vpc*", "ec2:AssociateRouteTable", + "ec2:DeleteNetworkInterface", "ec2:DeleteSecurityGroup", "ec2:Describe*", "ec2:DescribeAvailabilityZones", diff --git a/pkg/engine/testdata/remove_path.deployment-policy.json b/pkg/engine/testdata/remove_path.deployment-policy.json index 53c921b4c..0e405259a 100755 --- a/pkg/engine/testdata/remove_path.deployment-policy.json +++ b/pkg/engine/testdata/remove_path.deployment-policy.json @@ -14,6 +14,7 @@ "ec2:*Vpc", "ec2:*Vpc*", "ec2:AssociateRouteTable", + "ec2:DeleteNetworkInterface", "ec2:DeleteSecurityGroup", "ec2:Describe*", "ec2:DescribeAvailabilityZones", diff --git a/pkg/engine/testdata/rename.deployment-policy.json b/pkg/engine/testdata/rename.deployment-policy.json index 491af0e40..946bfa95a 100755 --- a/pkg/engine/testdata/rename.deployment-policy.json +++ b/pkg/engine/testdata/rename.deployment-policy.json @@ -2,6 +2,7 @@ "Statement": [ { "Action": [ + "ec2:DeleteNetworkInterface", "ecr:*Image", "ecr:*Layer*", "ecr:*Repository", diff --git a/pkg/engine/testdata/single_lambda.deployment-policy.json b/pkg/engine/testdata/single_lambda.deployment-policy.json index 4d699c26c..c19f20e3d 100755 --- a/pkg/engine/testdata/single_lambda.deployment-policy.json +++ b/pkg/engine/testdata/single_lambda.deployment-policy.json @@ -2,6 +2,7 @@ "Statement": [ { "Action": [ + "ec2:DeleteNetworkInterface", "ecr:*Image", "ecr:*Layer*", "ecr:*Repository", diff --git a/pkg/engine/testdata/vpc_import_to_lambda.deployment-policy.json b/pkg/engine/testdata/vpc_import_to_lambda.deployment-policy.json index 937b676cd..d4897b01b 100755 --- a/pkg/engine/testdata/vpc_import_to_lambda.deployment-policy.json +++ b/pkg/engine/testdata/vpc_import_to_lambda.deployment-policy.json @@ -7,6 +7,7 @@ "ec2:*Tags", "ec2:*Vpc", "ec2:*Vpc*", + "ec2:DeleteNetworkInterface", "ec2:DeleteSecurityGroup", "ec2:ModifySecurityGroupRules", "ec2:ModifyVpcAttribute", diff --git a/pkg/engine/testdata/vpc_import_wo_subnets_to_lambda.deployment-policy.json b/pkg/engine/testdata/vpc_import_wo_subnets_to_lambda.deployment-policy.json index 2f1650d72..24b006098 100755 --- a/pkg/engine/testdata/vpc_import_wo_subnets_to_lambda.deployment-policy.json +++ b/pkg/engine/testdata/vpc_import_wo_subnets_to_lambda.deployment-policy.json @@ -14,6 +14,7 @@ "ec2:*Vpc", "ec2:*Vpc*", "ec2:AssociateRouteTable", + "ec2:DeleteNetworkInterface", "ec2:DeleteSecurityGroup", "ec2:Describe*", "ec2:DescribeAvailabilityZones",