@@ -121,7 +121,7 @@ def _test_apigw_logs(self, apigw_name, path):
121121 apigw_url = f"{ self ._get_output_value (apigw_name_from_output )} { path } "
122122 # make couple of requests to warm-up APIGW to write its logs to CW
123123 for i in range (APIGW_REQUESTS_TO_WARM_UP ):
124- apigw_result = requests .get (apigw_url )
124+ apigw_result = requests .get (apigw_url , timeout = 10.0 )
125125 LOG .info ("APIGW result %s" , apigw_result )
126126 cmd_list = self .get_logs_command_list (self .stack_name , name = apigw_name )
127127 self ._check_logs (cmd_list , [f"HTTP Method: GET, Resource Path: /{ path } " ])
@@ -138,7 +138,7 @@ def _test_end_to_end_apigw(self, apigw_name, path):
138138 # apigw name in output section doesn't have forward slashes
139139 apigw_name_from_output = apigw_name .replace ("/" , "" )
140140 apigw_url = f"{ self ._get_output_value (apigw_name_from_output )} { path } "
141- apigw_result = requests .get (apigw_url )
141+ apigw_result = requests .get (apigw_url , timeout = 10.0 )
142142 LOG .info ("APIGW result %s" , apigw_result )
143143 cmd_list = self .get_logs_command_list (self .stack_name )
144144 self ._check_logs (
@@ -154,7 +154,7 @@ def _test_end_to_end_sfn(self, apigw_name, path):
154154 # apigw name in output section doesn't have forward slashes
155155 apigw_name_from_output = apigw_name .replace ("/" , "" )
156156 apigw_url = f"{ self ._get_output_value (apigw_name_from_output )} { path } "
157- apigw_result = requests .get (apigw_url )
157+ apigw_result = requests .get (apigw_url , timeout = 10.0 )
158158 LOG .info ("APIGW result %s" , apigw_result )
159159 cmd_list = self .get_logs_command_list (self .stack_name )
160160 self ._check_logs (
0 commit comments