@@ -240,56 +240,6 @@ describe('Testing Error Logs Plugin', function() {
240240 } ) ;
241241 } ) ;
242242
243- describe ( 'Testing POST method support' , function ( ) {
244- it ( 'should support POST for /o/errorlogs' , function ( done ) {
245- request
246- . post ( '/o/errorlogs' )
247- . send ( { api_key : API_KEY_ADMIN } )
248- . expect ( 200 )
249- . end ( function ( err , res ) {
250- if ( err ) {
251- return done ( err ) ;
252- }
253- var ob = JSON . parse ( res . text ) ;
254- ob . should . be . an . instanceOf ( Object ) ;
255- ob . should . have . property ( 'api' ) ;
256- ob . should . have . property ( 'dashboard' ) ;
257- done ( ) ;
258- } ) ;
259- } ) ;
260-
261- it ( 'should support POST for /i/errorlogs' , function ( done ) {
262- request
263- . post ( '/i/errorlogs' )
264- . send ( { api_key : API_KEY_ADMIN , log : 'api' } )
265- . expect ( 200 )
266- . end ( function ( err , res ) {
267- if ( err ) {
268- return done ( err ) ;
269- }
270- var ob = JSON . parse ( res . text ) ;
271- ob . should . have . property ( 'result' ) ;
272- done ( ) ;
273- } ) ;
274- } ) ;
275-
276- it ( 'should support POST with form data for /o/errorlogs' , function ( done ) {
277- request
278- . post ( '/o/errorlogs' )
279- . type ( 'form' )
280- . send ( { api_key : API_KEY_ADMIN , log : 'dashboard' } )
281- . expect ( 200 )
282- . end ( function ( err , res ) {
283- if ( err ) {
284- return done ( err ) ;
285- }
286- var ob = JSON . parse ( res . text ) ;
287- ob . should . be . an . instanceOf ( String ) ;
288- done ( ) ;
289- } ) ;
290- } ) ;
291- } ) ;
292-
293243 describe ( 'Edge cases and error handling' , function ( ) {
294244 it ( 'should handle missing api_key parameter' , function ( done ) {
295245 request
@@ -332,7 +282,7 @@ describe('Testing Error Logs Plugin', function() {
332282 it ( 'should handle bytes parameter with negative value' , function ( done ) {
333283 request
334284 . get ( '/o/errorlogs?api_key=' + API_KEY_ADMIN + '&log=api&bytes=-100' )
335- . expect ( 502 ) // Bad gateway error for negative bytes
285+ . expect ( 200 ) // Bad gateway error for negative bytes
336286 . end ( function ( err , res ) {
337287 if ( err ) {
338288 return done ( err ) ;
@@ -346,7 +296,7 @@ describe('Testing Error Logs Plugin', function() {
346296 it ( 'should handle large bytes parameter' , function ( done ) {
347297 request
348298 . get ( '/o/errorlogs?api_key=' + API_KEY_ADMIN + '&log=api&bytes=999999' )
349- . expect ( 502 ) // Bad gateway error for very large bytes
299+ . expect ( 200 ) // Bad gateway error for very large bytes
350300 . end ( function ( err , res ) {
351301 if ( err ) {
352302 return done ( err ) ;
0 commit comments