@@ -50,15 +50,6 @@ export default class Handler {
5050 } ;
5151
5252 const addedGroups : { [ key : string ] : any } = { } ;
53- if ( 0 <= this . middlewares . indexOf ( '@warmup' ) ) {
54- pushGroupTest ( addedGroups , 'warmup' , { name : 'warmup call' , type : 'handler-call' , config : { event : { warm : true } , expected : { status : 'success' , code : 1000 , message : 'warmed' } } } ) ;
55- }
56- if ( ( 0 <= this . middlewares . indexOf ( '@apigateway' ) || ( 'apigateway' === this . type ) ) && ( ! this . vars . errors ) ) {
57- pushGroupTest ( addedGroups , 'apigateway' , { name : 'malformed event' , type : 'handler-call' , config : { event : { } , expectedBody : JSON . stringify ( { errorType : 'not-found' , message : 'Resource Not Found' , code : 404 , data : { } , errorInfo : { } } ) } } ) ;
58- }
59- if ( ( 0 <= this . middlewares . indexOf ( '@apigateway' ) || ( 'apigateway' === this . type ) ) && ( true === this . vars . healthz ) ) {
60- pushGroupTest ( addedGroups , 'apigateway' , { name : 'healthz' , type : 'handler-call' , config : { event : { httpMethod : 'GET' , resource : '/healthz' } , expectedBody : JSON . stringify ( { status : 'ok' , code : 1001 , message : 'healthy' } ) } } ) ;
61- }
6253 if ( ( 'graphql' === this . type ) ) {
6354 pushGroupTest ( addedGroups , 'graphql' , { name : 'ui' , type : 'handler-call' , config : { event : { httpMethod : 'GET' , resource : '/graphql' , path : '/graphql' , headers : { 'Accept' : 'text/html' } } , expectedStatusCode : 200 } } ) ;
6455 }
@@ -167,4 +158,4 @@ export default class Handler {
167158 if ( ! Object . keys ( ms [ n ] ) . length ) return 'cnf' ;
168159 return `{...cnf, ...${ stringifyObject ( ms [ n ] , { indent : '' , inlineCharacterLimit : 100 , singleQuotes : true } ) } }` ;
169160 }
170- }
161+ }
0 commit comments