Skip to content

Mock example - no test files and working offline #116

@kaihendry

Description

@kaihendry

Hi, I'm struggling to understand the mocking example upon https://github.com/aws/aws-sdk-go-v2/tree/master/example/service/sqs/mockingClientsForTests

https://s.natalian.org/2018-02-06/mocking.mp4

Version of AWS SDK for Go?

39ee151

Version of Go (go version)?

go version go1.9.3 linux/amd64

What issue did you see?

?       command-line-arguments  [no test files]

Steps to reproduce

go test -tags example ifaceExample.go

from the README.md

Furthermore I tried to create a mocked example myself, but it still seems to dial out (it doesn't work whilst offline).

caused by: Get https://s3-ap-southeast-1.amazonaws.com/: dial tcp: lookup s3-ap-southeast-1.amazonaws.com: no such host

Is it because of the cfg?

Perhaps you can suggest how to handle the config here so all the functions can access it without any hoop jumping?

Metadata

Metadata

Assignees

No one assigned

    Labels

    guidanceQuestion that needs advice or information.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions