File tree Expand file tree Collapse file tree
google/cloud/error_reporting Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -224,11 +224,10 @@ def _build_error_report(self,
224224 if http_context :
225225 http_context_dict = http_context .__dict__
226226 # strip out None values
227- payload ['context' ]['httpContext ' ] = {
227+ payload ['context' ]['httpRequest ' ] = {
228228 key : value for key , value in six .iteritems (http_context_dict )
229229 if value is not None
230230 }
231-
232231 if user :
233232 payload ['context' ]['user' ] = user
234233 return payload
Original file line number Diff line number Diff line change @@ -149,9 +149,9 @@ def test_report_exception_with_service_version_in_constructor(
149149 payload ['message' ])
150150 self .assertIn ('test_client.py' , payload ['message' ])
151151 self .assertEqual (
152- payload ['context' ]['httpContext ' ]['responseStatusCode' ], 500 )
152+ payload ['context' ]['httpRequest ' ]['responseStatusCode' ], 500 )
153153 self .assertEqual (
154- payload ['context' ]['httpContext ' ]['method' ], 'GET' )
154+ payload ['context' ]['httpRequest ' ]['method' ], 'GET' )
155155 self .assertEqual (payload ['context' ]['user' ], user )
156156
157157 @mock .patch ('google.cloud.error_reporting.client.make_report_error_api' )
You can’t perform that action at this time.
0 commit comments