api-double
api-double copied to clipboard
Adds string accepting seed function and more control of logging and seeding
This PR does a number of things:
- Adds some new environment variables to enable toggling of logging, faker locales, and controlling the faker seed.
- The new faker upgrade came with a few deprecation warnings, so we work around those for the moment to avoid having to search/replace an entire API double codebase.
- Adds a
seed
function, which is now available in API doubles, that can be used for setting the seed either permanently for the request or temporarily. This seed function also accepts strings (which are converted to a numeric faker seed) to enable relationships across multiple API requests whilst keeping the entire API double stateless.
Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement
Learn more about why HashiCorp requires a CLA and what the CLA includes
John Cowen seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you already have a GitHub account, please add the email address used for this commit to your account.
Have you signed the CLA already but the status is still pending? Recheck it.