Unit Test AWS Lambda in Goby@belikemike21
4,220 reads

Unit Test AWS Lambda in Go

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

This blog is an effort to explain how to unit test properly AWS services using Go. The code is simple which is given a cluster id I have to get the cluster status. If you want to do unit testing in Go then you have to use interface and avoid using concrete API or function as far as possible. The important point to see is how I used the mock service to test AWS Lambda. It should always call mock service when you write unit tests then it should always be the real service.

Company Mentioned

Mention Thumbnail
featured image - Unit Test AWS Lambda in Go
belikemike21 HackerNoon profile picture

@belikemike21

belikemike21

Receive Stories from @belikemike21

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa