api-double icon indicating copy to clipboard operation
api-double copied to clipboard

Adds string accepting seed function and more control of logging and seeding

Open johncowen opened this issue 3 years ago • 1 comments

This PR does a number of things:

  1. Adds some new environment variables to enable toggling of logging, faker locales, and controlling the faker seed.
  2. 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.
  3. 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.

johncowen avatar Jul 12 '21 17:07 johncowen

CLA assistant check

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.

hashicorp-cla avatar Mar 12 '22 17:03 hashicorp-cla