adding a real test Method for API gateway

This commit is contained in:
Zakaria
2026-09-27 20:14:59 -04:00
parent e8843a462b
commit ce8400757c
10 changed files with 321 additions and 23 deletions
+20
View File
@@ -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>