Testing Against AWS APIs With Go

By Steve Scaffidi

Elevator Pitch

Testing code that accesses AWS can seem impossible, but it’s really not that hard! Let’s take a look at how we can use Go’s features to write useful tests for this kind of code, without a whole lot of work.

Description

Testing code that uses AWS APIs may seem daunting but, in just a few minutes, you’ll see that the API’s design combined with Go’s features make writing useful tests for it easy! We’ll look at simple but real-world code that calls one part of the AWS API. Then I will show how to write useful tests using a pattern that is applicable across the entire set of AWS APIs.

These are simple techniques, but may not be obvious to the beginner.

Let’s go testing!