cloud-utils / domovoi

AWS Lambda event handler manager
https://en.wikipedia.org/wiki/Domovoi
Apache License 2.0
179 stars 16 forks source link

Local test instructions needed #20

Open Rubyj opened 5 years ago

Rubyj commented 5 years ago

@kislyuk Is there support to test my s3event driven lambda locally? i,.e. with a test event json file? It is not clear from the documentation.

kislyuk commented 5 years ago

Yes, you can test your event handler entry point with an example event and context. There is currently nothing specific in Domovoi to support this beyond the fact that you can use your event handlers as regular functions, what would you like to see?

Rubyj commented 5 years ago

@kislyuk I see. Is there any way to execute this behavior on the command line with a call to domovoi? It sounds like what you are describing would be done through pytests. I was hoping for a way to invoke the lambda to run locally on the command line.

kislyuk commented 5 years ago

Not currently, but I'll consider it.