Unit Test AWS Lambda in Go

Written by belikemike21 | Published 2020/05/18
Tech Story Tags: golang | aws | unit-testing | programming | software-development | software-engineering | coding | go

TLDR 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.via the TL;DR App

no story

Published by HackerNoon on 2020/05/18