adding a real test Method for API gateway
This commit is contained in:
@@ -503,6 +503,25 @@ export interface ApiGatewayTestRouteResult {
|
||||
durationMs: number
|
||||
}
|
||||
|
||||
export interface ApiGatewayMethodTestInput {
|
||||
resourceId: string
|
||||
httpMethod: string
|
||||
pathWithQueryString: string
|
||||
body: string
|
||||
headers: Record<string, string>
|
||||
multiValueHeaders: Record<string, string[]>
|
||||
stageVariables: Record<string, string>
|
||||
}
|
||||
|
||||
export interface ApiGatewayMethodTestResult {
|
||||
statusCode: number
|
||||
body: string
|
||||
headers: Record<string, string>
|
||||
multiValueHeaders: Record<string, string[]>
|
||||
log: string | null
|
||||
latency: number | null
|
||||
}
|
||||
|
||||
export interface ApiGatewayRouteOverview {
|
||||
resourceId: string
|
||||
path: string
|
||||
@@ -679,6 +698,7 @@ export interface CloudServiceAdapter {
|
||||
deleteSnsSubscription?(subscriptionArn: string): Promise<void>
|
||||
createApiGatewayLambdaRoute?(apiId: string, input: ApiGatewayLambdaRouteInput): Promise<ApiGatewayLambdaRouteResult>
|
||||
testApiGatewayRoute?(apiId: string, input: ApiGatewayTestRouteInput): Promise<ApiGatewayTestRouteResult>
|
||||
testApiGatewayMethod?(apiId: string, input: ApiGatewayMethodTestInput): Promise<ApiGatewayMethodTestResult>
|
||||
listApiGatewayRoutes?(apiId: string): Promise<ApiGatewayRoutesResult>
|
||||
deleteApiGatewayRoute?(apiId: string, input: ApiGatewayDeleteRouteInput): Promise<void>
|
||||
enableApiGatewayCors?(apiId: string, input: ApiGatewayCorsInput): Promise<ApiGatewayCorsResult>
|
||||
|
||||
Reference in New Issue
Block a user