@@ -50,7 +50,6 @@ def tearDown(self):
50
50
("combination/connector_event_rule_to_eb_custom_write" ,),
51
51
("combination/connector_event_rule_to_lambda_write" ,),
52
52
("combination/connector_event_rule_to_lambda_write_multiple" ,),
53
- ("combination/connector_function_to_location_place_index" ,),
54
53
("combination/connector_mix_destination" ,),
55
54
("combination/connector_sqs_to_function" ,),
56
55
("combination/connector_sns_to_function_write" ,),
@@ -75,6 +74,30 @@ def test_connector_by_invoking_a_function(self, template_file_path):
75
74
self .assertEqual (response .get ("StatusCode" ), 200 )
76
75
self .assertEqual (response .get ("FunctionError" ), None )
77
76
77
+ @parameterized .expand (
78
+ [
79
+ ("combination/connector_function_to_location_place_index" ,),
80
+ ]
81
+ )
82
+ @retry_once
83
+ def test_connector_by_invoking_a_function_with_parameters (self , template_file_path ):
84
+ parameters = []
85
+ parameters .append (self .generate_parameter ("IndexName" , f"PlaceIndex-{ generate_suffix ()} " ))
86
+ self .skip_using_service_detector (template_file_path )
87
+ self .create_and_verify_stack (template_file_path , parameters )
88
+
89
+ lambda_function_name = self .get_physical_id_by_logical_id ("TriggerFunction" )
90
+ lambda_client = self .client_provider .lambda_client
91
+
92
+ request_params = {
93
+ "FunctionName" : lambda_function_name ,
94
+ "InvocationType" : "RequestResponse" ,
95
+ "Payload" : "{}" ,
96
+ }
97
+ response = lambda_client .invoke (** request_params )
98
+ self .assertEqual (response .get ("StatusCode" ), 200 )
99
+ self .assertEqual (response .get ("FunctionError" ), None )
100
+
78
101
@parameterized .expand (
79
102
[
80
103
("combination/connector_sfn_to_function_without_policy" ,),
0 commit comments