mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
fix(services): solve errors in EMR, RDS, S3 and VPC services (#1913)
This commit is contained in:
@@ -90,7 +90,7 @@ class Test_RDS_Service:
|
||||
assert rds.db_instances[0].id == "db-master-1"
|
||||
assert rds.db_instances[0].region == AWS_REGION
|
||||
assert (
|
||||
rds.db_instances[0].endpoint
|
||||
rds.db_instances[0].endpoint["Address"]
|
||||
== "db-master-1.aaaaaaaaaa.us-east-1.rds.amazonaws.com"
|
||||
)
|
||||
assert rds.db_instances[0].status == "available"
|
||||
|
||||
@@ -75,8 +75,8 @@ class Test_vpc_peering_routing_tables_with_least_privilege:
|
||||
|
||||
service_client.vpc_peering_connections[0].route_tables = [
|
||||
Route(
|
||||
main_route_table_id,
|
||||
["10.12.23.44/32"],
|
||||
id=main_route_table_id,
|
||||
destination_cidrs=["10.12.23.44/32"],
|
||||
)
|
||||
]
|
||||
check = vpc_peering_routing_tables_with_least_privilege()
|
||||
@@ -138,8 +138,8 @@ class Test_vpc_peering_routing_tables_with_least_privilege:
|
||||
|
||||
service_client.vpc_peering_connections[0].route_tables = [
|
||||
Route(
|
||||
main_route_table_id,
|
||||
["10.0.0.0/16"],
|
||||
id=main_route_table_id,
|
||||
destination_cidrs=["10.0.0.0/16"],
|
||||
)
|
||||
]
|
||||
check = vpc_peering_routing_tables_with_least_privilege()
|
||||
|
||||
@@ -163,8 +163,8 @@ class Test_VPC_Service:
|
||||
vpc = VPC(audit_info)
|
||||
vpc.vpc_peering_connections[0].route_tables = [
|
||||
Route(
|
||||
main_route_table_id,
|
||||
["10.0.0.4/24"],
|
||||
id=main_route_table_id,
|
||||
destination_cidrs=["10.0.0.4/24"],
|
||||
)
|
||||
]
|
||||
assert len(vpc.vpc_peering_connections[0].route_tables) == 1
|
||||
|
||||
Reference in New Issue
Block a user