Skip to content

[request]: Ability to mock *::Client #199

@NickLarsenNZ

Description

@NickLarsenNZ

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue, please leave a comment

Tell us about your request
Some way of being able to mock the Clients

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
In a contrived piece of code, I'm trying to list EC2 instances - but I'd like to test this offline by mocking the aws_sdk_ec2::Client.

Are you currently working around this issue?
I'm not (just using a real account, and weakening my test assertions).

Additional context
I wondered if there should be some traits to make mocking portions of the Clients easier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.p2This is a standard priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions