Skip to content

Commit 2e79888

Browse files
committed
Added support to populate some ILambdaContext properties to dummy values when executing under test tool.
1 parent 626c9f8 commit 2e79888

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Tools/LambdaTestTool/src/Amazon.Lambda.TestTool/Runtime/LambdaExecutor.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ public async Task<ExecutionResponse> ExecuteAsync(ExecutionRequest request)
5353

5454
var context = new LocalLambdaContext()
5555
{
56-
Logger = logger
56+
Logger = logger,
57+
AwsRequestId = Guid.NewGuid().ToString(),
58+
FunctionName = request.Function.FunctionInfo.Name,
59+
InvokedFunctionArn = string.Format("arn:aws:lambda:{0}::function:{1}", request.AWSRegion, request.Function.FunctionInfo.Name)
5760
};
5861

5962
object instance = null;

0 commit comments

Comments
 (0)