paint-brush
Unit Test AWS Lambda in Goby@belikemike21
5,045 reads
5,045 reads

Unit Test AWS Lambda in Go

by belikemike213mMay 18th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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

@belikemike21

L O A D I N G
. . . comments & more!

About Author

belikemike21 HackerNoon profile picture
belikemike21@belikemike21

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite