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

Add a "record" option to proxy helper #252

Open
dagardner-nv opened this issue Oct 7, 2024 · 0 comments
Open

Add a "record" option to proxy helper #252

dagardner-nv opened this issue Oct 7, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@dagardner-nv
Copy link

Is your feature request related to a problem? Please describe.
It would be nice to be able to add a "record" option to the proxy helper.

The idea would be to use a {{#proxy}} to record responses from an external/live service, to generate mock files to be used later in tests.

Specifically the service that I am most often attempting to mock (https://github.com/triton-inference-server) returns data in a binary format that is large and difficult to produce by hand.

Describe the solution you'd like

HTTP/1.1 200 OK

{{#proxy}}
{
    "target": "http://other-server:9008",
    "record_path": "./recorded_mocks/GET_{{now}}.mock
}
{{/proxy}}

Describe alternatives you've considered
Currently I use a modified client that logs responses to file

Additional context
N/A

@dagardner-nv dagardner-nv added the enhancement New feature or request label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants