adding a real test Method for API gateway
This commit is contained in:
@@ -24,6 +24,8 @@ import type {
|
||||
ApiGatewayLambdaRouteResult,
|
||||
ApiGatewayTestRouteInput,
|
||||
ApiGatewayTestRouteResult,
|
||||
ApiGatewayMethodTestInput,
|
||||
ApiGatewayMethodTestResult,
|
||||
ApiGatewayRoutesResult,
|
||||
ApiGatewayDeleteRouteInput,
|
||||
ApiGatewayCorsInput,
|
||||
@@ -269,6 +271,14 @@ export class CloudProxyService {
|
||||
return adapter.testApiGatewayRoute(apiId, input)
|
||||
}
|
||||
|
||||
async testApiGatewayMethod(cloud: CloudProvider, apiId: string, input: ApiGatewayMethodTestInput): Promise<ApiGatewayMethodTestResult> {
|
||||
const adapter = this.requireAdapter(cloud, 'apigateway')
|
||||
if (!adapter.testApiGatewayMethod) {
|
||||
throw new NotSupportedError(`API Gateway method testing is not supported for ${cloud}`)
|
||||
}
|
||||
return adapter.testApiGatewayMethod(apiId, input)
|
||||
}
|
||||
|
||||
async listApiGatewayRoutes(cloud: CloudProvider, apiId: string): Promise<ApiGatewayRoutesResult> {
|
||||
const adapter = this.requireAdapter(cloud, 'apigateway')
|
||||
if (!adapter.listApiGatewayRoutes) {
|
||||
|
||||
Reference in New Issue
Block a user