aws-mockery is a program which uses the mockery API to generate implementations of selected aws-sdk-go service interfaces.
Currently only aws-sdk-go version 1.x
is supported.
Asserting that dependent code interacts with the service APIs as expected, but without the cost (and feedback fidelity) of making real requests to the service.
To install:
go get -v github.com/codeactual/aws-mockery/cmd/aws-mockery
Display help:
aws-mockery --help
Output mock implementations for KMS, Route53, and SNS:
aws-mockery --out-dir /path/to/mocks --sdk-dir /path/to/github.com/aws/aws-sdk-go --service=kms,route53,sns
--service
expects a comma-separated list of identifiers, e.g.ec2
, which must be a directory name from the SDK's service directory.
Mozilla Public License Version 2.0 (About, FAQ)
- Please feel free to submit issues, PRs, questions, and feedback.
- Although this repository consists of snapshots extracted from a private monorepo using transplant, PRs are welcome. Standard GitHub workflows are still used.