View Source ExAwsHttpTestAdaptor (ex_aws_http_test_adaptor v0.5.1)

A test http adaptor for ExAws, allows testing responses from AWS by swapping out the HTTP adaptor.

Link to this section Summary

Functions

Return calls that have been made.

Deliberately cause a failure for a url and method.

Make a fake request to url with supplied body, headers and opts.

Set a fake response to url with supplied body, headers and opts.

Link to this section Functions

Return calls that have been made.

Deliberately cause a failure for a url and method.

Link to this function

request(method, url, req_body, headers, http_opts)

View Source

Make a fake request to url with supplied body, headers and opts.

Link to this function

set(url, body \\ [], opts \\ [])

View Source

Set a fake response to url with supplied body, headers and opts.