Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Add ability to ignore params in stubber #931

Closed
jamesls opened this issue May 26, 2016 · 0 comments
Closed

Feature request: Add ability to ignore params in stubber #931

jamesls opened this issue May 26, 2016 · 0 comments
Labels
feature-request This issue requests a feature.

Comments

@jamesls
Copy link
Member

jamesls commented May 26, 2016

It would be nice if the stubber had a solution for being able to ignore randomly generated values in the input. For example:

  • idempotency tokens
  • statement ids

And really anything that typically is a random value.

There's a few ways I can think of to accomplish this. In mock, you can use mock.ANY to indicate that you don't care about the value. In the CLI we have an ignore_params for assert_params_for_cmd, though this only works for top level params (which typically is sufficient).

@jamesls jamesls added the feature-request This issue requests a feature. label May 26, 2016
JordonPhillips added a commit to JordonPhillips/botocore that referenced this issue Jun 8, 2016
This allows users to specify stub.ANY for expected parameters if
they don't care about a specific parameter's value.

Resolves boto#931
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request This issue requests a feature.
Projects
None yet
Development

No branches or pull requests

1 participant