Enable AWS Lambda context object compatibility
ksatzke opened this issue · comments
KNIX python function handlers have a context object just like AWS Lambda python and Java function handlers have, but some of the properties of the corresponding AWS context object are still missing in the KNIX implementation.
This implementation task will be performed in the feature/AWS_API_compatibility branch, targeting full Lambda object compatibility for KNIX.
From the changes I saw, it looks like we also need to update the API object for the Java functions in KNIX.
Are there other changes/additions that need to be done? If not, I can take the modified Python API and apply it for Java functions.
I meant something like this: https://docs.aws.amazon.com/en_us/lambda/latest/dg/java-context.html
I added the modifications necessary for the Java worker, but it needs testing.
Added Java context test as well.
I am not sure whether we are going to support different versions etc. as intended, but at this point, we wouldn't have to worry about existing code breaking due to migration to knix.
I think we can merge this.
@ksatzke : Could you open a PR please?