Skip to content

Allow variability between requests #329

Open
@dwt

Description

@dwt

Hi there,

we have a server that requires an idempotency key as a header and will just return the same canned response if you ask twice for the same idempotency key.

To performance stress test the server, and not just the idempotency logic, I need to have a different header for each request.

This does not seem possible with hey yet.

  1. Am I missing something?
  2. Should I be using a different tool? I know that I can stuff like this with Locust, but it is such a pain in the a* to setup for quick and simple tests.
  3. What do you think about the ability for hey to call a small script to modify / transform each request?
  4. I would also be fine to provide a file with one line per request to fill in for the header value.
  5. Perhaps the simplest way (for me as a user) would be to allow me to just call a shell tool inside a template string and have hey execute that for each request. Something like hey -H 'Idempotency-Key: ${uuidgen}' that is not evaluated by the shell, because of the ' (single quotes) but the ${} could be the key for hey to call out to uuidgen for each request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions