@@ -220,15 +220,9 @@ describe('Upstream', function()
220220 it (' executes the upstream location when request_buffering provided in the context' , function ()
221221 local contexts = {
222222 [" buffered_request" ] = {ctx = {request_buffering = true }, upstream_location = " @upstream" },
223- [" buffered_response" ] = {ctx = {response_buffering = true }, upstream_location = " @upstream" },
224223 [" unbuffered_request" ] = {ctx = {request_buffering = false }, upstream_location = " @upstream_request_unbuffered" },
225- [" unbuffered_response" ] = {ctx = {response_buffering = false }, upstream_location = " @upstream_response_unbuffered" },
226- [" unbuffered" ] = {ctx = {request_buffering = false , response_buffering = false }, upstream_location = " @upstream" },
227224 [" upstream_location and buffered_request" ] = {ctx = {upstream_location_name = " @grpc" , request_buffering = true }, upstream_location = " @grpc" },
228- [" upstream_location and buffered_response" ] = {ctx = {upstream_location_name = " @grpc" , response_buffering = true }, upstream_location = " @grpc" },
229225 [" upstream_location and unbuffered_request" ] = {ctx = {upstream_location_name = " @grpc" , request_buffering = false }, upstream_location = " @grpc" },
230- [" upstream_location and unbuffered_response" ] = {ctx = {upstream_location_name = " @grpc" , response_buffering = false }, upstream_location = " @grpc" },
231- [" upstream_location and unbuffered" ] = {ctx = {upstream_location_name = " @grpc" , request_buffering = false , response_buffering = false }, upstream_location = " @grpc" }
232226 }
233227
234228 for _ , value in pairs (contexts ) do
@@ -239,14 +233,6 @@ describe('Upstream', function()
239233 end
240234 end )
241235
242- it (' executes the upstream location when response_buffering provided in the context' , function ()
243- local upstream = Upstream .new (' http://localhost' )
244-
245- upstream :call ({response_buffering = true })
246-
247- assert .spy (ngx .exec ).was_called_with (" @upstream" )
248- end )
249-
250236 it (' skips executing the upstream location when missing' , function ()
251237 local upstream = Upstream .new (' http://localhost' )
252238 upstream .location_name = nil
0 commit comments